GraphStore`

SPARQLUpdate (.ru)

背景

Import 与 Export

  • Import["file.ru"] imports a SPARQL update file, returning a symbolic SPARQL update operator.
  • Import["file.ru",elements] imports the specified elements.
  • Export["file.ru",expr] exports a symbolic SPARQL update operator to a SPARQL update 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"symbolic SPARQL update operator
    "Base"base IRI used to resolve relative IRIs
    "Prefixes"association of prefixes to namespace IRIs

选项

  • Import options:
  • "Base"Automaticbase IRI used to resolve relative IRIs
  • The value of "Base" is only used if the file does not specify a base IRI.
  • "Base" can take the following values:
  • Automaticthe file name of the imported file
    Noneno base IRI
    "iri" or URL["iri"]an IRI
  • Export options:
  • "Base"Noneproduce IRIs relative to this base
    "Prefixes"<||>produce prefixed names using these prefixes
  • A prefixed name has the form pre:local. The corresponding IRI is obtained by joining the namespace IRI associated with the prefix pre with the local part local.
  • "Base" and "Prefixes" can be used to shorten an exported file. These options do not change the meaning of the SPARQL query that the file represents.

范例

基本范例  (1)

Export a symbolic SPARQL update request as string:

Import the string: