Skip to content

Import command using jsonld.fromRDF #10

@fsteeg

Description

@fsteeg

For initial conversion of RDF (as N-Quads) to JSON-LD, an import command using jsonld.fromRDF would be very useful, so that given some input RDF data in doc.txt:

<http://manu.sporny.org/> <http://schema.org/name> "Manu Sporny" .

We can convert to JSON-LD with:

jsonld import -f application/n-quads doc.txt

Resulting in:

[{
  "@id": "http://manu.sporny.org/",
  "http://schema.org/name": [{
      "@value": "Manu Sporny"
  }]
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions