knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
rdf.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_SEMWEB_RDF_H
7 #define KNOWROB_SEMWEB_RDF_H
8 
9 #include "string"
10 #include "knowrob/terms/IRIAtom.h"
11 
12 namespace knowrob {
13  namespace rdf {
14  constexpr std::string_view prefix = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
15  const IRIAtomPtr type = IRIAtom::Tabled("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
16  const IRIAtomPtr Property = IRIAtom::Tabled("http://www.w3.org/1999/02/22-rdf-syntax-ns#Property");
17  }
18 
23  bool isTypeIRI(std::string_view iri);
24 
29  bool isPropertyIRI(std::string_view iri);
30 
31 } // knowrob::semweb
32 
33 #endif //KNOWROB_SEMWEB_RDF_H
static std::shared_ptr< IRIAtom > Tabled(std::string_view stringForm)
Definition: IRIAtom.cpp:25
constexpr std::string_view prefix
Definition: rdf.h:14
const IRIAtomPtr Property
Definition: rdf.h:16
const IRIAtomPtr type
Definition: rdf.h:15
bool isTypeIRI(std::string_view iri)
Definition: rdf.cpp:9
IRIAtomPtr iri(std::string_view ns, std::string_view name)
Definition: IRIAtom.cpp:62
std::shared_ptr< IRIAtom > IRIAtomPtr
Definition: IRIAtom.h:57
bool isPropertyIRI(std::string_view iri)
Definition: rdf.cpp:12