knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
rdfs.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_RDFS_H
7 #define KNOWROB_SEMWEB_RDFS_H
8 
9 #include "string"
10 #include "knowrob/terms/IRIAtom.h"
11 
12 namespace knowrob {
13  namespace rdfs {
14  constexpr std::string_view prefix = "http://www.w3.org/2000/01/rdf-schema#";
15  const IRIAtomPtr subClassOf = IRIAtom::Tabled("http://www.w3.org/2000/01/rdf-schema#subClassOf");
16  const IRIAtomPtr subPropertyOf = IRIAtom::Tabled("http://www.w3.org/2000/01/rdf-schema#subPropertyOf");
17  const IRIAtomPtr comment = IRIAtom::Tabled("http://www.w3.org/2000/01/rdf-schema#comment");
18  const IRIAtomPtr seeAlso = IRIAtom::Tabled("http://www.w3.org/2000/01/rdf-schema#seeAlso");
19  const IRIAtomPtr label = IRIAtom::Tabled("http://www.w3.org/2000/01/rdf-schema#label");
20  const IRIAtomPtr range = IRIAtom::Tabled("http://www.w3.org/2000/01/rdf-schema#range");
21  const IRIAtomPtr domain = IRIAtom::Tabled("http://www.w3.org/2000/01/rdf-schema#domain");
22  const IRIAtomPtr Class = IRIAtom::Tabled("http://www.w3.org/2000/01/rdf-schema#Class");
23  }
24 
29  bool isSubClassOfIRI(std::string_view iri);
30 
35  bool isSubPropertyOfIRI(std::string_view iri);
36 } // knowrob::semweb
37 
38 #endif //KNOWROB_SEMWEB_RDFS_H
static std::shared_ptr< IRIAtom > Tabled(std::string_view stringForm)
Definition: IRIAtom.cpp:25
const IRIAtomPtr Class
Definition: rdfs.h:22
const IRIAtomPtr subPropertyOf
Definition: rdfs.h:16
const IRIAtomPtr seeAlso
Definition: rdfs.h:18
const IRIAtomPtr range
Definition: rdfs.h:20
const IRIAtomPtr label
Definition: rdfs.h:19
const IRIAtomPtr domain
Definition: rdfs.h:21
const IRIAtomPtr comment
Definition: rdfs.h:17
const IRIAtomPtr subClassOf
Definition: rdfs.h:15
constexpr std::string_view prefix
Definition: rdfs.h:14
bool isSubClassOfIRI(std::string_view iri)
Definition: rdfs.cpp:9
bool isSubPropertyOfIRI(std::string_view iri)
Definition: rdfs.cpp:12
IRIAtomPtr iri(std::string_view ns, std::string_view name)
Definition: IRIAtom.cpp:62
std::shared_ptr< IRIAtom > IRIAtomPtr
Definition: IRIAtom.h:57