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

Nepomuk

  • Nepomuk
  • Ontology
Public Member Functions | Static Public Member Functions
Nepomuk::Ontology Class Reference

#include <ontology.h>

List of all members.

Public Member Functions

 Ontology ()
 Ontology (const Ontology &)
 ~Ontology ()
QList< const Class * > allClasses () const
QList< const Property * > allProperties () const
const Class * findClassByLabel (const QString &label, const QString &language=QString()) const
const Class * findClassByName (const QString &name) const
const Class * findClassByUri (const QUrl &uri) 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
Ontology & operator= (const Ontology &)
QUrl uri () const

Static Public Member Functions

static const Ontology * load (const QUrl &uri)

Detailed Description

Ontology represents one ontology specified using NRL.

Deprecated:
in favor of Nepomuk::Types::Ontology

Definition at line 135 of file ontology.h.


Constructor & Destructor Documentation

Nepomuk::Ontology::Ontology ( )

Default constructor.

Creates an empty Ontology.

Nepomuk::Ontology::Ontology ( const Ontology &  )

Default copy constructor.

Nepomuk::Ontology::~Ontology ( )

Destructor.


Member Function Documentation

QList<const Class*> Nepomuk::Ontology::allClasses ( ) const

All classes defined in this ontology, i.e.

its namespace.

QList<const Property*> Nepomuk::Ontology::allProperties ( ) const

A list of all properties defined in this ontology.

This does not include properties that use classes of this ontology but are defined in a different one.

const Class* Nepomuk::Ontology::findClassByLabel ( const QString &  label,
const QString &  language = QString() 
) const

Search for a class in the ontology by its label.

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

Search for a class in the ontology by its name.

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

Search for a class in the ontology by its name.

Parameters:
urithe URI of the class
Returns:
the Class object identified by uri or 0 if the class could not be found.
const Property* Nepomuk::Ontology::findPropertyByLabel ( const QString &  label,
const QString &  language = QString() 
) const

Search for a property in the ontology 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::Ontology::findPropertyByName ( const QString &  name) const

Search for a property in the ontology 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::Ontology::findPropertyByUri ( const QUrl &  uri) const

Search for a property in the ontology 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.
static const Ontology* Nepomuk::Ontology::load ( const QUrl &  uri)
static

Loads an ontology.

Dependancies are resolved automatically if possible.

Returns:
An Ontology object representing the ontology identified by uri or an invalid Ontology object if the resource identified by uri is either not an ontology or does not exist.
Ontology& Nepomuk::Ontology::operator= ( const Ontology &  )
QUrl Nepomuk::Ontology::uri ( ) const

The URI of the ontology, i.e.

its namespace


The documentation for this class was generated from the following file:
  • ontology.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 21:58:03 by doxygen 1.8.1.1 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-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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