Dataquay::Triple Class Reference

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

#include <dataquay/Triple.h>

List of all members.

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 (QString a_uri, QString b_uri, Node _c)
 Construct a triple of two URIs and an arbitrary node.
 Triple (Node _a, QString b_uri, Node _c)
 Construct a triple of Node, URI, and an arbitrary node.
 ~Triple ()
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

Dataquay::Triple::Triple (  )  [inline]

Construct a triple of three Nothing nodes.

Definition at line 53 of file Triple.h.

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. See the following constructor for some simple assistance in constructing typical statement triples.

Definition at line 68 of file Triple.h.

Dataquay::Triple::Triple ( QString  a_uri,
QString  b_uri,
Node  _c 
) [inline]

Construct a triple of two URIs and an arbitrary node.

This constructor simplifies constructing complete RDF statements with subject and predicate both URIs.

Definition at line 77 of file Triple.h.

Dataquay::Triple::Triple ( Node  _a,
QString  b_uri,
Node  _c 
) [inline]

Construct a triple of Node, URI, and an arbitrary node.

Definition at line 85 of file Triple.h.

Dataquay::Triple::~Triple (  )  [inline]

Definition at line 90 of file Triple.h.


Member Function Documentation

bool Dataquay::Triple::operator< ( const Triple t  )  const [inline]

Definition at line 92 of file Triple.h.

References a, b, and c.


Member Data Documentation

Definition at line 99 of file Triple.h.

Referenced by operator<().

Definition at line 100 of file Triple.h.

Referenced by operator<().


The documentation for this class was generated from the following file:
Generated on Thu May 17 22:54:21 2012 for Dataquay by  doxygen 1.6.3