Skip to content

Instantly share code, notes, and snippets.

@cboettig
Created August 31, 2020 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cboettig/02126b1ad6a65fae24eb80d2a59182a2 to your computer and use it in GitHub Desktop.
Save cboettig/02126b1ad6a65fae24eb80d2a59182a2 to your computer and use it in GitHub Desktop.
DCAT2 Provenance (JSON-LD)
{
"@context": {
"dcat": "http://www.w3.org/ns/dcat#",
"prov": "http://www.w3.org/ns/prov#",
"dct": "http://purl.org/dc/terms/",
"id": "@id",
"type": "@type",
"identifier": "dct:identifier",
"title": "dct:title",
"description": "dct:description",
"issued": "dct:issued",
"format": "dct:format",
"license": "dct:license",
"creator": "dct:creator",
"compressFormat": "dcat:compressFormat",
"byteSize": "dcat:byteSize",
"wasDerivedFrom": "prov:wasDerivedFrom",
"wasGeneratedBy": "prov:wasGeneratedBy",
"wasGeneratedAtTime": "prov:wasGeneratedAtTime",
"used": "prov:used",
"distribution": "dcat:distribution",
"Dataset": "dcat:Dataset",
"Activity": "prov:Activity",
"Distribution": "dcat:Distribution",
"isDocumentedBy": "http://purl.org/spar/cito/isDocumentedBy",
"SoftwareSourceCode": "http://schema.org/SoftwareSourceCode"
},
"type": "Dataset",
"issued": 18505,
"license": "https://creativecommons.org/publicdomain/zero/1.0/legalcode",
"distribution": [
{
"id": "hash://sha256/0546476bdea42c8b6ad744d31a5590899983d74f61b679c8da75e237a8da5f21",
"type": "Distribution",
"identifier": "hash://sha256/0546476bdea42c8b6ad744d31a5590899983d74f61b679c8da75e237a8da5f21",
"title": "eml.xml",
"description": "EML metadata document",
"format": "application/xml",
"byteSize": 40982
},
{
"id": "hash://sha256/280700dbc825b9e87fe9e079172d70342e142913d8fb38bbe520e4b94bf11548",
"type": "Distribution",
"identifier": "hash://sha256/280700dbc825b9e87fe9e079172d70342e142913d8fb38bbe520e4b94bf11548",
"title": "richness.csv",
"description": "Input data",
"format": "text/csv",
"byteSize": 60000,
"isDocumentedBy": "hash://sha256/0546476bdea42c8b6ad744d31a5590899983d74f61b679c8da75e237a8da5f21"
},
{
"type": ["Distribution", "SoftwareSourceCode"],
"id": "hash://sha256/239e0d1fff4344a15e3aaa4aa8d51eadb965090fd7db718e98c6c04d335f698b",
"identifier": "hash://sha256/239e0d1fff4344a15e3aaa4aa8d51eadb965090fd7db718e98c6c04d335f698b",
"title": "workflow.Rmd",
"description": "R code",
"format": "application/R",
"isDocumentedBy": "hash://sha256/0546476bdea42c8b6ad744d31a5590899983d74f61b679c8da75e237a8da5f21"
},
{
"id": "hash://sha256/93e741a4ff044319b3288d71c71d4e95a76039bc3656e252621d3ad49ccc8200",
"type": "Distribution",
"identifier": "hash://sha256/93e741a4ff044319b3288d71c71d4e95a76039bc3656e252621d3ad49ccc8200",
"title": "richness_forecast.csv",
"description": "output data",
"format": "text/csv",
"byteSize": 11008,
"wasGeneratedAtTime": "2020-08-19 00:13:36",
"wasDerivedFrom": "hash://sha256/280700dbc825b9e87fe9e079172d70342e142913d8fb38bbe520e4b94bf11548",
"wasGeneratedBy": {
"type": "Activity",
"description": "Running R script workflow.Rmd",
"used": "hash://sha256/239e0d1fff4344a15e3aaa4aa8d51eadb965090fd7db718e98c6c04d335f698b"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment