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

Nepomuk

Nepomuk::Ontology

Nepomuk::Ontology Class Reference

#include <ontology.h>

List of all members.


Detailed Description

Ontology represents one ontology specified using NRL.

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

Definition at line 134 of file ontology.h.


Public Member Functions

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 (const Ontology &)
 Ontology ()
Ontology & operator= (const Ontology &)
QUrl uri () const
 ~Ontology ()

Static Public Member Functions

static const Ontology * load (const QUrl &uri)

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:
label The label of the class (i.e. rdfs:label)
language The 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:
name The 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:
uri the 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:
label The label of the property (i.e. rdfs:label)
language The 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:
name The 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:
uri the 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

Nepomuk

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal