Struct IRI¶
Defined in File IRI.hpp
Inheritance Relationships¶
Base Type¶
public rdf4cpp::Node(Struct Node)
Struct Documentation¶
-
struct IRI : public rdf4cpp::Node¶
IRI Resource node.
Public Functions
-
operator datatypes::registry::DatatypeIDView() const noexcept¶
Constructs the corresponding datatype id for this iri. Return value can be safely used to index the registry and yields the correct result.
-
explicit IRI(storage::identifier::NodeBackendHandle handle) noexcept¶
Constructs an IRI from a node backend handle
-
IRI() noexcept¶
Constructs the null-iri
-
explicit IRI(std::string_view iri, storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
-
IRI to_node_storage(storage::DynNodeStoragePtr node_storage) const¶
-
IRI try_get_in_node_storage(storage::DynNodeStoragePtr node_storage) const noexcept¶
-
FetchOrSerializeResult fetch_or_serialize_identifier(std::string_view &out, writer::BufWriterParts writer) const noexcept¶
-
bool serialize(writer::BufWriterParts writer) const noexcept¶
See Node::serialize
-
explicit operator std::string() const noexcept¶
-
bool is_literal() const noexcept = delete¶
-
bool is_variable() const noexcept = delete¶
-
bool is_blank_node() const noexcept = delete¶
-
bool is_iri() const noexcept = delete¶
Public Static Functions
-
static IRI make(std::string_view iri, storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
-
static IRI make_unchecked(std::string_view iri, storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
Constructs an IRI object from a IRI string without checking if the IRI is valid.
-
static IRI make_uuid(storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
creates a new IRI containing a random UUID (Universally Unique IDentifier)
- Returns:
UUID IRI
-
static IRI find(std::string_view iri, storage::DynNodeStoragePtr node_storage = storage::default_node_storage) noexcept¶
searches for a IRI in the specified node storage and returns it. returns a null IRI, if not found.
- Parameters:
iri –
node_storage –
- Returns:
-
static void validate(std::string_view iri)¶
Validates that the given input string is a valid IRI
- Parameters:
iri – iri string to validate
- Throws:
ParsingError – if the given IRI is invalid
-
static IRI default_graph(storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
Get the default graph IRI.
-
static IRI rdf_type(storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
Get the IRI for rdf:type
-
template<datatypes::LiteralDatatype T>
static inline IRI datatype(storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶ Get the IRI for the given datatype
-
operator datatypes::registry::DatatypeIDView() const noexcept¶