Skip to content

Commit

Permalink
Added qualifiedGeneration test
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-metalinkage committed May 28, 2024
1 parent 8b96719 commit 9f716d5
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
8 changes: 8 additions & 0 deletions _sources/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,13 @@
ref: examples/example.json
base-uri: http://www.example.com/exampleEntity/

- title: Qualified Generation
content: |-
A [qualified generation](https://www.w3.org/TR/prov-o/#qualifiedGeneration) example.
snippets:
- language: json
ref: examples/example-activityinfluence.json
base-uri: http://www.example.com/exampleEntity/


43 changes: 43 additions & 0 deletions _sources/examples/example-activityinfluence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"@context": {
"@base": "https://example.org/aThing/",
"agents": "https://someagentregister.eg/",
"thing": "https://example.org/entities/",
"foaf": "http://xmlns.com/foaf/0.1/",
"survtypes": "https://example.org/surveytypes/",
"surveyreg": "https://example.org/surveys/",
"featureType": {
"@id": "@type",
"@context": {
"@base": "http://example.org/myEntities/"
}
},
"activityType": {
"@id": "@type",
"@context": {
"@base": "http://example.org/myActivityTypes/"
}
}
},
"id": "DP-1",
"type": "Feature",
"featureType": "Survey",
"qualifiedGeneration": [
{
"type": "Generation",
"activity": {
"id": "uuid:d7e8b17e-2d80-4c42-a797-bc3628f52c44",
"type": [
"wfprov:ProcessRun",
"Activity"
],
"name": "Run of workflow/packed.cwl#main/sorted"
},
"atTime": "2018-10-25T15:46:38.058365",
"hadRole": "wf:main/sorted/output"
}
]
}



5 changes: 4 additions & 1 deletion _sources/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,10 @@
"$ref": "#/$defs/oneOrMoreObjectref"
},
"hadActivity": {
"$ref": "#/$defs/oneOrMoreObjectref"
"$ref": "#/$defs/oneOrMoreActivitiesOrRefIds"
},
"activity": {
"$ref": "#/$defs/oneOrMoreActivitiesOrRefIds"
}
}
},
Expand Down

0 comments on commit 9f716d5

Please sign in to comment.