Nepomuk-Core
#include <nepomuk/graphretriever.h>
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().
Definition at line 54 of file graphretriever.h.
Constructor & Destructor Documentation
Nepomuk2::GraphRetriever::GraphRetriever | ( | QObject * | parent = 0 | ) |
Custom and default constructor.
- Parameters
-
parent The 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.
|
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
-
url An 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:
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.