knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
rdfs.cpp
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 #include "knowrob/semweb/rdfs.h"
7 
8 namespace knowrob {
9  bool isSubClassOfIRI(std::string_view iri)
10  { return iri == rdfs::subClassOf->stringForm(); }
11 
12  bool isSubPropertyOfIRI(std::string_view iri)
13  { return iri == rdfs::subPropertyOf->stringForm(); }
14 
15 } // knowrob::semweb
const IRIAtomPtr subPropertyOf
Definition: rdfs.h:16
const IRIAtomPtr subClassOf
Definition: rdfs.h:15
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