• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

Nepomuk::GraphRetriever

Nepomuk::GraphRetriever Class Reference

Utility class for retrieving RDF graphs from Web locations. More...

#include <nepomuk/graphretriever.h>

Inheritance diagram for Nepomuk::GraphRetriever:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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

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@access.unizh.ch>

Definition at line 54 of file graphretriever.h.


Constructor & Destructor Documentation

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

Custom and default constructor.

Parameters:
parent The parent QObject.

Definition at line 79 of file graphretriever.cpp.

Nepomuk::GraphRetriever::~GraphRetriever (  ) 

Default destructor.

Definition at line 86 of file graphretriever.cpp.


Member Function Documentation

Soprano::Model * Nepomuk::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.

Nepomuk::GraphRetriever * Nepomuk::GraphRetriever::retrieve ( const QUrl &  uri  )  [static]

Definition at line 165 of file graphretriever.cpp.

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

Definition at line 92 of file graphretriever.cpp.

void Nepomuk::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 Nepomuk::GraphRetriever::statements (  )  const

Definition at line 121 of file graphretriever.cpp.

QUrl Nepomuk::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

NepomukDaemons

Skip menu "NepomukDaemons"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal