GraphStore`

SPARQLResultsJSON (.srj)

背景

Import 与 Export

  • Import["file.srj"] imports a SPARQL Results JSON file, returning a list of associations or a Boolean.
  • Export["file.srj",expr] exports a list of associations or a Boolean to a SPARQL Results JSON file.

参数

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties and settings
  • Data representation elements:
  • "Data"a list of associations or a Boolean

范例

基本范例  (1)

Export a list of variable bindings:

Import the same data:

Export the result of a SPARQL ASK query: