Class
TrackerNamespaceManager
Description [src]
final class Tracker.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.
Constructors
tracker_namespace_manager_new
Creates a new, empty TrackerNamespaceManager instance.
Instance methods
tracker_namespace_manager_add_prefix
Adds prefix as the recognised abbreviaton of namespace.
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.
Available 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_foreach
Calls func for each known prefix / URI pair.
tracker_namespace_manager_has_prefix
Returns whether prefix is known.
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.
Class structure
struct TrackerNamespaceManagerClass {
GObjectClass parent_class;
}
Class members
parent_class |
|
| No description available. |
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 since: 3.3