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

Nepomuk

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

#include <Nepomuk/Types/Ontology>

Inheritance diagram for Nepomuk::Types::Ontology:
Nepomuk::Types::Entity

Public Member Functions

 Ontology ()
 
 Ontology (const Ontology &)
 
 Ontology (const QUrl &uri)
 
 ~Ontology ()
 
QList< Class > allClasses ()
 
QList< Property > allProperties ()
 
Class findClassByLabel (const QString &label, const QString &language=QString())
 
Class findClassByName (const QString &name)
 
Property findPropertyByLabel (const QString &label, const QString &language=QString())
 
Property findPropertyByName (const QString &name)
 
Ontology & operator= (const Ontology &)
 
- Public Member Functions inherited from Nepomuk::Types::Entity
 Entity (const Entity &)
 
virtual ~Entity ()
 
QString comment (const QString &language=KGlobal::locale() ->language())
 
QString comment (const QString &language=KGlobal::locale() ->language()) const
 
QIcon icon ()
 
QIcon icon () const
 
bool isAvailable ()
 
bool isAvailable () const
 
bool isValid () const
 
QString label (const QString &language=KGlobal::locale() ->language())
 
QString label (const QString &language=KGlobal::locale() ->language()) const
 
QString name () const
 
 operator QUrl () const
 
bool operator!= (const Entity &other) const
 
bool operator!= (const QUrl &other) const
 
Entity & operator= (const Entity &)
 
bool operator== (const Entity &other) const
 
bool operator== (const QUrl &other) const
 
void reset (bool recursive=false)
 
QUrl uri () const
 
bool userVisible () const
 

Additional Inherited Members

- Protected Member Functions inherited from Nepomuk::Types::Entity
 Entity ()
 
- Protected Attributes inherited from Nepomuk::Types::Entity
QExplicitlySharedDataPointer< EntityPrivate > d
 

Detailed Description

Represents one ontology.

Author
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org

Definition at line 45 of file ontology.h.

Constructor & Destructor Documentation

◆ Ontology() [1/3]

Nepomuk::Types::Ontology::Ontology ( )

Default constructor.

Creates an empty Ontology.

◆ Ontology() [2/3]

Nepomuk::Types::Ontology::Ontology ( const QUrl &  uri)

Create the ontology referred to by uri.

The result is either a valid ontology which could be loaded from the Nepomuk store or a simple class which only contains the uri.

Be aware that the data is only loaded once read.

Subsequent calls result in a simple hash lookup of cached data.

◆ Ontology() [3/3]

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

Default copy constructor.

◆ ~Ontology()

Nepomuk::Types::Ontology::~Ontology ( )

Destructor.

Member Function Documentation

◆ allClasses()

QList< Class > Nepomuk::Types::Ontology::allClasses ( )

All classes defined in this ontology, i.e.

its namespace.

◆ allProperties()

QList< Property > Nepomuk::Types::Ontology::allProperties ( )

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.

◆ findClassByLabel()

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

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 an invalid one if the class could not be found.

◆ findClassByName()

Class Nepomuk::Types::Ontology::findClassByName ( const QString &  name)

Search for a class in the ontology by its name.

Parameters
nameThe name of the class.
Returns
the Class object identified by name or an invalid one if the class could not be found.

◆ findPropertyByLabel()

Property Nepomuk::Types::Ontology::findPropertyByLabel ( const QString &  label,
const QString &  language = QString() 
)

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 an invalid one if the property could not be found.

◆ findPropertyByName()

Property Nepomuk::Types::Ontology::findPropertyByName ( const QString &  name)

Search for a property in the ontology by its name.

Parameters
nameThe name of the property.
Returns
the Property object identified by name or an invalid one if the property could not be found.

◆ operator=()

Ontology & Nepomuk::Types::Ontology::operator= ( const Ontology &  )

The documentation for this class was generated from the following file:
  • ontology.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

Skip menu "kdelibs-4.14.38 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