knowL: Knowledge Libraries
|
#include <Node.h>
Classes | |
struct | Private |
Public Types | |
enum class | Type { Undefined , Uri , BlankNode , Literal , Variable } |
Public Member Functions | |
Type | type () const |
Literal | literal () const |
knowCore::Uri | uri () const |
BlankNode | blankNode () const |
QString | variable () const |
bool | equal (const Node *_otherNode) const |
QMultiHash< knowCore::Uri, const Node * > | children () const |
QMultiHash< knowCore::Uri, const Node * > | parents () const |
bool | belongsToClass (const knowCore::Uri &_class) const |
bool | subClassOf (const knowCore::Uri &_class) const |
QList< const Node * > | parents (const knowCore::Uri &_predicate) const |
QList< const Node * > | children (const knowCore::Uri &_predicate) const |
bool | hasChildren (const knowCore::Uri &_predicate) const |
bool | hasChildren (const knowCore::UriList &_predicates) const |
const Node * | getFirstChild (const knowCore::Uri &_predicate) const |
QList< const Node * > | getCollection (const knowCore::Uri &_predicate) const |
QList< const Node * > | getCollection () const |
bool | isCollection () const |
Static Public Member Functions | |
static Triple | triple (const Node *_subject, const knowCore::Uri &_predicate, const Node *_object) |
Friends | |
class | Graph |
Represent a subject or an object in the graph.
bool Node::belongsToClass | ( | const knowCore::Uri & | _class | ) | const |
_class
(i.e. one of the rdf::a child is equal to _class
or recursively belongs to the class). BlankNode Node::blankNode | ( | ) | const |
QMultiHash< knowCore::Uri, const Node * > Node::children | ( | ) | const |
QList< const Node * > Node::children | ( | const knowCore::Uri & | _predicate | ) | const |
_predicate
bool Node::equal | ( | const Node * | _otherNode | ) | const |
QList< const Node * > Node::getCollection | ( | const knowCore::Uri & | _predicate | ) | const |
_predicate
. const Node * Node::getFirstChild | ( | const knowCore::Uri & | _predicate | ) | const |
_predicate
. bool Node::hasChildren | ( | const knowCore::Uri & | _predicate | ) | const |
bool Node::isCollection | ( | ) | const |
Literal Node::literal | ( | ) | const |
QMultiHash< knowCore::Uri, const Node * > Node::parents | ( | ) | const |
QList< const Node * > Node::parents | ( | const knowCore::Uri & | _predicate | ) | const |
_predicate
bool Node::subClassOf | ( | const knowCore::Uri & | _class | ) | const |
_class
(i.e. one of the rdfs::subClassOf child is equal to _class
or recursively belongs to the class).
|
static |
Function that will create a triple reprsentation from a subject and an object defined as a Node.
Node::Type Node::type | ( | ) | const |
knowCore::Uri Node::uri | ( | ) | const |
QString Node::variable | ( | ) | const |