WOLFRAM

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

Background

Import & Export

Import Elements

Examples  
Basic Examples  
See Also
GraphStore`

NTriples (.nt)

Background

Import & Export

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" an RDFStore

Examples

Basic Examples  (1)

Wolfram Language code: Needs["GraphStore`"]

Import data in the N-Triples format:

Wolfram Language code: store = ImportString[" <http://example.org/tom> <http://www.w3.org/2000/01/rdf-schema#label> \"Tom\" . <http://example.org/tom> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> . <http://example.org/tom> <http://xmlns.com/foaf/0.1/knows> <http://example.org/anna> . <http://example.org/anna> <http://www.w3.org/2000/01/rdf-schema#label> \"Anna\" . <http://example.org/anna> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> . ", "NTriples"]

Export the same data as N-Triples:

Wolfram Language code: ExportString[store, "NTriples"]

See Also

Formats: NQuads   Turtle   JSONLD   RDFXML

Top [フレーム]

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