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

Nepomuk

property.h

Go to the documentation of this file.
00001 /* This file is part of the Nepomuk-KDE libraries
00002    Copyright (c) 2007 Sebastian Trueg <trueg@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef _NEPOMUK_PROPERTY_H_
00021 #define _NEPOMUK_PROPERTY_H_
00022 
00023 #include <QtCore/QList>
00024 #include <QtCore/QUrl>
00025 #include <QtCore/QString>
00026 #include <QtCore/QVariant>
00027 #include <QtCore/QSharedData>
00028 
00029 #include "entity.h"
00030 #include "nepomuk_export.h"
00031 
00032 namespace Nepomuk {
00033     namespace Types {
00034 
00035         class Class;
00036         class Literal;
00037 
00052         class NEPOMUK_EXPORT Property : public Entity
00053         {
00054         public:
00058             Property();
00059 
00069             Property( const QUrl& uri );
00070 
00074             Property( const Property& );
00075 
00079             ~Property();
00080 
00084             Property& operator=( const Property& );
00085 
00092             QList<Property> parentProperties();
00093 
00100             QList<Property> subProperties();
00101 
00107             Property inverseProperty();
00108 
00115             Class range();
00116 
00126             Literal literalRangeType();
00127 
00131             Class domain();
00132 
00138             int cardinality();
00139 
00145             int minCardinality();
00146 
00152             int maxCardinality();
00153 
00160             bool isParentOf( const Property& other );
00161 
00168             bool isSubPropertyOf( const Property& other );
00169         };
00170     }
00171 }
00172 
00173 
00174 
00175 
00176 namespace Nepomuk {
00177 
00178     class Ontology;
00179     class Class;
00180     class Literal;
00181 
00188     class KDE_DEPRECATED NEPOMUK_EXPORT Property : public Entity
00189     {
00190     public:
00194     Property();
00195 
00199     Property( const Property& );
00200 
00204     ~Property();
00205 
00206     Property& operator=( const Property& );
00207 
00214     QList<const Property*> parentProperties() const;
00215 
00222     QList<const Property*> parentOf() const;
00223 
00229     const Property* inverseProperty() const;
00230 
00237     const Class* range() const;
00238 
00248     Literal literalRangeType() const;
00249 
00253     const Class* domain() const;
00254 
00260     int cardinality() const;
00261 
00267     int minCardinality() const;
00268 
00274     int maxCardinality() const;
00275 
00276     // QString unit() const;
00277 
00288     static const Property* load( const QUrl& uri );
00289 
00290     private:
00291     class Private;
00292     QSharedDataPointer<Private> d;
00293 
00294     friend class OntologyManager;
00295     };
00296 }
00297 
00298 #endif

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
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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