print_jsonld


Description:

[ Version ( deprecated = true , deprecated_since = "3.5" ) ]
public string print_jsonld (NamespaceManager? namespaces)

Warning: print_jsonld is deprecated since 3.5.

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

Note:

Use [method@Resource.print_rdf] instead.

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 [ method@SparqlConnection.get_namespace_manager] from the connection that is the intended recipient of this data.

Parameters:

this

a `TrackerResource`

namespaces

a set of prefixed URLs, or null to use the Nepomuk set

Returns:

a newly-allocated string containing JSON-LD data.