Method

TrackerResourceprint_jsonld

Declaration [src]

char*
tracker_resource_print_jsonld (
  TrackerResource* self,
  TrackerNamespaceManager* namespaces
)

Description [src]

Serialize all the information in resource as a JSON-LD document.

See http://www.jsonld.org/ for more information on the JSON-LD serialization format.

The namespaces object is used to expand any compact URI values. In most cases you should pass the one returned by tracker_sparql_connection_get_namespace_manager() from the connection that is the intended recipient of this data.

Deprecated since:3.5

Use tracker_resource_print_rdf() instead.

Parameters

namespaces TrackerNamespaceManager
 

A set of prefixed URLs, or NULL to use the Nepomuk set.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: char*
 

A newly-allocated string containing JSON-LD data.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.