Skip to content

Instantly share code, notes, and snippets.

@stain
Created July 5, 2018 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stain/98ea918104878bc92ec899c0eca1e484 to your computer and use it in GitHub Desktop.
Save stain/98ea918104878bc92ec899c0eca1e484 to your computer and use it in GitHub Desktop.

Some of the keys of the CWLProv manifest are explained below:

    "@context": [
        {
            "@base": "arcp://uuid,67f38794-d24a-435f-bd4a-0242a56a581b/metadata/"
        },
        "https://w3id.org/bundle/context"
    ]

This JSON-LD context enables consumers to alternatively consume the JSON file as Linked Data with absolute identifiers. The key for that is the @base which means URIs within this JSON file are relative to the metadata/ folder within this Research Object bag, and the external JSON-LD.

Output from the cwltool --provenance reference implementation should follow the JSON structure shown beyond; however interested consumers may alternatively parse it as JSON-LD with a RDF triple store like Apache Jena for further querying or integration.

The manifest lists which software version created the Research Object - we will hear more from this UUID later:

    "createdBy": {
        "uri": "urn:uuid:7c9d9e88-666b-4977-85f4-c02da08a942d",
        "name": "cwltool 1.0.20180416145054"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment