Nepomuk-Core
#include <classandpropertytree.h>

Public Slots | |
| void | rebuildTree (Soprano::Model *model) |
Public Member Functions | |
| ClassAndPropertyTree (QObject *parent=0) | |
| ~ClassAndPropertyTree () | |
| QSet< QUrl > | allParents (const QUrl &uri) const |
| QSet< QUrl > | allParents (const QList< QUrl > &types) const |
| bool | contains (const QUrl &uri) const |
| bool | hasLiteralRange (const QUrl &uri) const |
| bool | isChildOf (const QUrl &type, const QUrl &superClass) const |
| bool | isChildOf (const QList< QUrl > &types, const QUrl &superClass) const |
| bool | isDefiningProperty (const QUrl &uri) const |
| bool | isKnownClass (const QUrl &uri) const |
| int | maxCardinality (const QUrl &type) const |
| QUrl | propertyDomain (const QUrl &uri) const |
| QUrl | propertyRange (const QUrl &uri) const |
| QSet< Soprano::Node > | variantListToNodeSet (const QVariantList &vl, const QUrl &property) const |
| Soprano::Node | variantToNode (const QVariant &value, const QUrl &property) const |
Static Public Member Functions | |
| static ClassAndPropertyTree * | self () |
Detailed Description
Definition at line 45 of file classandpropertytree.h.
Constructor & Destructor Documentation
| Nepomuk2::ClassAndPropertyTree::ClassAndPropertyTree | ( | QObject * | parent = 0 | ) |
Definition at line 86 of file classandpropertytree.cpp.
| Nepomuk2::ClassAndPropertyTree::~ClassAndPropertyTree | ( | ) |
Definition at line 94 of file classandpropertytree.cpp.
Member Function Documentation
| QSet< QUrl > Nepomuk2::ClassAndPropertyTree::allParents | ( | const QUrl & | uri | ) | const |
Definition at line 109 of file classandpropertytree.cpp.
| QSet< QUrl > Nepomuk2::ClassAndPropertyTree::allParents | ( | const QList< QUrl > & | types | ) | const |
Definition at line 118 of file classandpropertytree.cpp.
| bool Nepomuk2::ClassAndPropertyTree::contains | ( | const QUrl & | uri | ) | const |
Returns true if the uri is a Class or a Property.
Definition at line 522 of file classandpropertytree.cpp.
| bool Nepomuk2::ClassAndPropertyTree::hasLiteralRange | ( | const QUrl & | uri | ) | const |
- Returns
trueifuriis a property and has a literal range,falseotherwise.
Definition at line 182 of file classandpropertytree.cpp.
| bool Nepomuk2::ClassAndPropertyTree::isChildOf | ( | const QUrl & | type, |
| const QUrl & | superClass | ||
| ) | const |
Definition at line 130 of file classandpropertytree.cpp.
| bool Nepomuk2::ClassAndPropertyTree::isChildOf | ( | const QList< QUrl > & | types, |
| const QUrl & | superClass | ||
| ) | const |
Returns true if any one of the uris in types is a child of superClass.
Definition at line 142 of file classandpropertytree.cpp.
| bool Nepomuk2::ClassAndPropertyTree::isDefiningProperty | ( | const QUrl & | uri | ) | const |
- Returns
trueifuriis an defining property,falseotherwise
Definition at line 193 of file classandpropertytree.cpp.
| bool Nepomuk2::ClassAndPropertyTree::isKnownClass | ( | const QUrl & | uri | ) | const |
- Returns
trueifuriis a class
Definition at line 100 of file classandpropertytree.cpp.
| int Nepomuk2::ClassAndPropertyTree::maxCardinality | ( | const QUrl & | type | ) | const |
Definition at line 155 of file classandpropertytree.cpp.
| QUrl Nepomuk2::ClassAndPropertyTree::propertyDomain | ( | const QUrl & | uri | ) | const |
Definition at line 164 of file classandpropertytree.cpp.
| QUrl Nepomuk2::ClassAndPropertyTree::propertyRange | ( | const QUrl & | uri | ) | const |
Definition at line 173 of file classandpropertytree.cpp.
|
slot |
Definition at line 353 of file classandpropertytree.cpp.
|
static |
Definition at line 591 of file classandpropertytree.cpp.
| QSet< Soprano::Node > Nepomuk2::ClassAndPropertyTree::variantListToNodeSet | ( | const QVariantList & | vl, |
| const QUrl & | property | ||
| ) | const |
Definition at line 211 of file classandpropertytree.cpp.
| Soprano::Node Nepomuk2::ClassAndPropertyTree::variantToNode | ( | const QVariant & | value, |
| const QUrl & | property | ||
| ) | const |
will try very hard to convert a variant into a node. Supports literal XML types and QUrl
Definition at line 202 of file classandpropertytree.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference