Program Listing for File RDF.hpp

Return to documentation for file (src/rdf4cpp/namespaces/RDF.hpp)

#ifndef RDF4CPP_NAMESPACE_RDF_HPP
#define RDF4CPP_NAMESPACE_RDF_HPP

#include <rdf4cpp/ClosedNamespace.hpp>

namespace rdf4cpp::namespaces {

struct RDF : ClosedNamespace {
public:
    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"};

    explicit RDF(storage::DynNodeStoragePtr node_storage = storage::default_node_storage);

    IRI operator+(std::string_view suffix) const override;
};

}  // namespace rdf4cpp::namespaces

#endif  //RDF4CPP_NAMESPACE_RDF_HPP