SASSY
0.0
Software Architecture Support System
|
An abstract class defining the methods for an RDF Model. More...
#include <rdfxx/rdfxx.h>
Public Member Functions | |
virtual | ~Model_ () |
Virtual destructor. | |
virtual World | getWorld ()=0 |
Return a reference to the model's world. | |
virtual int | size () const =0 |
Get number of statements if possible. May return <0 if not known. | |
virtual bool | sync ()=0 |
Save the model to its storage. | |
virtual Stream | toStream ()=0 |
Get a pointer to a stream. The user controls its lifetime. | |
virtual bool | add (Node subject, Node predicate, Node object)=0 |
Add the nodes of a statement to the model. | |
virtual bool | add (Statement)=0 |
Add a statement to the model. | |
virtual bool | remove (Statement)=0 |
Remove a statement from the model. | |
virtual bool | update (Statement old, Statement _new)=0 |
Update a statement in the model. | |
virtual bool | contains (Statement) const =0 |
Check if a statement is in the model. | |
virtual std::vector< Node > | predicates (Node subject, Node object)=0 |
Get a list of predicates that link a subject and object. | |
virtual std::vector< Node > | objects (Node subject, Node predicate)=0 |
Get a list of objects that are linked to a subject by a particular predicate. | |
virtual std::vector< Node > | subjects (Node predicate, Node object)=0 |
Get a list of subjects that are linked to an object by a particular predicate. | |
virtual std::vector< Node > | arcsIn (Node object)=0 |
Get a list of predicates connected to an object. | |
virtual std::vector< Node > | arcsOut (Node subject)=0 |
Get a list of predicates connected to a ssubject. | |
An abstract class defining the methods for an RDF Model.