6 #ifndef KNOWROB_VOCABULARY_H
7 #define KNOWROB_VOCABULARY_H
11 #include <string_view>
33 void addResourceType(
const std::string_view &resource_iri,
const std::string_view &type_iri);
73 void addSubClassOf(
const std::string_view &subClass,
const std::string_view &superClass,
74 std::optional<std::string_view> graph);
81 bool isSubClassOf(
const std::string_view &subClass,
const std::string_view &superClass);
140 void addSubPropertyOf(
const std::string_view &subProperty,
const std::string_view &superProperty,
141 std::optional<std::string_view> graph);
148 void setInverseOf(
const std::string_view &a,
const std::string_view &b);
224 std::map<std::string_view, semweb::ClassPtr, std::less<>>
definedClasses_;
227 std::map<std::string_view, uint64_t>
frequency_;
bool isDefinedProperty(const std::string_view &iri)
std::vector< semweb::PropertyPtr > getDefinedPropertiesWithPrefix(const std::string_view &prefix) const
bool isSubClassOf(const std::string_view &subClass, const std::string_view &superClass)
std::map< std::string_view, semweb::PropertyPtr, std::less<> > definedReifications_
void increaseFrequency(const std::string_view &iri)
void setInverseOf(const std::string_view &a, const std::string_view &b)
std::vector< std::string_view > getDefinedClassNamesWithPrefix(const std::string_view &prefix) const
std::map< std::string_view, semweb::ClassPtr, std::less<> > definedClasses_
void addSubPropertyOf(const std::string_view &subProperty, const std::string_view &superProperty, std::optional< std::string_view > graph)
std::vector< std::string_view > getDefinedPropertyNamesWithPrefix(const std::string_view &prefix) const
semweb::PropertyPtr defineProperty(const IRIAtomPtr &iri)
std::map< std::string_view, uint64_t > frequency_
static bool isTaxonomicProperty(const std::string_view &iri)
semweb::PropertyPtr defineProperty_(const std::shared_ptr< semweb::Property > &p)
bool isDefinedClass(const std::string_view &iri)
void addSubClassOf(const std::string_view &subClass, const std::string_view &superClass, std::optional< std::string_view > graph)
semweb::ClassPtr defineClass(const std::string_view &iri)
void setPropertyFlag(const std::string_view &iri, semweb::PropertyFlag flag)
std::shared_ptr< ImportHierarchy > importHierarchy_
semweb::PropertyPtr getDefinedReification(const std::string_view &iri) const
semweb::ClassPtr getDefinedClass(const std::string_view &iri) const
std::shared_ptr< T > define(const std::string_view &iri)
bool isDefinedReification(const std::string_view &iri)
semweb::PropertyPtr getDefinedProperty(const std::string_view &iri) const
std::vector< semweb::ClassPtr > getDefinedClassesWithPrefix(const std::string_view &prefix) const
void addResourceType(const std::string_view &resource_iri, const std::string_view &type_iri)
semweb::PropertyPtr defineProperty(const std::string_view &iri)
uint64_t frequency(const std::string_view &iri) const
std::map< std::string_view, semweb::PropertyPtr, std::less<> > definedProperties_
void setPropertyFlag(const IRIAtomPtr &iri, semweb::PropertyFlag flag)
const std::shared_ptr< ImportHierarchy > & importHierarchy() const
bool isDatatypeProperty(const std::string_view &iri)
bool isAnnotationProperty(const std::string_view &iri)
bool isObjectProperty(const std::string_view &iri)
uint64_t frequency(const std::string_view &iri) const
void setFrequency(const std::string_view &iri, uint64_t frequency)
constexpr std::string_view prefix
std::shared_ptr< Class > ClassPtr
std::shared_ptr< Property > PropertyPtr
IRIAtomPtr iri(std::string_view ns, std::string_view name)
std::shared_ptr< IRIAtom > IRIAtomPtr
std::shared_ptr< Vocabulary > VocabularyPtr