rdf_api::Node Interface Reference

rdf_api::Node Interface Reference

A node (resource or literal) in RDF. More...

Inheritance diagram for rdf_api::Node:
Collaboration diagram for rdf_api::Node:

Public Member Functions

TripleSet getTriplesInto ()
 Finds all the triples for which this node is the object.
TripleSet getTriplesIntoByPredicate (in Resource aPredicate)
 Fetches all triples for which this node is the object and aPredicate is the predicate.
- 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

A node (resource or literal) in RDF.

This is always associated with a specific datasource.

Definition at line 81 of file RDF_APISPEC.idl.

Member Function Documentation

TripleSet rdf_api::Node::getTriplesInto ( )

Finds all the triples for which this node is the object.

Returns
The set of all triples where this node is the object.
TripleSet rdf_api::Node::getTriplesIntoByPredicate ( in Resource  aPredicate)

Fetches all triples for which this node is the object and aPredicate is the predicate.

Parameters
aPredicateThe predicate we are looking for.
Returns
The set of all triples meeting the constraints.