Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
120 additions
and
46 deletions.
There are no files selected for viewing
99 changes: 53 additions & 46 deletions
99
modules/prov/src/main/resources/contexts/nexus/core/provo20130430/v0.1.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,56 @@ | ||
{ | ||
"@context": [ | ||
"{{base}}/contexts/nexus/core/standards/v0.1.0", | ||
{ | ||
"generated": { | ||
"@id": "prov:generated" | ||
}, | ||
"used": { | ||
"@id": "prov:used" | ||
}, | ||
"qualifiedGeneration": { | ||
"@id": "prov:qualifiedGeneration" | ||
}, | ||
"wasRevisionOf": { | ||
"@id": "prov:wasRevisionOf" | ||
}, | ||
"hadMember": { | ||
"@id": "prov:hadMember" | ||
}, | ||
"wasGeneratedBy": { | ||
"@id": "prov:wasGeneratedBy" | ||
}, | ||
"wasStartedBy": { | ||
"@id": "prov:wasStartedBy" | ||
}, | ||
"wasAssociatedWith": { | ||
"@id": "prov:wasAssociatedWith" | ||
}, | ||
"qualifiedAssociation": { | ||
"@id": "prov:qualifiedAssociation" | ||
}, | ||
"qualifiedUsage": { | ||
"@id": "prov:qualifiedUsage" | ||
}, | ||
"hadRole": { | ||
"@id": "prov:hadRole" | ||
}, | ||
"activity": { | ||
"@id": "prov:activity" | ||
}, | ||
"entity": { | ||
"@id": "prov:entity" | ||
}, | ||
"agent": { | ||
"@id": "prov:agent" | ||
} | ||
"@context": { | ||
"prov": "http://www.w3.org/ns/prov#", | ||
"generated": { | ||
"@id": "prov:generated" | ||
}, | ||
"used": { | ||
"@id": "prov:used" | ||
}, | ||
"qualifiedGeneration": { | ||
"@id": "prov:qualifiedGeneration" | ||
}, | ||
"wasRevisionOf": { | ||
"@id": "prov:wasRevisionOf" | ||
}, | ||
"hadMember": { | ||
"@id": "prov:hadMember" | ||
}, | ||
"wasGeneratedBy": { | ||
"@id": "prov:wasGeneratedBy" | ||
}, | ||
"wasStartedBy": { | ||
"@id": "prov:wasStartedBy" | ||
}, | ||
"wasAssociatedWith": { | ||
"@id": "prov:wasAssociatedWith" | ||
}, | ||
"qualifiedAssociation": { | ||
"@id": "prov:qualifiedAssociation" | ||
}, | ||
"qualifiedUsage": { | ||
"@id": "prov:qualifiedUsage" | ||
}, | ||
"hadRole": { | ||
"@id": "prov:hadRole" | ||
}, | ||
"activity": { | ||
"@id": "prov:activity" | ||
}, | ||
"hadActivity": { | ||
"@id": "prov:hadActivity" | ||
}, | ||
"entity": { | ||
"@id": "prov:entity" | ||
}, | ||
"agent": { | ||
"@id": "prov:agent" | ||
}, | ||
"Derivation": { | ||
"@id": "prov:Derivation" | ||
}, | ||
"Generation": { | ||
"@id": "prov:Generation" | ||
} | ||
] | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
modules/prov/src/main/resources/schemas/nexus/prov/derivation/v0.1.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"@context": [ | ||
"{{base}}/contexts/nexus/core/schema/v0.1.0", | ||
{ | ||
"this": "{{base}}/schemas/nexus/prov/derivation/v0.1.0/shapes/" | ||
} | ||
], | ||
"@type": "nxv:Schema", | ||
"shapes": [ | ||
{ | ||
"@id": "this:DerivationShape", | ||
"@type": "sh:NodeShape", | ||
"label": "Entity derivation shape", | ||
"comment": "A derivation is a transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a pre-existing entity.", | ||
"targetClass": "prov:Derivation", | ||
"nodeKind": "sh:BlankNodeOrIRI", | ||
"property": [ | ||
{ | ||
"path": "prov:entity", | ||
"name": "Entity", | ||
"description": "An entity from which the current one derived from.", | ||
"class": "prov:Entity", | ||
"minCount": 1, | ||
"maxCount": 1 | ||
}, | ||
{ | ||
"path": "prov:hadActivity", | ||
"name": "Activity", | ||
"description": "The optional activity that used the entity from which the current one derived from.", | ||
"class": "prov:Activity", | ||
"maxCount": 1 | ||
} | ||
] | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
modules/prov/src/test/resources/data/nexus/prov/derivation/v0.1.0/all-fields.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"@context": "{{base}}/contexts/nexus/core/provo20130430/v0.1.0", | ||
"@type": "prov:Derivation", | ||
"@id": "{{base}}/schemas/nexus/prov/derivation/v0.1.0/3ae4bf2a-c8d0-4f10-b3b3-46b7151b4ea0", | ||
"entity": { | ||
"@type": "prov:Entity", | ||
"@id": "{{base}}/schemas/nexus/prov/entity/v0.1.0/5ae4bf2a-c8d0-4f10-b3b3-46b7151b4ea0" | ||
}, | ||
"hadActivity": { | ||
"@type": "prov:Activity", | ||
"@id": "{{base}}/schemas/nexus/prov/activity/v0.1.0/2ae4bf2a-c8d0-4f10-b3b3-46b7151b4ea0" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
modules/prov/src/test/resources/data/nexus/prov/derivation/v0.1.0/min-fields.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"@context": "{{base}}/contexts/nexus/core/provo20130430/v0.1.0", | ||
"@type": "prov:Derivation", | ||
"@id": "{{base}}/schemas/nexus/prov/derivation/v0.1.0/3ae4bf2a-c8d0-4f10-b3b3-46b7151b4ea0", | ||
"entity": { | ||
"@type": "prov:Entity", | ||
"@id": "{{base}}/schemas/nexus/prov/entity/v0.1.0/5ae4bf2a-c8d0-4f10-b3b3-46b7151b4ea0" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
modules/prov/src/test/resources/invalid/nexus/prov/derivation/v0.1.0/missing-entity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"@context": "{{base}}/contexts/nexus/core/provo20130430/v0.1.0", | ||
"@type": "prov:Derivation", | ||
"@id": "{{base}}/schemas/nexus/prov/derivation/v0.1.0/3ae4bf2a-c8d0-4f10-b3b3-46b7151b4ea0", | ||
"hadActivity": { | ||
"@type": "prov:Activity", | ||
"@id": "{{base}}/schemas/nexus/prov/activity/v0.1.0/2ae4bf2a-c8d0-4f10-b3b3-46b7151b4ea0" | ||
} | ||
} |