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

Nepomuk

  • Nepomuk
  • Class
Public Member Functions | Static Public Member Functions | List of all members
Nepomuk::Class Class Reference

#include <class.h>

Inheritance diagram for Nepomuk::Class:
Inheritance graph
[legend]

Public Member Functions

 Class ()
 
 Class (const Class &)
 
 ~Class ()
 
QList< const Property * > allProperties () const
 
const Property * findPropertyByLabel (const QString &label, const QString &language=QString()) const
 
const Property * findPropertyByName (const QString &name) const
 
const Property * findPropertyByUri (const QUrl &uri) const
 
bool isParentOf (const Class *other) const
 
bool isSubClassOf (const Class *other) const
 
Class & operator= (const Class &)
 
QList< const Class * > parentClasses () const
 
QList< const Class * > subClasses () const
 
- Public Member Functions inherited from Nepomuk::Entity
 Entity (const Entity &)
 
 ~Entity ()
 
QString comment (const QString &language=QString()) const
 
const Ontology * definingOntology () const
 
QString label (const QString &language=QString()) const
 
QString name () const
 
Entity & operator= (const Entity &)
 
QUrl uri () const
 

Static Public Member Functions

static const Class * load (const QUrl &uri)
 

Additional Inherited Members

- Protected Member Functions inherited from Nepomuk::Entity
 Entity ()
 

Detailed Description

A Class is a resource of type rdf:Class.

Deprecated:
in favor of Nepomuk::Types::Class

Definition at line 301 of file class.h.

Constructor & Destructor Documentation

Nepomuk::Class::Class ( )

Default constructor.

Creates an empty Class.

Nepomuk::Class::Class ( const Class &  )

Default copy constructor.

Nepomuk::Class::~Class ( )

Destructor.

Member Function Documentation

QList<const Property*> Nepomuk::Class::allProperties ( ) const
const Property* Nepomuk::Class::findPropertyByLabel ( const QString &  label,
const QString &  language = QString() 
) const

Search for a property in the class by its label.

Parameters
labelThe label of the property (i.e. rdfs:label)
languageThe language in which the label was specified. If empty the default rdfs:label is returned.
Returns
the Property object identified by label or 0 if the property could not be found.
const Property* Nepomuk::Class::findPropertyByName ( const QString &  name) const

Search for a property in the class by its name.

Parameters
nameThe name of the property.
Returns
the Property object identified by name or 0 if the property could not be found.
const Property* Nepomuk::Class::findPropertyByUri ( const QUrl &  uri) const

Search for a property in the class by its name.

Parameters
urithe URI of the property
Returns
the Property object identified by uri or 0 if the property could not be found.
bool Nepomuk::Class::isParentOf ( const Class *  other) const

Check if a class inherits this class.

This is a recursive method which does not only check direct child classes.

Returns
true if other is derived from this class, false otherwise.
bool Nepomuk::Class::isSubClassOf ( const Class *  other) const

Check if this class is derived from another class.

This is a recursive method which does not only check direct child classes.

Returns
true if this class is derived from other, false otherwise.
static const Class* Nepomuk::Class::load ( const QUrl &  uri)
static

Loads a class actually including the whole ontology it is declared in.

Dependancies are resolved automatically if possible.

Returns
A Class object representing the class identified by uri or an invalid Class object if the resource identified by uri is either not a class or does not exist.
Class& Nepomuk::Class::operator= ( const Class &  )
QList<const Class*> Nepomuk::Class::parentClasses ( ) const

Each class can have multiple parent classes.

Returns
A list of all parent classes of this class. If the list is emppty it means that the class has no direct parents, i.e. it is derived from rdf:Resource.
QList<const Class*> Nepomuk::Class::subClasses ( ) const
Returns
A list of all classes that have this class as a parent. Be aware that this list can never be final since other ontologies that have not been loaded yet may contain classes that are derived from this class.

The documentation for this class was generated from the following file:
  • class.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk

Skip menu "Nepomuk"
  • 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