20 #ifndef _NEPOMUK_CLASS_H_ 21 #define _NEPOMUK_CLASS_H_ 23 #include <QtCore/QList> 24 #include <QtCore/QUrl> 25 #include <QtCore/QString> 26 #include <QtCore/QSharedData> 29 #include "nepomuk_export.h" 51 friend class ClassPrivate;
68 Class(
const QUrl& uri );
90 QList<Property> rangeOf();
101 QList<Property> rangeOf()
const;
108 QList<Property> domainOf();
119 QList<Property> domainOf()
const;
126 Property findPropertyByName(
const QString& name );
137 Property findPropertyByName(
const QString& name )
const;
146 Property findPropertyByLabel(
const QString& label,
const QString& language = QString() );
159 Property findPropertyByLabel(
const QString& label,
const QString& language = QString() )
const;
169 QList<Class> parentClasses();
183 QList<Class> parentClasses()
const;
191 QList<Class> subClasses();
203 QList<Class> subClasses()
const;
211 QList<Class> allParentClasses();
223 QList<Class> allParentClasses()
const;
231 QList<Class> allSubClasses();
243 QList<Class> allSubClasses()
const;
251 bool isParentOf(
const Class& other );
263 bool isParentOf(
const Class& other )
const;
271 bool isSubClassOf(
const Class& other );
283 bool isSubClassOf(
const Class& other )
const;
289 #ifndef DISABLE_NEPOMUK_LEGACY 322 QList<const Property*> allProperties()
const;
329 const Property* findPropertyByName(
const QString& name )
const;
338 const Property* findPropertyByLabel(
const QString& label,
const QString& language = QString() )
const;
345 const Property* findPropertyByUri(
const QUrl& uri )
const;
353 QList<const Class*> parentClasses()
const;
361 QList<const Class*> subClasses()
const;
369 bool isParentOf(
const Class* other )
const;
377 bool isSubClassOf(
const Class* other )
const;
389 static const Class* load(
const QUrl& uri );
393 QSharedDataPointer<Private> d;
A Class is a resource of type rdf:Class.
A property is a resource of type rdf:Property which relates a domain with a range.
Abstract base class for Class and Property;.
A property is a resource of type rdf:Property which relates a domain with a range.
A Class is a resource of type rdf:Class.
The OntologyManager is the central ontology cache handler.