Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/core-data-product-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Below is an example of a Data Product with an associated Data Product Agreement
},
"ex:iSubjectToAgreement": {
"@id": "ex:VVSimpleAgreement",
"@type": "ex:DataProductagreement"
"@type": "ex:DataProductAgreement"
}
}
],
Expand Down
19 changes: 11 additions & 8 deletions examples/data-rights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ examplePolicyA odrl:target exampleProduct:ProductA .
examplePolicyB odrl:target exampleDataset:DatasetA1 .
```

An example of a policy follows, that describes permission to distribute the data only within a specific geographic region:
An example of an agreement follows, that describes permission to use all the datasets of the product if the user is working inside EMEA or APAC:

```json
examplePolicyA odrl:permission
{
"action": "odrl:distribute",
"constraint": [
{"leftOperand": "spatial",
"operator": "eq",
"rightOperator": "region:EMEA"
}
]
"action": "odrl:use",
"assignee": {
"@type": "odrl:PartyCollection",
"refinement": [
{"leftOperand": "odrl:spatial",
"operator": "odrl:isAnyOf",
"rightOperand": ["reg:EMEA", "reg:APAC"]
}
]
}
}
```

33 changes: 17 additions & 16 deletions examples/data-rights/example.jsonld
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
{
"@type": "Offer",
"@type": "Agreement",
"@context": [
{
"odrl": "http://www.w3.org/ns/odrl/2/",
"reg": "https://www.region.taxonomy/v/1/"
}
],
"uid": "56456df-dfg-34535345-5545",
"assigner": "https://schema.org/person/AdamSmith",
"target": "https://data.org/data-product/equity-trade-xxx",

"permission": [
{
"action": "odrl:read",
"constraint": [
{
"@type": "odrl:Constraint",
"leftOperand": "odrl:spatial",
"operator": "odrl:isAnyOf",
"rightOperand": [
"reg:EMEA",
"reg:APAC"
],
"description": " Permission to read all the datasets of the product if user is working inside EMEA or APAC"
}
]
"target": "https://data.org/data-product/equity-trade-xxx",
"assigner": "https://schema.org/person/AdamSmith",
"assignee": {
"@type": "PartyCollection",
"source": "https://example.org/DataDepartment",
"refinement": [{
"leftOperand": "odrl:spatial",
"operator": "odrl:isAnyOf",
"rightOperand": [
"reg:EMEA",
"reg:APAC"
],
"description": " Permission to read all the datasets of the product if user is working inside EMEA or APAC"
}]
},
"action": "odrl:use",
}
]
}
4 changes: 2 additions & 2 deletions ontology/dprod/dprod-ontology.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dprod:DataProduct
dprod:DataProductLifecycleStatus
a owl:Class, rdfs:Class ;
dct:description
"The development status of the data product taken from a controlled list (e.g. Ideation, Design, Build, Deploy, Consume)."@en ;
"The development status of the data product taken from a controlled list (e.g. Ideation, Design, Build, Deploy, Consume, Retire)."@en ;
rdfs:comment "The lifecycle of the data product as defined by EDM Council CDMC"@en ;
rdfs:isDefinedBy dprod: ;
rdfs:label "data product lifecycle status" ;
Expand Down Expand Up @@ -221,5 +221,5 @@ dprod:securitySchemaType
rdfs:isDefinedBy dprod: ;
rdfs:domain dcat:DataService ;
# rdfs:range rdf:resource ; # better let user decide whether they want SecuritySchemaType class or own class or skos
rdf:label "security schema type" ;
rdfs:label "security schema type" ;
.
7 changes: 3 additions & 4 deletions ontology/dprod/dprod-shapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix sdo: <http://schema.org/> .

dprod-shapes:
a owl:Ontology ;
Expand Down Expand Up @@ -125,7 +124,7 @@ dprod-shapes:InformationSensitivityClassificationShape
dprod-shapes:DataProductLifecycleStatusShape
a sh:NodeShape;
rdfs:label "data product lifecycle status shape" ;
dct:description "The development status of the data product taken from a controlled list (e.g. Ideation, Design, Build, Deploy, Consume)."@en ;
dct:description "The development status of the data product taken from a controlled list (e.g. Ideation, Design, Build, Deploy, Consume, Retire)."@en ;
sh:targetClass dprod:DataProductLifecycleStatus;
rdfs:isDefinedBy dprod-shapes:;
.
Expand Down Expand Up @@ -362,7 +361,7 @@ dprod-shapes:DataService-protocol
a sh:PropertyShape;
rdfs:isDefinedBy dprod-shapes:;
sh:path dprod:protocol;
sh:class dcat:Protocol;
sh:class dprod:Protocol;
dct:description "A protocol (possibly one of many options) used to communicate with this data service."@en ;
rdfs:label "data service protocol shape" ;
.
Expand All @@ -371,7 +370,7 @@ dprod-shapes:DataService-securitySchemaType
a sh:PropertyShape;
rdfs:isDefinedBy dprod-shapes:;
sh:path dprod:securitySchemaType;
sh:class dcat:SecuritySchemaType;
sh:class dprod:SecuritySchemaType;
dct:description "The security schema type used for authentication and communication with this Data Service."@en ;
rdfs:label "data service security schema type shape" ;
.
Expand Down
9 changes: 9 additions & 0 deletions respec/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,15 @@ <h2>Normative namespaces</h2>
</td>
<td>[[dprod]]</td>
</tr>
<tr>
<td>
<code>dprod-shapes</code>
</td>
<td>
<code>https://ekgf.github.io/dprod/shapes/</code>
</td>
<td>[[dprod]]</td>
</tr>
<tr>
<td>
<code>dcat</code>
Expand Down
1 change: 1 addition & 0 deletions spec-generator/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

IGNORED_NODE_SHAPE_PREDICATES = (
RDF.type,
RDFS.label,
RDFS.isDefinedBy,
SKOS.altLabel,
SKOS.changeNote,
Expand Down