Dataquay 0.8
Dataquay::Triple Class Reference

Triple represents an RDF statement made up of three Node objects. More...

#include <dataquay/Triple.h>

Public Member Functions

 Triple ()
 Construct a triple of three Nothing nodes.
 
 Triple (Node _a, Node _b, Node _c)
 Construct a triple of the three given nodes.
 
 ~Triple ()
 
Node subject ()
 Return the subject node.
 
Node predicate ()
 Return the predicate node.
 
Node object ()
 Return the object node.
 
bool operator< (const Triple &t) const
 

Public Attributes

Node a
 
Node b
 
Node c
 

Detailed Description

Triple represents an RDF statement made up of three Node objects.

Definition at line 47 of file Triple.h.

Constructor & Destructor Documentation

◆ Triple() [1/2]

Dataquay::Triple::Triple ( )
inline

Construct a triple of three Nothing nodes.

Definition at line 53 of file Triple.h.

◆ Triple() [2/2]

Dataquay::Triple::Triple ( Node _a,
Node _b,
Node _c )
inline

Construct a triple of the three given nodes.

Our triples may contain anything, including the Nothing node type for undefined elements (used in wildcard matching, etc).

However, in order to be inserted in the RDF store, a triple must have either URI or Blank type for its first (or subject) node, URI for its second (or predicate) node, and either URI, Blank, or Literal type for its third (or object) node.

Definition at line 66 of file Triple.h.

◆ ~Triple()

Dataquay::Triple::~Triple ( )
inline

Definition at line 69 of file Triple.h.

Member Function Documentation

◆ subject()

Node Dataquay::Triple::subject ( )
inline

Return the subject node.

This is synonymous with accessing the data member a.

Definition at line 75 of file Triple.h.

References a.

◆ predicate()

Node Dataquay::Triple::predicate ( )
inline

Return the predicate node.

This is synonymous with accessing the data member b.

Definition at line 81 of file Triple.h.

References b.

◆ object()

Node Dataquay::Triple::object ( )
inline

Return the object node.

This is synonymous with accessing the data member c.

Definition at line 87 of file Triple.h.

References c.

◆ operator<()

bool Dataquay::Triple::operator< ( const Triple & t) const
inline

Definition at line 89 of file Triple.h.

References a, b, and c.

Member Data Documentation

◆ a

Node Dataquay::Triple::a

Definition at line 96 of file Triple.h.

Referenced by operator<(), subject(), and Dataquay::Triples::subjects().

◆ b

Node Dataquay::Triple::b

Definition at line 97 of file Triple.h.

Referenced by operator<(), predicate(), and Dataquay::Triples::predicates().

◆ c

Node Dataquay::Triple::c

Definition at line 98 of file Triple.h.

Referenced by object(), Dataquay::Triples::objects(), and operator<().


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