• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • Nepomuk2
  • GraphRetriever
Public Member Functions | Static Public Member Functions | List of all members
Nepomuk2::GraphRetriever Class Reference

#include <nepomuk/graphretriever.h>

Inheritance diagram for Nepomuk2::GraphRetriever:
Inheritance graph
[legend]

Public Member Functions

 GraphRetriever (QObject *parent=0)
 
 ~GraphRetriever ()
 
Soprano::Model * model () const
 
void setUrl (const QUrl &url)
 
void start ()
 
Soprano::StatementIterator statements () const
 
QUrl url () const
 

Static Public Member Functions

static GraphRetriever * retrieve (const QUrl &uri)
 

Detailed Description

Utility class for retrieving RDF graphs from Web locations.

GraphRetriever allows retrieval of multiple RDF graph fragments from the Web using HTTP GET. Target HTTP servers should support the RDF+XML request MIME type for this to work.

Clients can queue multiple get requests and must follow the last get request with a call to either model() or serialization().

Author
Tobias Wolf twolf.nosp@m.@acc.nosp@m.ess.u.nosp@m.nizh.nosp@m..ch

Definition at line 54 of file graphretriever.h.

Constructor & Destructor Documentation

Nepomuk2::GraphRetriever::GraphRetriever ( QObject *  parent = 0)

Custom and default constructor.

Parameters
parentThe parent QObject.

Definition at line 79 of file graphretriever.cpp.

Nepomuk2::GraphRetriever::~GraphRetriever ( )

Default destructor.

Definition at line 86 of file graphretriever.cpp.

Member Function Documentation

Soprano::Model * Nepomuk2::GraphRetriever::model ( ) const

Returns a new Soprano model constructed from the retrieved graph fragments.

The client takes over ownership of the returned model.

Returns
A new Soprano model constructed from the merged fragments.

Definition at line 110 of file graphretriever.cpp.

Nepomuk2::GraphRetriever * Nepomuk2::GraphRetriever::retrieve ( const QUrl &  uri)
static

Definition at line 165 of file graphretriever.cpp.

void Nepomuk2::GraphRetriever::setUrl ( const QUrl &  url)

Definition at line 92 of file graphretriever.cpp.

void Nepomuk2::GraphRetriever::start ( )

Adds a get request for the given URL.

Parameters
urlAn URL specifying the location of a graph fragment to get.
Returns
True if the get request was accepted, false otherwise.

Definition at line 104 of file graphretriever.cpp.

Soprano::StatementIterator Nepomuk2::GraphRetriever::statements ( ) const

Definition at line 121 of file graphretriever.cpp.

QUrl Nepomuk2::GraphRetriever::url ( ) const

Definition at line 98 of file graphretriever.cpp.


The documentation for this class was generated from the following files:
  • graphretriever.h
  • graphretriever.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal