WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center
SPARQLResultsXML (.srx)

Background

Import & Export

Import Elements

Examples  
Basic Examples  
See Also
GraphStore`

SPARQLResultsXML (.srx)

Background

Import & Export

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

Import Elements

  • 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

Examples

Basic Examples  (1)

Wolfram Language code: Needs["GraphStore`"]

Export a list of variable bindings:

Wolfram Language code: ExportString[{<|"x" -> "a"|>, <|"x" -> "b"|>}, "SPARQLResultsXML"]

Import the same data:

Wolfram Language code: ImportString[%, "SPARQLResultsXML"]

Export the result of a SPARQL ASK query:

Wolfram Language code: ExportString[True, "SPARQLResultsXML"]

See Also

Formats: XML   SPARQLResultsJSON

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /