<refentry id="libtracker-common-tracker-ontology">
<refmeta>
<refentrytitle role="top_of_page" id="libtracker-common-tracker-ontology.top_of_page">tracker-ontology</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBTRACKER-COMMON Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>tracker-ontology</refname>
<refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv id="libtracker-common-tracker-ontology.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
#define             <link linkend="TRACKER-RDF-PREFIX--CAPS">TRACKER_RDF_PREFIX</link>
#define             <link linkend="TRACKER-RDFS-PREFIX--CAPS">TRACKER_RDFS_PREFIX</link>
#define             <link linkend="TRACKER-XSD-PREFIX--CAPS">TRACKER_XSD_PREFIX</link>
#define             <link linkend="TRACKER-TRACKER-PREFIX--CAPS">TRACKER_TRACKER_PREFIX</link>
#define             <link linkend="TRACKER-DC-PREFIX--CAPS">TRACKER_DC_PREFIX</link>
#define             <link linkend="TRACKER-MAEMO-PREFIX--CAPS">TRACKER_MAEMO_PREFIX</link>
#define             <link linkend="TRACKER-NRL-PREFIX--CAPS">TRACKER_NRL_PREFIX</link>
#define             <link linkend="TRACKER-NMO-PREFIX--CAPS">TRACKER_NMO_PREFIX</link>
#define             <link linkend="TRACKER-NIE-PREFIX--CAPS">TRACKER_NIE_PREFIX</link>
#define             <link linkend="TRACKER-NCO-PREFIX--CAPS">TRACKER_NCO_PREFIX</link>
#define             <link linkend="TRACKER-NAO-PREFIX--CAPS">TRACKER_NAO_PREFIX</link>
#define             <link linkend="TRACKER-NID3-PREFIX--CAPS">TRACKER_NID3_PREFIX</link>
#define             <link linkend="TRACKER-NFO-PREFIX--CAPS">TRACKER_NFO_PREFIX</link>
#define             <link linkend="TRACKER-NMM-PREFIX--CAPS">TRACKER_NMM_PREFIX</link>
#define             <link linkend="TRACKER-DATASOURCE-URN-PREFIX--CAPS">TRACKER_DATASOURCE_URN_PREFIX</link>
#define             <link linkend="TRACKER-NON-REMOVABLE-MEDIA-DATASOURCE-URN--CAPS">TRACKER_NON_REMOVABLE_MEDIA_DATASOURCE_URN</link>
<link linkend="void">void</link>                <link linkend="tracker-ontology-init">tracker_ontology_init</link>               (void);
<link linkend="void">void</link>                <link linkend="tracker-ontology-shutdown">tracker_ontology_shutdown</link>           (void);
<link linkend="void">void</link>                <link linkend="tracker-ontology-add-class">tracker_ontology_add_class</link>          (<link linkend="TrackerClass">TrackerClass</link> *service);
<link linkend="TrackerClass">TrackerClass</link> *      <link linkend="tracker-ontology-get-class-by-uri">tracker_ontology_get_class_by_uri</link>   (const <link linkend="gchar">gchar</link> *service_uri);
<link linkend="TrackerNamespace">TrackerNamespace</link> ** <link linkend="tracker-ontology-get-namespaces">tracker_ontology_get_namespaces</link>     (<link linkend="guint">guint</link> *length);
<link linkend="TrackerClass">TrackerClass</link> **     <link linkend="tracker-ontology-get-classes">tracker_ontology_get_classes</link>        (<link linkend="guint">guint</link> *length);
<link linkend="TrackerProperty">TrackerProperty</link> **  <link linkend="tracker-ontology-get-properties">tracker_ontology_get_properties</link>     (<link linkend="guint">guint</link> *length);
<link linkend="void">void</link>                <link linkend="tracker-ontology-add-property">tracker_ontology_add_property</link>       (<link linkend="TrackerProperty">TrackerProperty</link> *field);
<link linkend="TrackerProperty">TrackerProperty</link> *   <link linkend="tracker-ontology-get-property-by-uri">tracker_ontology_get_property_by_uri</link>
                                                        (const <link linkend="gchar">gchar</link> *uri);
