SASSY  0.0
Software Architecture Support System
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
rdf::Model_ Class Referenceabstract

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< Nodepredicates (Node subject, Node object)=0
 Get a list of predicates that link a subject and object.
 
virtual std::vector< Nodeobjects (Node subject, Node predicate)=0
 Get a list of objects that are linked to a subject by a particular predicate.
 
virtual std::vector< Nodesubjects (Node predicate, Node object)=0
 Get a list of subjects that are linked to an object by a particular predicate.
 
virtual std::vector< NodearcsIn (Node object)=0
 Get a list of predicates connected to an object.
 
virtual std::vector< NodearcsOut (Node subject)=0
 Get a list of predicates connected to a ssubject.
 

Detailed Description

An abstract class defining the methods for an RDF Model.


The documentation for this class was generated from the following file: