print_sparql_update


Description:

public string print_sparql_update (NamespaceManager? namespaces, string? graph_id)

Generates a SPARQL command to update a database with the information stored in resource.

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

graph_id

the URN of the graph the data should be added to, or null

Returns:

a newly-allocated string containing a SPARQL update command.