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

Nepomuk

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

#include <property.h>

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

Public Member Functions

 Property ()
 
 Property (const Property &)
 
 ~Property ()
 
int cardinality () const
 
const Class * domain () const
 
const Property * inverseProperty () const
 
Literal literalRangeType () const
 
int maxCardinality () const
 
int minCardinality () const
 
Property & operator= (const Property &)
 
QList< const Property * > parentOf () const
 
QList< const Property * > parentProperties () const
 
const Class * range () 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 Property * load (const QUrl &uri)
 

Additional Inherited Members

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

Detailed Description

A property is a resource of type rdf:Property which relates a domain with a range.

The latter one can be a literal in addition to a Class.

Deprecated:
in favor of Nepomuk::Types::Property

Definition at line 316 of file property.h.

Constructor & Destructor Documentation

Nepomuk::Property::Property ( )

Default constructor.

Creates an empty Property.

Nepomuk::Property::Property ( const Property &  )

Default copy constructor.

Nepomuk::Property::~Property ( )

Destructor.

Member Function Documentation

int Nepomuk::Property::cardinality ( ) const

The cardinality of this property as specified by nrl:cardinality.

Returns
the cardinality of the property or -1 if none was set.
const Class* Nepomuk::Property::domain ( ) const

The domain of the property.

const Property* Nepomuk::Property::inverseProperty ( ) const

The inverse property (nrl:inverseProperty).

Returns
A Property instance representing the inverse property of this one or 0 if none was specified in the ontology.
Literal Nepomuk::Property::literalRangeType ( ) const

If the rage of this property is a literal (i.e.

range returns 0) this method provides the literal type.

Returns
the literal type of this property or an empty, invalid Literal if the range is a Class.
See also
range
static const Property* Nepomuk::Property::load ( const QUrl &  uri)
static

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

Dependancies are resolved automatically if possible.

Returns
A property object representing the property identified by uri or an invalid Property object if the resource identified by uri is either not a property or does not exist.
int Nepomuk::Property::maxCardinality ( ) const

The maximum cardinality of this property as specified by nrl:maxCardinality.

Returns
the maximum cardinality of the property or -1 if none was set.
int Nepomuk::Property::minCardinality ( ) const

The minimum cardinality of this property as specified by nrl:minCardinality.

Returns
the minimum cardinality of the property or -1 if none was set.
Property& Nepomuk::Property::operator= ( const Property &  )
QList<const Property*> Nepomuk::Property::parentOf ( ) const
Returns
A list of all properties that have this property as a parent. Be aware that this list can never be final since other ontologies that have not been loaded yet may contain properties that are derived from this property.
QList<const Property*> Nepomuk::Property::parentProperties ( ) const

Each property can have multiple parent properties.

Returns
A list of all parent properties of this property. If the list is emppty it means that the property has no direct parents, i.e. it is derived from rdf:Resource.
const Class* Nepomuk::Property::range ( ) const

The range of the property.

Returns
The range of the property or an invalid Class in case the range of this poperty is a literal.
See also
literalRange

The documentation for this class was generated from the following file:
  • property.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