rdf_api::Bootstrap Interface Reference

rdf_api::Bootstrap Interface Reference
Inheritance diagram for rdf_api::Bootstrap:
Collaboration diagram for rdf_api::Bootstrap:

Public Member Functions

DataSource createDataSource ()
 Creates an empty data source.
void parseIntoDataSource (in DataSource ds, in dom::Element root, in wstring baseURI) raises (RDFProcessingError)
 Parses RDF/XML, using the specified element as the root, putting triples into the DataSource.
dom::Document getDOMForDataSource (in DataSource ds, in wstring baseURI)
 Creates a DOM Document which, if serialised, would result in a valid RDF/XML serialisation of DataSource.
wstring serialiseDataSource (in DataSource ds, in wstring baseURI)
 Serialises all the triples in the RDF DataSource into a string of RDF/XML.
- Public Member Functions inherited from XPCOM::IObject
void add_ref ()
 Called to indicate that some code is keeping an owning reference to the object.
oneway void release_ref ()
 Removes a reference to an object which was created by some other means (e.g.
IObject query_interface (in utf8string id)
 Returns an IObject of the same implementation, which supports a specific interface.

Additional Inherited Members

- Public Attributes inherited from XPCOM::IObject
readonly attribute string objid
 Fetches the ID of the object.

Detailed Description

Definition at line 374 of file RDF_APISPEC.idl.

Member Function Documentation

DataSource rdf_api::Bootstrap::createDataSource ( )

Creates an empty data source.

dom::Document rdf_api::Bootstrap::getDOMForDataSource ( in DataSource  ds,
in wstring  baseURI 
)

Creates a DOM Document which, if serialised, would result in a valid RDF/XML serialisation of DataSource.

Parameters
dsThe DataSource to fetch triples from.
baseURIThe URI to assume the RDF/XML document will be stored at, and should generate URIs relative to.
void rdf_api::Bootstrap::parseIntoDataSource ( in DataSource  ds,
in dom::Element  root,
in wstring  baseURI 
) raises (RDFProcessingError)

Parses RDF/XML, using the specified element as the root, putting triples into the DataSource.

Raises an RDF processing error if parsing fails.

Parameters
dsThe DataSource to put triples into.
rootThe root element of the RDF/XML serialisation to parse.
baseURIThe base URI against which to resolve relative URIs.
wstring rdf_api::Bootstrap::serialiseDataSource ( in DataSource  ds,
in wstring  baseURI 
)

Serialises all the triples in the RDF DataSource into a string of RDF/XML.

Parameters
dsThe DataSource to fetch triples from.
baseURIThe URI the parser should assume the RDF will be stored at, and should generate URIs relative to.