You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module provides a command line tool jsonld to manipulate JSON-LD
data. It is written in JavaScript for Node.js and uses the jsonld.js
and jsonld-request libraries. Inputs can be from stdin, URLs, or files.
The command above will read in a PaySwarm Asset and Listing in RDFa 1.0
format, convert it to JSON-LD expanded form, compact it using the
'https://w3id.org/payswarm/v1' context, and dump it out to the console in
compacted form.
The command above will read in a PaySwarm Asset and Listing in RDFa 1.0
format, canonize the data using the RDF Dataset canonicalization algorithm, and
then dump the output to canonized N-Quads format. The N-Quads can then
be processed via SHA-256, or similar algorithm, to get a deterministic hash of
the contents of the Dataset.
Security Considerations
This tool is able to read stdin, local files, and remote resources.
Loading of remote resources may reveal aspects of the data being processed.
Input data may recursively load remote resources.
Input data may load arbitrary local files if allowed.
Processing data that uses untrusted remote resources could result in
unexpected output.