Skip to content

Commit

Permalink
Added prov derivation schema (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
MFSY committed Feb 8, 2018
1 parent c7a6581 commit 23c7b5e
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 46 deletions.
@@ -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"
}
]
}
}
@@ -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
}
]
}
]
}
@@ -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"
}
}
@@ -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"
}
}
@@ -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"
}
}

0 comments on commit 23c7b5e

Please sign in to comment.