Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 41640b7d04ef5b5040e7668305a5ba3d > files > 1114

python-kde4-doc-4.11.4-1.mga4.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <title>Module PyKDE4.nepomuk</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <link rel="stylesheet" type="text/css" href="../common/doxygen.css" />
  <link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../common/kde.css" />
</head>
<body>
<div id="container">
<div id="header">
  <div id="header_top">
    <div>
      <div>
        <img alt ="" src="../common/top-kde.jpg"/>
        KDE 4.9 PyKDE API Reference
      </div>
    </div>
  </div>
  <div id="header_bottom">
    <div id="location">
      <ul>
        <li>KDE's Python API</li>
      </ul>
    </div>

    <div id="menu">
      <ul>
        <li><a href="../modules.html">Overview</a></li>
<li><a href="http://techbase.kde.org/Development/Languages/Python">PyKDE Home</a></li>
<li><a href="http://kde.org/family/">Sitemap</a></li>
<li><a href="http://kde.org/contact/">Contact Us</a></li>
</ul>
    </div>
  </div>
</div>

<div id="body_wrapper">
<div id="body">
<div id="right">
<div class="content">
<div id="main">
<div class="clearer">&nbsp;</div>
<h1>PyKDE4.nepomuk Module</h1>
<hr><p><h2>The Nepomuk Meta Data Library </h2>
</p>
<p>
<p><b>
Overview |
hacking "Using" |
examples "Examples" |
page_ontology "Desktop Ontologies" |
nepomuk-rcgen "Resource Generator"
</b></p>
</p>
<p>
This is the KDE Meta Data library (not to confuse with KFileMetaData). It consists of
the following parts:
<li> The main resource handling centered around Nepomuk.Resource </li>
<li> The handling of ontologies via classes in the Nepomuk.Types namespace </li>
<li> The desktop Nepomuk.Query API </li>
<li> nepomuk_facets </li>
<li> Several utility methods and classes </li>
</p>
<p>
<b>The General Idea </b>
</p>
<p>
Three types of meta data can be identified:
</p>
<p>
</p><ol type="1"><li> Meta data that is stored with the data itself and is available at all
times. This includes id3 tags, the number of pages in a pdf document, or
even the size of a file or the subject of an email.
<li> Meta data that is created by the user manually like annotations or tags
that are assigned to files, emails, or whatever resources.
<li> Meta data that can be gathered automatically by applications such as the
source of a downloaded file or the email an attachment was saved from or the
original when copying a file locally.
</li>
</ol>
<p> Type 1 is already handled in many implementations. KDE itself includes the
KMetaFileInfo classes that allow extracting this kind of meta information from
files and the Strigi system even creates a searchable index of this information.
</p>
<p>
Nepomuk is intended for meta data of type 2 and 3. It provides an easy way to
create and read meta data for arbitrary resources (this includes for example files
or emails, but also contacts or maybe even a paragraph in a pdf file).
</p>
<p>
The simplest type of meta data that can be handled with Nepomuk is a comment. It
is a simple string associated with a resource (a file for example). This comment
is created by the user using an application that is based on Nepomuk.
</p>
<p>
Nepomuk's core is designed to allow arbitrary types of meta data, i.e. any resource
can be related with any other resource or value by simply naming the relation and
providing the value.
The power of Nepomuk, however, lies in that it provides a class for each type
of resource. Each of these classes provide convenience methods to allow a simple
handling of the meta data. These classes are automatically generated from a
description of types and properties, i.e. an ontology (see page_ontology).
</p>
<p>
Nepomuk is resource based. Thus, working with Nepomuk is always done with instances
representing a certain resource. This resource has a list of properties. Properties
are named and have a certain type. The type can either be another resource (compare
a file that was an attachment from an email) or a literal (this means for example a
string, or an integer; the comment mentioned earlier would be a string literal).
Each property can either have a cardinality of 1 (again a file can only be saved from
one email) or greater than 1 (i.e. infinite, like one file can have arbitrary many
associated comments). See hacking on how Nepomuk handles literals and cardinalities
greater than 1.
</p>
<p>
<b>Further Reading </b>
</p>
<p>
- page_ontology
- hacking
- examples
- nepomuk-rcgen
- <a href="http://techbase.kde.org/Development/Tutorials#Nepomuk">The Nepomuk techbase tutorials</a>
</p>
<p>