<link linkend="void">void</link>                <link linkend="tracker-ontology-add-namespace">tracker_ontology_add_namespace</link>      (<link linkend="TrackerNamespace">TrackerNamespace</link> *namespace_);
<link linkend="TrackerNamespace">TrackerNamespace</link> *  <link linkend="tracker-ontology-get-namespace-by-uri">tracker_ontology_get_namespace_by_uri</link>
                                                        (const <link linkend="gchar">gchar</link> *namespace_uri);
</synopsis>
</refsynopsisdiv>









<refsect1 id="libtracker-common-tracker-ontology.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>

<refsect1 id="libtracker-common-tracker-ontology.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="TRACKER-RDF-PREFIX--CAPS" role="macro">
<title>TRACKER_RDF_PREFIX</title>
<indexterm zone="TRACKER-RDF-PREFIX--CAPS"><primary sortas="TRACKER_RDF_PREFIX">TRACKER_RDF_PREFIX</primary></indexterm><programlisting>#define TRACKER_RDF_PREFIX      "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-RDFS-PREFIX--CAPS" role="macro">
<title>TRACKER_RDFS_PREFIX</title>
<indexterm zone="TRACKER-RDFS-PREFIX--CAPS"><primary sortas="TRACKER_RDFS_PREFIX">TRACKER_RDFS_PREFIX</primary></indexterm><programlisting>#define TRACKER_RDFS_PREFIX     "http://www.w3.org/2000/01/rdf-schema#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-XSD-PREFIX--CAPS" role="macro">
<title>TRACKER_XSD_PREFIX</title>
<indexterm zone="TRACKER-XSD-PREFIX--CAPS"><primary sortas="TRACKER_XSD_PREFIX">TRACKER_XSD_PREFIX</primary></indexterm><programlisting>#define TRACKER_XSD_PREFIX      "http://www.w3.org/2001/XMLSchema#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-TRACKER-PREFIX--CAPS" role="macro">
<title>TRACKER_TRACKER_PREFIX</title>
<indexterm zone="TRACKER-TRACKER-PREFIX--CAPS"><primary sortas="TRACKER_TRACKER_PREFIX">TRACKER_TRACKER_PREFIX</primary></indexterm><programlisting>#define TRACKER_TRACKER_PREFIX  "http://www.tracker-project.org/ontologies/tracker#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-DC-PREFIX--CAPS" role="macro">
<title>TRACKER_DC_PREFIX</title>
<indexterm zone="TRACKER-DC-PREFIX--CAPS"><primary sortas="TRACKER_DC_PREFIX">TRACKER_DC_PREFIX</primary></indexterm><programlisting>#define TRACKER_DC_PREFIX       "http://purl.org/dc/elements/1.1/"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-MAEMO-PREFIX--CAPS" role="macro">
<title>TRACKER_MAEMO_PREFIX</title>
<indexterm zone="TRACKER-MAEMO-PREFIX--CAPS"><primary sortas="TRACKER_MAEMO_PREFIX">TRACKER_MAEMO_PREFIX</primary></indexterm><programlisting>#define TRACKER_MAEMO_PREFIX    "http://maemo.org/ontologies/tracker#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NRL-PREFIX--CAPS" role="macro">
<title>TRACKER_NRL_PREFIX</title>
<indexterm zone="TRACKER-NRL-PREFIX--CAPS"><primary sortas="TRACKER_NRL_PREFIX">TRACKER_NRL_PREFIX</primary></indexterm><programlisting>#define TRACKER_NRL_PREFIX      "http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NMO-PREFIX--CAPS" role="macro">
<title>TRACKER_NMO_PREFIX</title>
<indexterm zone="TRACKER-NMO-PREFIX--CAPS"><primary sortas="TRACKER_NMO_PREFIX">TRACKER_NMO_PREFIX</primary></indexterm><programlisting>#define TRACKER_NMO_PREFIX      "http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NIE-PREFIX--CAPS" role="macro">
<title>TRACKER_NIE_PREFIX</title>
<indexterm zone="TRACKER-NIE-PREFIX--CAPS"><primary sortas="TRACKER_NIE_PREFIX">TRACKER_NIE_PREFIX</primary></indexterm><programlisting>#define TRACKER_NIE_PREFIX      "http://www.semanticdesktop.org/ontologies/2007/01/19/nie#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NCO-PREFIX--CAPS" role="macro">
<title>TRACKER_NCO_PREFIX</title>
<indexterm zone="TRACKER-NCO-PREFIX--CAPS"><primary sortas="TRACKER_NCO_PREFIX">TRACKER_NCO_PREFIX</primary></indexterm><programlisting>#define TRACKER_NCO_PREFIX      "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NAO-PREFIX--CAPS" role="macro">
<title>TRACKER_NAO_PREFIX</title>
<indexterm zone="TRACKER-NAO-PREFIX--CAPS"><primary sortas="TRACKER_NAO_PREFIX">TRACKER_NAO_PREFIX</primary></indexterm><programlisting>#define TRACKER_NAO_PREFIX      "http://www.semanticdesktop.org/ontologies/2007/08/15/nao#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NID3-PREFIX--CAPS" role="macro">
<title>TRACKER_NID3_PREFIX</title>
<indexterm zone="TRACKER-NID3-PREFIX--CAPS"><primary sortas="TRACKER_NID3_PREFIX">TRACKER_NID3_PREFIX</primary></indexterm><programlisting>#define TRACKER_NID3_PREFIX     "http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NFO-PREFIX--CAPS" role="macro">
<title>TRACKER_NFO_PREFIX</title>
<indexterm zone="TRACKER-NFO-PREFIX--CAPS"><primary sortas="TRACKER_NFO_PREFIX">TRACKER_NFO_PREFIX</primary></indexterm><programlisting>#define TRACKER_NFO_PREFIX      "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NMM-PREFIX--CAPS" role="macro">
<title>TRACKER_NMM_PREFIX</title>
<indexterm zone="TRACKER-NMM-PREFIX--CAPS"><primary sortas="TRACKER_NMM_PREFIX">TRACKER_NMM_PREFIX</primary></indexterm><programlisting>#define TRACKER_NMM_PREFIX      "http://www.tracker-project.org/temp/nmm#"
</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-DATASOURCE-URN-PREFIX--CAPS" role="macro">
<title>TRACKER_DATASOURCE_URN_PREFIX</title>
<indexterm zone="TRACKER-DATASOURCE-URN-PREFIX--CAPS"><primary sortas="TRACKER_DATASOURCE_URN_PREFIX">TRACKER_DATASOURCE_URN_PREFIX</primary></indexterm><programlisting>#define             TRACKER_DATASOURCE_URN_PREFIX</programlisting>
<para>
</para></refsect2>
<refsect2 id="TRACKER-NON-REMOVABLE-MEDIA-DATASOURCE-URN--CAPS" role="macro">
<title>TRACKER_NON_REMOVABLE_MEDIA_DATASOURCE_URN</title>
<indexterm zone="TRACKER-NON-REMOVABLE-MEDIA-DATASOURCE-URN--CAPS"><primary sortas="TRACKER_NON_REMOVABLE_MEDIA_DATASOURCE_URN">TRACKER_NON_REMOVABLE_MEDIA_DATASOURCE_URN</primary></indexterm><programlisting>#define             TRACKER_NON_REMOVABLE_MEDIA_DATASOURCE_URN</programlisting>
<para>
</para></refsect2>
<refsect2 id="tracker-ontology-init" role="function">
<title>tracker_ontology_init ()</title>
<indexterm zone="tracker-ontology-init"><primary sortas="tracker_ontology_init">tracker_ontology_init</primary></indexterm><programlisting><link linkend="void">void</link>                tracker_ontology_init               (void);</programlisting>
<para>
</para></refsect2>
<refsect2 id="tracker-ontology-shutdown" role="function">
<title>tracker_ontology_shutdown ()</title>
<indexterm zone="tracker-ontology-shutdown"><primary sortas="tracker_ontology_shutdown">tracker_ontology_shutdown</primary></indexterm><programlisting><link linkend="void">void</link>                tracker_ontology_shutdown           (void);</programlisting>
<para>
</para></refsect2>
<refsect2 id="tracker-ontology-add-class" role="function">
<title>tracker_ontology_add_class ()</title>
<indexterm zone="tracker-ontology-add-class"><primary sortas="tracker_ontology_add_class">tracker_ontology_add_class</primary></indexterm><programlisting><link linkend="void">void</link>                tracker_ontology_add_class          (<link linkend="TrackerClass">TrackerClass</link> *service);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>service</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-ontology-get-class-by-uri" role="function">
<title>tracker_ontology_get_class_by_uri ()</title>
<indexterm zone="tracker-ontology-get-class-by-uri"><primary sortas="tracker_ontology_get_class_by_uri">tracker_ontology_get_class_by_uri</primary></indexterm><programlisting><link linkend="TrackerClass">TrackerClass</link> *      tracker_ontology_get_class_by_uri   (const <link linkend="gchar">gchar</link> *service_uri);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>service_uri</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-ontology-get-namespaces" role="function">
<title>tracker_ontology_get_namespaces ()</title>
<indexterm zone="tracker-ontology-get-namespaces"><primary sortas="tracker_ontology_get_namespaces">tracker_ontology_get_namespaces</primary></indexterm><programlisting><link linkend="TrackerNamespace">TrackerNamespace</link> ** tracker_ontology_get_namespaces     (<link linkend="guint">guint</link> *length);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>length</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-ontology-get-classes" role="function">
<title>tracker_ontology_get_classes ()</title>
<indexterm zone="tracker-ontology-get-classes"><primary sortas="tracker_ontology_get_classes">tracker_ontology_get_classes</primary></indexterm><programlisting><link linkend="TrackerClass">TrackerClass</link> **     tracker_ontology_get_classes        (<link linkend="guint">guint</link> *length);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>length</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-ontology-get-properties" role="function">
<title>tracker_ontology_get_properties ()</title>
<indexterm zone="tracker-ontology-get-properties"><primary sortas="tracker_ontology_get_properties">tracker_ontology_get_properties</primary></indexterm><programlisting><link linkend="TrackerProperty">TrackerProperty</link> **  tracker_ontology_get_properties     (<link linkend="guint">guint</link> *length);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>length</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-ontology-add-property" role="function">
<title>tracker_ontology_add_property ()</title>
<indexterm zone="tracker-ontology-add-property"><primary sortas="tracker_ontology_add_property">tracker_ontology_add_property</primary></indexterm><programlisting><link linkend="void">void</link>                tracker_ontology_add_property       (<link linkend="TrackerProperty">TrackerProperty</link> *field);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>field</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-ontology-get-property-by-uri" role="function">
<title>tracker_ontology_get_property_by_uri ()</title>
<indexterm zone="tracker-ontology-get-property-by-uri"><primary sortas="tracker_ontology_get_property_by_uri">tracker_ontology_get_property_by_uri</primary></indexterm><programlisting><link linkend="TrackerProperty">TrackerProperty</link> *   tracker_ontology_get_property_by_uri
                                                        (const <link linkend="gchar">gchar</link> *uri);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>uri</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-ontology-add-namespace" role="function">
<title>tracker_ontology_add_namespace ()</title>
<indexterm zone="tracker-ontology-add-namespace"><primary sortas="tracker_ontology_add_namespace">tracker_ontology_add_namespace</primary></indexterm><programlisting><link linkend="void">void</link>                tracker_ontology_add_namespace      (<link linkend="TrackerNamespace">TrackerNamespace</link> *namespace_);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>namespace_</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="tracker-ontology-get-namespace-by-uri" role="function">
<title>tracker_ontology_get_namespace_by_uri ()</title>
<indexterm zone="tracker-ontology-get-namespace-by-uri"><primary sortas="tracker_ontology_get_namespace_by_uri">tracker_ontology_get_namespace_by_uri</primary></indexterm><programlisting><link linkend="TrackerNamespace">TrackerNamespace</link> *  tracker_ontology_get_namespace_by_uri
                                                        (const <link linkend="gchar">gchar</link> *namespace_uri);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>namespace_uri</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
