Class
TsparqlNamespaceManager
Description [src]
final class Tsparql.NamespaceManager : GObject.Object
{
/* No available fields */
}
TrackerNamespaceManager
object represents a mapping between namespaces and
their shortened prefixes.
This object keeps track of namespaces, and allows you to assign short prefixes for them to avoid frequent use of full namespace IRIs. The syntax used is that of Compact URIs (CURIEs).
Usually you will want to use a namespace manager obtained through
tracker_sparql_connection_get_namespace_manager()
from the
TrackerSparqlConnection
that manages the RDF data, as that will
contain all prefixes and namespaces that are pre-defined by its ontology.
Functions
tracker_namespace_manager_get_default
Returns the global TrackerNamespaceManager
that contains a set of well-known
namespaces and prefixes, such as rdf:
, rdfs:
, nie:
, tracker:
, etc.
deprecated: 3.3
Instance methods
tracker_namespace_manager_compress_uri
If uri
begins with one of the namespaces known to this
TrackerNamespaceManager
, then the return value will be the
compressed URI. Otherwise, NULL
will be returned.
since: 3.3
tracker_namespace_manager_expand_uri
If compact_uri
begins with one of the prefixes known to this
TrackerNamespaceManager
, then the return value will be the
expanded URI. Otherwise, a copy of compact_uri
will be returned.
tracker_namespace_manager_lookup_prefix
Looks up the namespace URI corresponding to prefix
, or NULL
if the prefix
is not known.
tracker_namespace_manager_print_turtle
Writes out all namespaces as prefix
statements in
the Turtle RDF format.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.