knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowRDF::BlankNode Class Reference

#include <BlankNode.h>

Public Member Functions

 BlankNode ()
 
 BlankNode (const QString &_label)
 
 BlankNode (const QUuid &_uuid, const QString &_label=QString())
 
 BlankNode (const BlankNode &_rhs)
 
BlankNodeoperator= (const BlankNode &_rhs)
 
QString label () const
 
bool operator== (const BlankNode &_rhs) const
 
bool operator!= (const BlankNode &_rhs) const
 
bool operator< (const BlankNode &_rhs) const
 
QUuid uuid () const
 

Friends

struct std::formatter< BlankNode >
 
class knowCore::MetaTypeDefinition< BlankNode >
 
uint qHash (const BlankNode &key, std::size_t seed=0)
 

Detailed Description

This class represents a BlankNode in RDF (i.e. an unspecific uri). Each blank node is uniquely identified by an UUID.

The blank node maybe associated with a label. However the label is not considered to check if two blank nodes are equals, only the UUID is used. The label is mainly used for display purposes and as a hint when serializing documents.

Constructor & Destructor Documentation

◆ BlankNode() [1/3]

BlankNode::BlankNode ( )

Create a blank node with a random UUID.

◆ BlankNode() [2/3]

BlankNode::BlankNode ( const QString & _label)

Create a blank node with a given label, labels are often used to identify a blank node in an RDF document.

◆ BlankNode() [3/3]

BlankNode::BlankNode ( const QUuid & _uuid,
const QString & _label = QString() )

Create a blank node with a given UUID and label.

Member Function Documentation

◆ label()

QString BlankNode::label ( ) const
Returns
the label that was used when creating this blank node.

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