Struct RDF

Inheritance Relationships

Base Type

Struct Documentation

struct RDF : public rdf4cpp::ClosedNamespace

A ClosedNamespace for http://www.w3.org/1999/02/22-rdf-syntax-ns# All rdfs:ContainerMembershipProperty like rdf:_1, rdf:_2, rdf:_3, … are also available.

Public Functions

explicit RDF(storage::DynNodeStoragePtr node_storage = storage::default_node_storage)
virtual IRI operator+(std::string_view suffix) const override

Create an IRI with the suffix added to the ClosedNamespace.

Parameters:

suffix – suffix that is appended

Throws:

std::runtime_exception – if a suffix is available within the namespace

Returns:

the constructed IRI

Public Static Attributes

static constexpr std::string_view prefix = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
static constexpr std::array<std::string_view, 22> suffixes = {"HTML", "langString", "PlainLiteral", "type", "Property", "Statement", "subject", "predicate", "object", "Bag", "Seq", "Alt", "value", "List", "nil", "first", "rest", "XMLLiteral", "JSON", "CompoundLiteral", "language", "direction"}