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

Nepomuk

  • nepomuk
  • core
thing.h
Go to the documentation of this file.
1/*
2 * This file is part of the Nepomuk KDE project.
3 * Copyright (C) 2008-2009 Sebastian Trueg <trueg@kde.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef _NEPOMUK_THING_H_
22#define _NEPOMUK_THING_H_
23
24#include "resource.h"
25#include "nepomuk_export.h"
26
27// FIXME: (Would it even make sense to check in Nepomuk::Resource if a resource is a pimo:Thing and if so,
28// use the PIMO context? Or should we handle that through the Nepomuk::PimoThing class?)
29
30namespace Nepomuk {
57 class NEPOMUK_EXPORT Thing : public Resource
58 {
59 public:
70 Thing( const QUrl& uri = QUrl(), const QUrl& pimoType = QUrl() );
71
80 Thing( const QUrl& uri, const QUrl& pimoType, ResourceManager* manager );
81
94 Thing( const QString& uriOrName, const QUrl& pimoType = QUrl() );
95
104 Thing( const QString& uriOrName, const QUrl& pimoType, ResourceManager* manager );
105
109 Thing( const Thing& other );
110
116 Thing( const Resource& other );
117
121 Thing( ResourceData* );
122
126 ~Thing();
127
131 Thing& operator=( const Thing& res );
132
136 Thing& operator=( const Resource& res );
137
141 Thing& operator=( const QUrl& res );
142
154 QList<Resource> groundingOccurrences() const;
155
156 QList<Resource> referencingOccurrences() const;
157
158 QList<Resource> occurrences() const;
159
171 void addGroundingOccurrence( const Resource &res );
172
184// void merge( Thing other );
185 };
186}
187
188#endif
Nepomuk::ResourceManager
The ResourceManager is the central Nepomuk configuration point.
Definition: resourcemanager.h:56
Nepomuk::Resource
Resource is the central object type in Nepomuk.
Definition: resource.h:95
Nepomuk::Thing
A Nepomuk PIMO Thing resource.
Definition: thing.h:58
Nepomuk::Thing::operator=
Thing & operator=(const QUrl &res)
Assignment operator.
Nepomuk::Thing::Thing
Thing(const QUrl &uri=QUrl(), const QUrl &pimoType=QUrl())
Create a Thing object with URI uri.
Nepomuk::Thing::Thing
Thing(ResourceData *)
Constructor used internally.
Nepomuk::Thing::operator=
Thing & operator=(const Resource &res)
Assignment operator.
Nepomuk::Thing::~Thing
~Thing()
Desctructor.
Nepomuk::Thing::referencingOccurrences
QList< Resource > referencingOccurrences() const
Nepomuk::Thing::Thing
Thing(const Thing &other)
Copy constructor.
Nepomuk::Thing::groundingOccurrences
QList< Resource > groundingOccurrences() const
Get the grounding occurrences for this Thing.
Nepomuk::Thing::Thing
Thing(const QString &uriOrName, const QUrl &pimoType=QUrl())
Create a new Thing with label or URI uriOrName.
Nepomuk::Thing::addGroundingOccurrence
void addGroundingOccurrence(const Resource &res)
Add a grounding occurrence for this Thing.
Nepomuk::Thing::occurrences
QList< Resource > occurrences() const
Nepomuk::Thing::Thing
Thing(const Resource &other)
Copy constructor.
Nepomuk::Thing::operator=
Thing & operator=(const Thing &res)
Assignment operator.
Nepomuk::Thing::Thing
Thing(const QUrl &uri, const QUrl &pimoType, ResourceManager *manager)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Nepomuk::Thing::Thing
Thing(const QString &uriOrName, const QUrl &pimoType, ResourceManager *manager)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Nepomuk
resource.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