All predicatesShow sourcesparql_json_result.pl -- Write SPARQL results as JSON

author
- Jan Wielemaker
- Michiel Hildebrand
To be done
- Support other SPARQL request results
Source sparql_write_json_result(+Out:stream, +Result, +Options) is det
Emit results from a SPARQL query as JSON.
See also
- http://www.w3.org/TR/rdf-sparql-json-res/
Source rdf_term_to_json(+RDFTerm, -JsonTerm)[private]
convert an rdf term to a json term.
To be done
- : Handle blank nodes.
Source literal_to_json(+Literal, -Text, -Attributes)[private]
Extract text and Attributes from Literal resource.
Source object_uri_type(+URI, -Type)[private]
Type is one of bnode or uri.