• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • Nepomuk2
  • ClassAndPropertyTree
Public Slots | Public Member Functions | Static Public Member Functions | List of all members
Nepomuk2::ClassAndPropertyTree Class Reference

#include <classandpropertytree.h>

Inheritance diagram for Nepomuk2::ClassAndPropertyTree:
Inheritance graph
[legend]

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
true if uri is a property and has a literal range, false otherwise.

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
true if uri is an defining property, false otherwise

Definition at line 193 of file classandpropertytree.cpp.

bool Nepomuk2::ClassAndPropertyTree::isKnownClass ( const QUrl &  uri) const
Returns
true if uri is 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.

void Nepomuk2::ClassAndPropertyTree::rebuildTree ( Soprano::Model *  model)
slot

Definition at line 353 of file classandpropertytree.cpp.

Nepomuk2::ClassAndPropertyTree * Nepomuk2::ClassAndPropertyTree::self ( )
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:
  • classandpropertytree.h
  • classandpropertytree.cpp
This file is part of the KDE documentation.
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.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal