copasi API  0.1
Public Member Functions
CRDFNode Class Reference

#include <CRDFNode.h>

List of all members.

Public Member Functions

 CRDFNode (CRDFGraph &graph)
 ~CRDFNode ()
void setId (const std::string &id)
const std::string & getId () const
void setSubject (const CRDFSubject &subject)
const CRDFSubjectgetSubject () const
void setObject (const CRDFObject &object)
CRDFObjectgetObject ()
const CRDFObjectgetObject () const
CRDFPredicate::Path getPath () const
const std::string & getFieldValue (const CRDFPredicate::ePredicateType &predicate) const
bool setFieldValue (const CMIRIAMResourceObject &value, const CRDFPredicate::ePredicateType &predicate, const CRDFPredicate::Path &nodePath)
bool setFieldValue (const std::string &value, const CRDFPredicate::ePredicateType &predicate, const CRDFPredicate::Path &nodePath)
CRDFTriplet addEdge (const CRDFPredicate &predicate, CRDFNode *pObject)
bool addTripletToGraph (const CRDFTriplet &triplet) const
void removeEdge (const CRDFPredicate &predicate, CRDFNode *pObject)
void removeTripletFromGraph (const CRDFTriplet &triplet) const
std::set< CRDFTripletgetDescendantsWithPredicate (const CRDFPredicate &predicate) const
bool isSubjectNode () const
bool isObjectNode () const
bool isBlankNode () const
bool isBagNode () const
bool isReadOnly () const
bool hasAncestor (const CRDFNode *pNode) const

Constructor & Destructor Documentation

CRDFNode::CRDFNode ( CRDFGraph graph)

Specific Constructor

Parameters:
CRDFGraph& graph
CRDFNode::~CRDFNode ( )

Destructor


Member Function Documentation

CRDFTriplet CRDFNode::addEdge ( const CRDFPredicate predicate,
CRDFNode pObject 
)

Add a property edge to the node.

Parameters:
constCRDFPredicate & edge
CRDFNode* pObject
Returns:
CRDFTriplet triplet
bool CRDFNode::addTripletToGraph ( const CRDFTriplet triplet) const

This method is for internal use only. The method is declared public since friend declarations may not refer to public methods.

Parameters:
constCRDFTriplet & triplet
Returns:
bool success.
std::set< CRDFTriplet > CRDFNode::getDescendantsWithPredicate ( const CRDFPredicate predicate) const
const std::string & CRDFNode::getFieldValue ( const CRDFPredicate::ePredicateType predicate) const

Retrieve the string representation of the property predicate

Parameters:
constCRDFPredicate::ePredicateType & predicate
Returns:
const std::string & fieldValue
const std::string & CRDFNode::getId ( ) const

Retrieve the Id of the node

Returns:
const std::string & id
CRDFObject & CRDFNode::getObject ( )

Retrieve the object data of the node. It is recommended to call isObjectNode before retrieving the object.

Returns:
CRDFObject & object
const CRDFObject & CRDFNode::getObject ( ) const

Retrieve the object data of the node. It is recommended to call isObjectNode before retrieving the object.

Returns:
const CRDFObject & object
CRDFPredicate::Path CRDFNode::getPath ( ) const

Retrieve a predicate path to the node.

Returns:
CRDFPredicate::Path path
const CRDFSubject & CRDFNode::getSubject ( ) const

Retrieve the subject data of the node. It is recommended to call isSubjectNode before retrieving the subject.

Returns:
const CRDFSubject & subject
bool CRDFNode::hasAncestor ( const CRDFNode pNode) const

Check whether the given node is in the path, i.e., has the given node as an ancestor

Parameters:
constCRDFNode * pNode
Returns:
bool hasAncestor
bool CRDFNode::isBagNode ( ) const

Check whether this is a bag node

Returns:
isBagNode
bool CRDFNode::isBlankNode ( ) const

Check whether this is a blank node

Returns:
bool isBlankNode
bool CRDFNode::isObjectNode ( ) const

Check whether this is a object node

Returns:
bool isObjectNode
bool CRDFNode::isReadOnly ( ) const

Check whether the node is read only

Returns:
bool isReadOnly
bool CRDFNode::isSubjectNode ( ) const

Check whether this is a subject node

Returns:
bool isSubjectNode
void CRDFNode::removeEdge ( const CRDFPredicate predicate,
CRDFNode pObject 
)

Remove a property edge from the node.

Parameters:
constCRDFPredicate & edge
CRDFNode* pObject
Returns:
bool success
void CRDFNode::removeTripletFromGraph ( const CRDFTriplet triplet) const

This method is for internal use only. The method is declared public since friend declarations may not refer to public methods.

Parameters:
constCRDFTriplet & triplet
bool CRDFNode::setFieldValue ( const CMIRIAMResourceObject value,
const CRDFPredicate::ePredicateType predicate,
const CRDFPredicate::Path nodePath 
)

Set the field value for the property predicate

Parameters:
constCMIRIAMResource & value
constCRDFPredicate::ePredicateType & predicate
constCRDFPredicate::Path & nodePath
Returns:
bool success
bool CRDFNode::setFieldValue ( const std::string &  value,
const CRDFPredicate::ePredicateType predicate,
const CRDFPredicate::Path nodePath 
)

Set the field value for the property predicate

Parameters:
conststd::string & value
constCRDFPredicate::ePredicateType & predicate
constCRDFPredicate::Path & nodePath
Returns:
bool success
void CRDFNode::setId ( const std::string &  id)

Set the Id of the node

Parameters:
conststd::string & id
void CRDFNode::setObject ( const CRDFObject object)

Set the object data of the node

Parameters:
constCRDFObject & object
void CRDFNode::setSubject ( const CRDFSubject subject)

Set the subject data of the node

Parameters:
constCRDFSubject & subject

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines