In the Stardog documentation it is mentioned that Stardog supports SELECT query results involving edge properties:
SPARQL SELECT query results with edge properties can be sent over in the XML, binary, and JSON format (content types
application/x-binary-rdf-results-table , and
application/sparql-results+json , respectively).
Is there any documentation available or do you have any examples of how you extended these syntax formats to deal with edge property bindings?
We don't have documentation about these details but let me briefly describe them here with some examples.
For XML and JSON, we introduced an additional
statement value type with required
o fields and an optional
g field. Binding a variable
x to a statement would look like this in JSON:
and like this in XML:
For the binary results, there is an additional
STATEMENT_RECORD_MARKER = 10 to indicate the RDF value is a statement. SPO components are serialized without any markers between them followed by either a
DEFAULT_GRAPH_RECORD_MARKER = 1 or
NAMED_GRAPH_RECORD_MARKER = 2(latter is followed by an RDF resource).
Thanks so much Evren, exactly what I needed!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.