<dl compact><dt><b>Author(s):</b></dt><dd>
Sebastian Trueg &lt;trueg@kde.org&gt;
</dd></dl> </p>
<p>

<dl compact><dt><b>Maintainer(s):</b></dt><dd>
Sebastian Trueg &lt;trueg@kde.org&gt;
</dd></dl> </p>
<p>

<dl compact><dt><b>License(s):</b></dt><dd>
<a href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html#SEC1">LGPLv2</a>
</dd></dl>
</p><h2>Namespaces</h2>
<table width="95%" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td><a name="letter_G">&nbsp;&nbsp;G&nbsp;&nbsp;</a></td><td><a name="letter_N">&nbsp;&nbsp;N&nbsp;&nbsp;</a></td><td></td></tr>
<tr><td><a class="el" href="global.html"><i>global</i></a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.html">Nepomuk</a>&nbsp;&nbsp;&nbsp;</td><td></td></tr>
</table>
<h2>Class Index</h2>
<table width="95%" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td><a name="letter_A">&nbsp;&nbsp;A&nbsp;&nbsp;</a></td><td><a name="letter_N">&nbsp;&nbsp;N&nbsp;&nbsp;</a></td><td><a class="el" href="Nepomuk.Query.ResourceTypeTerm.html">ResourceTypeTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a class="el" href="Nepomuk.Query.AndTerm.html">AndTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.NegationTerm.html">NegationTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.Result.html">Result</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a name="letter_C">&nbsp;&nbsp;C&nbsp;&nbsp;</a></td><td><a name="letter_O">&nbsp;&nbsp;O&nbsp;&nbsp;</a></td><td><a name="letter_S">&nbsp;&nbsp;S&nbsp;&nbsp;</a></td></tr>
<tr><td><a class="el" href="Nepomuk.Types.Class.html">Class</a>&nbsp;(<a class="el" href="Nepomuk.Types.html">Nepomuk.Types</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Types.Ontology.html">Ontology</a>&nbsp;(<a class="el" href="Nepomuk.Types.html">Nepomuk.Types</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Service.html">Service</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a class="el" href="Nepomuk.Query.ComparisonTerm.html">ComparisonTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.OptionalTerm.html">OptionalTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.SimpleTerm.html">SimpleTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a name="letter_E">&nbsp;&nbsp;E&nbsp;&nbsp;</a></td><td><a class="el" href="Nepomuk.Query.OrTerm.html">OrTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a name="letter_T">&nbsp;&nbsp;T&nbsp;&nbsp;</a></td></tr>
<tr><td><a class="el" href="Nepomuk.Types.Entity.html">Entity</a>&nbsp;(<a class="el" href="Nepomuk.Types.html">Nepomuk.Types</a>)&nbsp;&nbsp;&nbsp;</td><td><a name="letter_P">&nbsp;&nbsp;P&nbsp;&nbsp;</a></td><td><a class="el" href="Nepomuk.Tag.html">Tag</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a name="letter_F">&nbsp;&nbsp;F&nbsp;&nbsp;</a></td><td><a class="el" href="Nepomuk.Types.Property.html">Property</a>&nbsp;(<a class="el" href="Nepomuk.Types.html">Nepomuk.Types</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.TagCloud.html">TagCloud</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a class="el" href="Nepomuk.File.html">File</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td><td><a name="letter_Q">&nbsp;&nbsp;Q&nbsp;&nbsp;</a></td><td><a class="el" href="KTagCloudWidget.html">KTagCloudWidget</a>&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a class="el" href="Nepomuk.Query.FileQuery.html">FileQuery</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.Query.html">Query</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="KTagDisplayWidget.html">KTagDisplayWidget</a>&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a name="letter_G">&nbsp;&nbsp;G&nbsp;&nbsp;</a></td><td><a class="el" href="Nepomuk.Query.QueryParser.html">QueryParser</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.TagWidget.html">TagWidget</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a class="el" href="Nepomuk.Query.GroupTerm.html">GroupTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.QueryServiceClient.html">QueryServiceClient</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.Term.html">Term</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a name="letter_L">&nbsp;&nbsp;L&nbsp;&nbsp;</a></td><td><a name="letter_R">&nbsp;&nbsp;R&nbsp;&nbsp;</a></td><td><a class="el" href="Nepomuk.Thing.html">Thing</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a class="el" href="Nepomuk.Types.Literal.html">Literal</a>&nbsp;(<a class="el" href="Nepomuk.Types.html">Nepomuk.Types</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.Query.RequestProperty.html">RequestProperty</a>&nbsp;(<a class="el" href="Nepomuk.Query.Query.html">Nepomuk.Query.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a name="letter_V">&nbsp;&nbsp;V&nbsp;&nbsp;</a></td></tr>
<tr><td><a class="el" href="Nepomuk.Query.LiteralTerm.html">LiteralTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Resource.html">Resource</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Variant.html">Variant</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><a name="letter_M">&nbsp;&nbsp;M&nbsp;&nbsp;</a></td><td><a class="el" href="Nepomuk.ResourceManager.html">ResourceManager</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td><td></td></tr>
<tr><td><a class="el" href="Nepomuk.MassUpdateJob.html">MassUpdateJob</a>&nbsp;(<a class="el" href="Nepomuk.html">Nepomuk</a>)&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="Nepomuk.Query.ResourceTerm.html">ResourceTerm</a>&nbsp;(<a class="el" href="Nepomuk.Query.html">Nepomuk.Query</a>)&nbsp;&nbsp;&nbsp;</td><td></td></tr>
</table>

</div>
</div>
</div>

<div id="left">

<div class="menu_box">
<div class="nav_list">
<ul>
<li><a href="../allclasses.html">Full Index</a></li>
</ul>
</div>

<a name="cp-menu" /><div class="menutitle"><div>
  <h2 id="cp-menu-project">Modules</h2>
</div></div>
<div class="nav_list">
<ul><li><a href="../akonadi/index.html">akonadi</a></li>
<li><a href="../dnssd/index.html">dnssd</a></li>
<li><a href="../kdecore/index.html">kdecore</a></li>
<li><a href="../kdeui/index.html">kdeui</a></li>
<li><a href="../khtml/index.html">khtml</a></li>
<li><a href="../kio/index.html">kio</a></li>
<li><a href="../knewstuff/index.html">knewstuff</a></li>
<li><a href="../kparts/index.html">kparts</a></li>
<li><a href="../kutils/index.html">kutils</a></li>
<li><a href="../nepomuk/index.html">nepomuk</a></li>
<li><a href="../phonon/index.html">phonon</a></li>
<li><a href="../plasma/index.html">plasma</a></li>
<li><a href="../polkitqt/index.html">polkitqt</a></li>
<li><a href="../solid/index.html">solid</a></li>
<li><a href="../soprano/index.html">soprano</a></li>
</ul></div></div>

</div>

</div>
  <div class="clearer"/>
</div>

<div id="end_body"></div>
</div>
<div id="footer"><div id="footer_text">
This documentation is maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;simon&#64;simonzone&#46;com">Simon Edwards</a>.<br />
        KDE<sup>&#174;</sup> and <a href="../images/kde_gear_black.png">the K Desktop Environment<sup>&#174;</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
        <a href="http://www.kde.org/contact/impressum.php">Legal</a>
    </div></div>
</body>
</html>