knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
owl.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/owl.h"
7 
8 namespace knowrob {
9  bool isClassIRI(std::string_view iri)
10  { return iri == owl::Class->stringForm(); }
11 
12  bool isInverseOfIRI(std::string_view iri)
13  { return iri == owl::inverseOf->stringForm(); }
14 
15  bool isObjectPropertyIRI(std::string_view iri)
16  { return iri == owl::ObjectProperty->stringForm(); }
17 
18  bool isDatatypePropertyIRI(std::string_view iri)
19  { return iri == owl::DatatypeProperty->stringForm(); }
20 
21  bool isAnnotationPropertyIRI(std::string_view iri)
22  { return iri == owl::AnnotationProperty->stringForm(); }
23 
24  bool isTransitivePropertyIRI(std::string_view iri)
25  { return iri == owl::TransitiveProperty->stringForm(); }
26 
27  bool isSymmetricPropertyIRI(std::string_view iri)
28  { return iri == owl::SymmetricProperty->stringForm(); }
29 
30  bool isReflexivePropertyIRI(std::string_view iri)
31  { return iri == owl::ReflexiveProperty->stringForm(); }
32 } // knowrob::semweb
const IRIAtomPtr inverseOf
Definition: owl.h:17
const IRIAtomPtr ObjectProperty
Definition: owl.h:21
const IRIAtomPtr TransitiveProperty
Definition: owl.h:24
const IRIAtomPtr ReflexiveProperty
Definition: owl.h:26
const IRIAtomPtr AnnotationProperty
Definition: owl.h:23
const IRIAtomPtr Class
Definition: owl.h:18
const IRIAtomPtr DatatypeProperty
Definition: owl.h:22
const IRIAtomPtr SymmetricProperty
Definition: owl.h:25
bool isClassIRI(std::string_view iri)
Definition: owl.cpp:9
bool isSymmetricPropertyIRI(std::string_view iri)
Definition: owl.cpp:27
bool isDatatypePropertyIRI(std::string_view iri)
Definition: owl.cpp:18
IRIAtomPtr iri(std::string_view ns, std::string_view name)
Definition: IRIAtom.cpp:62
bool isInverseOfIRI(std::string_view iri)
Definition: owl.cpp:12
bool isTransitivePropertyIRI(std::string_view iri)
Definition: owl.cpp:24
bool isReflexivePropertyIRI(std::string_view iri)
Definition: owl.cpp:30
bool isAnnotationPropertyIRI(std::string_view iri)
Definition: owl.cpp:21
bool isObjectPropertyIRI(std::string_view iri)
Definition: owl.cpp:15