owlcpp
v0.3.3~
C++ library for working with OWL ontologies
|
Store namespace IRIs, RDF nodes, document infos, and RDF triples. More...
#include <triple_store.hpp>
Classes | |
struct | Err |
Public Types | |
typedef traits::map_std_type | map_std_type |
typedef traits::map_ns_type | map_ns_type |
typedef traits::map_node_type | map_node_type |
typedef traits::map_doc_type | map_doc_type |
typedef traits::map_triple_type | map_triple_type |
Public Types inherited from owlcpp::Map_std_node_crtpb< Triple_store > | |
typedef traits::node_type | node_type |
Public Types inherited from owlcpp::Map_doc_crtpb< Super > | |
typedef map_doc_type::iri_range | doc_iri_range |
typedef map_doc_type::version_range | doc_version_range |
Public Member Functions | |
template<class Nodes_std > | |
Triple_store (Nodes_std const &nodes_std) | |
map_std_type const & | map_std () const |
map_ns_type const & | map_ns () const |
map_node_type const & | map_node () const |
map_doc_type const & | map_doc () const |
map_triple_type const & | map_triple () const |
Public Member Functions inherited from owlcpp::Map_std_ns_crtpb< Super > | |
Ns_iri const & | operator[] (const Ns_id nsid) const |
Ns_iri const & | at (const Ns_id nsid) const |
Ns_iri const * | find (const Ns_id nsid) const |
std::string | prefix (const Ns_id nsid) const |
Ns_id const * | find (Ns_iri const &iri) const |
Ns_id const * | find_prefix (std::string const &pref) const |
Ns_id | insert (Ns_iri const &iri) |
void | insert_prefix (const Ns_id nsid, std::string const &pref) |
Public Member Functions inherited from owlcpp::Map_std_node_crtpb< Triple_store > | |
bool | is_standard (const Node_id nid) const |
node_type const & | operator[] (const Node_id id) const |
node_type const & | at (const Node_id id) const |
node_type const * | find (const Node_id id) const |
Node_id | insert_node_iri (const Ns_id nsid, std::string const &name) |
Insert IRI node. | |
Node_id const * | find_node_iri (const Ns_id nsid, std::string const &name) const |
Public Member Functions inherited from owlcpp::Crtpb_ns_node_iri< Triple_store > | |
Node_id | insert_node_iri (std::string const &iri) |
if not already present, store IRI reference node | |
Node_id const * | find_node_iri (std::string const &iri) const |
Public Member Functions inherited from owlcpp::Map_doc_crtpb< Super > | |
doc_type const & | operator[] (const Doc_id did) const |
doc_type const & | at (const Doc_id did) const |
doc_type const * | find (const Doc_id did) const |
std::pair< Doc_id, bool > | insert_doc (const Node_id iri_id, std::string const &path="", const Node_id vers_id=terms::empty_::id()) |
Add document info: location, ontologyIRI, and versionIRI. | |
std::pair< Doc_id, bool > | insert_doc (std::string const &iri, std::string const &path="", std::string const &vers="") |
doc_iri_range | find_doc_iri (std::string const &iri) const |
doc_version_range | find_doc_version (std::string const &version) const |
Public Member Functions inherited from owlcpp::Map_node_literal_crtpb< Triple_store > | |
Node_id const * | find_literal (std::string const &value, std::string const &dt_iri, std::string const &lang="") const |
find literal node | |
Node_id | insert_literal (std::string const &value, const Node_id dt_id, std::string const &lang="") |
Insert literal node. | |
Node_id | insert_literal (std::string const &value, std::string const &dt_iri, std::string const &lang="") |
Insert literal node. | |
Public Member Functions inherited from owlcpp::Map_node_blank_crtpb< Super > | |
Node_id | insert_blank (const unsigned n, const Doc_id did) |
Insert blank node. | |
Node_id const * | find_blank (const unsigned n, const Doc_id did) const |
Public Member Functions inherited from owlcpp::Map_triple_crtpb< Triple_store > | |
result< Subj, Pred, Obj, Doc > ::type | find_triple (const Subj subj, const Pred pred, const Obj obj, const Doc doc) const |
Search triples by subject, predicate, object, or document IDs. | |
void | insert_triple (const Node_id subj, const Node_id pred, const Node_id obj, const Doc_id doc) |
Insert a new triple. |
Store namespace IRIs, RDF nodes, document infos, and RDF triples.