CLI

export

Export structured data from a document as normalized RDF.

Parses a structured data document (JSON-LD, RDFa, or Microdata) and exports the extracted default graph as normalized RDF.

Supported output formats are JSON-LD, N-Triples, and Turtle. Output is written to stdout by default and can be saved to a file with --out.

Input is read from a file or stdin when no --in file is specified.

schemamarkup export [flags]

Examples

# Export an HTML file's structured data as JSON-LD
schemamarkup export -i index.html

# Save exported data to a file
schemamarkup export -i index.html -o data.jsonld

# Convert a document piped from stdin to N-Triples
cat index.html | schemamarkup export --out-type ntriples

# Export as Turtle with a canonicalized dataset
schemamarkup export -i index.html --out-type turtle --canonicalize

Flags

  • bool
  • string
  • string
  • string
  • string

Global Flags

  • string