From 73cafe63147572c7c9ed2aedfda4d9d12c8e3d68 Mon Sep 17 00:00:00 2001 From: arnoweiss Date: Thu, 21 Nov 2024 21:23:18 +0100 Subject: [PATCH] feat: remove shapes, references to them --- catalog/catalog.protocol.md | 68 ++--- catalog/message/shape/catalog-error-shape.ttl | 40 --- .../shape/catalog-request-message-shape.ttl | 37 --- .../shape/dataset-request-message-shape.ttl | 40 --- catalog/message/shape/dataset-shape.ttl | 78 ----- catalog/message/shape/dcat-shapes.ttl | 267 ------------------ common/common.protocol.md | 2 +- common/shape/odrl-shapes.ttl | 79 ------ common/shape/version-shape.ttl | 0 negotiation/contract.negotiation.protocol.md | 16 +- .../contract-agreement-message-shape.ttl | 69 ----- ...t-agreement-verification-message-shape.ttl | 51 ---- .../contract-negotiation-error-shape.ttl | 73 ----- ...ntract-negotiation-event-message-shape.ttl | 60 ---- .../contract-negotiation-message-shape.ttl | 51 ---- .../shape/contract-negotiation-shape.ttl | 69 ----- ...-negotiation-termination-message-shape.ttl | 63 ----- .../shape/contract-offer-message-shape.ttl | 69 ----- .../shape/contract-request-message-shape.ttl | 69 ----- resources/list_shapes.md | 30 -- .../transfer-completion-message-shape.ttl | 53 ---- .../shape/transfer-data-address-shape.ttl | 85 ------ .../message/shape/transfer-error-shape.ttl | 66 ----- .../message/shape/transfer-process-shape.ttl | 69 ----- .../shape/transfer-request-message-shape.ttl | 82 ------ .../shape/transfer-start-message-shape.ttl | 62 ---- .../transfer-suspension-message-shape.ttl | 60 ---- .../transfer-termination-message-shape.ttl | 67 ----- transfer/transfer.process.protocol.md | 90 +++--- 29 files changed, 88 insertions(+), 1777 deletions(-) delete mode 100644 catalog/message/shape/catalog-error-shape.ttl delete mode 100644 catalog/message/shape/catalog-request-message-shape.ttl delete mode 100644 catalog/message/shape/dataset-request-message-shape.ttl delete mode 100644 catalog/message/shape/dataset-shape.ttl delete mode 100644 catalog/message/shape/dcat-shapes.ttl delete mode 100644 common/shape/odrl-shapes.ttl delete mode 100644 common/shape/version-shape.ttl delete mode 100644 negotiation/message/shape/contract-agreement-message-shape.ttl delete mode 100644 negotiation/message/shape/contract-agreement-verification-message-shape.ttl delete mode 100644 negotiation/message/shape/contract-negotiation-error-shape.ttl delete mode 100644 negotiation/message/shape/contract-negotiation-event-message-shape.ttl delete mode 100644 negotiation/message/shape/contract-negotiation-message-shape.ttl delete mode 100644 negotiation/message/shape/contract-negotiation-shape.ttl delete mode 100644 negotiation/message/shape/contract-negotiation-termination-message-shape.ttl delete mode 100644 negotiation/message/shape/contract-offer-message-shape.ttl delete mode 100644 negotiation/message/shape/contract-request-message-shape.ttl delete mode 100644 resources/list_shapes.md delete mode 100644 transfer/message/shape/transfer-completion-message-shape.ttl delete mode 100644 transfer/message/shape/transfer-data-address-shape.ttl delete mode 100644 transfer/message/shape/transfer-error-shape.ttl delete mode 100644 transfer/message/shape/transfer-process-shape.ttl delete mode 100644 transfer/message/shape/transfer-request-message-shape.ttl delete mode 100644 transfer/message/shape/transfer-start-message-shape.ttl delete mode 100644 transfer/message/shape/transfer-suspension-message-shape.ttl delete mode 100644 transfer/message/shape/transfer-termination-message-shape.ttl diff --git a/catalog/catalog.protocol.md b/catalog/catalog.protocol.md index 7f2d516..a93e7d5 100644 --- a/catalog/catalog.protocol.md +++ b/catalog/catalog.protocol.md @@ -92,14 +92,14 @@ formats. ### Catalog Request Message -| | | -|---------------------|-------------------------------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Consumer=] | -| **Resulting state** | `TERMINATED` | -| **Response** | [ACK](#ack-catalog) or [ERROR](#error-catalog-error) | -| **Schema** | [TTL Shape](./message/shape/catalog-request-message-shape.ttl), [JSON Schema](./message/schema/catalog-request-message-schema.json) | -| **Example** | [Message](./message/example/catalog-request-message.json) | -| **Diagram(s)** | ![](./message/diagram/catalog-request-message.png "Catalog Request Message") | +| | | +|---------------------|------------------------------------------------------------------------------| +| **Sent by** | [=Consumer=] | +| **Resulting state** | `TERMINATED` | +| **Response** | [ACK](#ack-catalog) or [ERROR](#error-catalog-error) | +| **Schema** | [JSON Schema](./message/schema/catalog-request-message-schema.json) | +| **Example** | [Message](./message/example/catalog-request-message.json) | +| **Diagram(s)** | ![](./message/diagram/catalog-request-message.png "Catalog Request Message") | The Catalog Request Message is message sent by a [=Consumer=] to a [=Catalog Service=]. @@ -115,14 +115,14 @@ is a valid instance of a [DCAT Catalog](https://www.w3.org/TR/vocab-dcat-3/#Clas ### Dataset Request Message -| | | -|---------------------|-------------------------------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Consumer=] | -| **Resulting state** | `TERMINATED` | -| **Response** | [ACK](#ack-catalog) or [ERROR](#error-catalog-error) | -| **Schema** | [TTL Shape](./message/shape/dataset-request-message-shape.ttl), [JSON Schema](./message/schema/dataset-request-message-schema.json) | -| **Example** | [Message](./message/example/dataset-request-message.json) | -| **Diagram(s)** | ![](./message/diagram/dataset-request-message.png) | +| | | +|---------------------|---------------------------------------------------------------------| +| **Sent by** | [=Consumer=] | +| **Resulting state** | `TERMINATED` | +| **Response** | [ACK](#ack-catalog) or [ERROR](#error-catalog-error) | +| **Schema** | [JSON Schema](./message/schema/dataset-request-message-schema.json) | +| **Example** | [Message](./message/example/dataset-request-message.json) | +| **Diagram(s)** | ![](./message/diagram/dataset-request-message.png) | The Dataset Request Message is message sent by a [=Consumer=] to a [=Catalog Service=]. @@ -141,32 +141,32 @@ provided in protocol-dependent forms, e.g., for an HTTPS binding in the request ### ACK - Catalog -| | | -|----------------|---------------------------------------------------------------------------------------------------| -| **Sent by** | [=Provider=] | -| **Schema** | [TTL Shape](./message/shape/dcat-shapes.ttl), [JSON Schema](./message/schema/catalog-schema.json) | -| **Example** | [Catalog Example](./message/example/catalog.json) | -| **Diagram(s)** | ![](./message/diagram/catalog.png) | +| | | +|----------------|-----------------------------------------------------| +| **Sent by** | [=Provider=] | +| **Schema** | [JSON Schema](./message/schema/catalog-schema.json) | +| **Example** | [Catalog Example](./message/example/catalog.json) | +| **Diagram(s)** | ![](./message/diagram/catalog.png) | The [=Catalog=] contains all [Datasets](#dataset) which the requester shall see. ### ACK - Dataset -| | | -|----------------|---------------------------------------------------------------------------------------------------| -| **Sent by** | [=Provider=] | -| **Schema** | [TTL Shape](./message/shape/dcat-shapes.ttl), [JSON Schema](./message/schema/dataset-schema.json) | -| **Example** | [Dataset Example](./message/example/dataset.json) | -| **Diagram(s)** | ![](./message/diagram/dataset.png) | +| | | +|----------------|-----------------------------------------------------| +| **Sent by** | [=Provider=] | +| **Schema** | [JSON Schema](./message/schema/dataset-schema.json) | +| **Example** | [Dataset Example](./message/example/dataset.json) | +| **Diagram(s)** | ![](./message/diagram/dataset.png) | ### ERROR - Catalog Error -| | | -|----------------|-----------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Consumer=], [=Provider=] | -| **Schema** | [TTL Shape](./message/shape/catalog-error-shape.ttl), [JSON Schema](./message/schema/catalog-error-schema.json) | -| **Example** | [Error](./message/example/catalog-error.json) | -| **Diagram(s)** | ![](./message/diagram/catalog-error.png) | +| | | +|----------------|-----------------------------------------------------------| +| **Sent by** | [=Consumer=], [=Provider=] | +| **Schema** | [JSON Schema](./message/schema/catalog-error-schema.json) | +| **Example** | [Error](./message/example/catalog-error.json) | +| **Diagram(s)** | ![](./message/diagram/catalog-error.png) | A Catalog Error is used when an error occurred after a [Catalog Request Message](#catalog-request-message) or a [Dataset Request Message](#dataset-request-message) and the [=Provider=] cannot diff --git a/catalog/message/shape/catalog-error-shape.ttl b/catalog/message/shape/catalog-error-shape.ttl deleted file mode 100644 index 9a28e39..0000000 --- a/catalog/message/shape/catalog-error-shape.ttl +++ /dev/null @@ -1,40 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:CatalogErrorShape - a sh:NodeShape ; - sh:targetClass dspace:CatalogError ; - sh:property [ - sh:path dspace:code ; - sh:datatype xsd:string ; - ] ; - sh:property [ - sh:path dspace:reason ; - sh:datatype rdf:langString ; - ] ; - -. diff --git a/catalog/message/shape/catalog-request-message-shape.ttl b/catalog/message/shape/catalog-request-message-shape.ttl deleted file mode 100644 index 30030f2..0000000 --- a/catalog/message/shape/catalog-request-message-shape.ttl +++ /dev/null @@ -1,37 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:CatalogRequestMessageShape - a sh:NodeShape ; - sh:targetClass dspace:CatalogRequestMessage ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:filter ; - ] ; - -. \ No newline at end of file diff --git a/catalog/message/shape/dataset-request-message-shape.ttl b/catalog/message/shape/dataset-request-message-shape.ttl deleted file mode 100644 index c1542a6..0000000 --- a/catalog/message/shape/dataset-request-message-shape.ttl +++ /dev/null @@ -1,40 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:DatasetRequestMessageShape - a sh:NodeShape ; - sh:targetClass dspace:DatasetRequestMessage ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:dataset ; - sh:minCount 1 ; - sh:maxCount 1 ; - sh:severity sh:Violation ; - sh:message " (DatasetRequestMessage): There must be exactly one dspace:dataset property."@en ; - ] ; -. diff --git a/catalog/message/shape/dataset-shape.ttl b/catalog/message/shape/dataset-shape.ttl deleted file mode 100644 index 2bb0c50..0000000 --- a/catalog/message/shape/dataset-shape.ttl +++ /dev/null @@ -1,78 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . -@prefix prov: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:DatasetShape - a sh:NodeShape ; - sh:targetClass dcat:Dataset ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:distribution ; - sh:class dcat:Distribution ; - sh:minCount 0; - sh:severity sh:Violation ; - sh:message " (DatasetShape): A dcat:distribution property must point to a dcat:Distribution."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:keyword ; - sh:datatype xsd:string ; - sh:minCount 0; - sh:severity sh:Violation ; - sh:message " (DatasetShape): A dcat:keyword property must point to a xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:description ; - sh:datatype rdf:langString ; - sh:minCount 0; - sh:severity sh:Violation ; - sh:message " (DatasetShape): A dct:description property must point to a rdf:langString field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:title ; - sh:datatype rdf:langString ; - sh:minCount 0; - sh:severity sh:Violation ; - sh:message " (DatasetShape): A dct:title property must point to a language tagged field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path odrl:hasPolicy ; - sh:class odrl:Offer ; - sh:severity sh:Violation ; - sh:minCount 0; - sh:message " (DatasetShape): An odrl:hasPolicy property must point to an odrl:Policy."@en ; - ] ; - -. diff --git a/catalog/message/shape/dcat-shapes.ttl b/catalog/message/shape/dcat-shapes.ttl deleted file mode 100644 index 217aa89..0000000 --- a/catalog/message/shape/dcat-shapes.ttl +++ /dev/null @@ -1,267 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . -@prefix foaf: . -@prefix prov: . -@prefix skos: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - - -dspace_shapes:ResourceShape - a sh:NodeShape ; - sh:targetClass dcat:Resource ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:keyword ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dcat:keyword property must point to a xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:theme ; - sh:class skos:Concept ; - sh:minCount 0 ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dcat:theme property must point to a skos:Concept."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:conformsTo ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dct:accessconformsToRights property must point to a xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:creator ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dct:creator property must point to a xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:description ; - sh:datatype rdf:langString ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dct:description property must point to a rdf:langString field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:identifier ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dct:identifier property must point to a xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:issued ; - sh:datatype xsd:dateTime ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dct:issued property must point to a xsd:dateTime field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:modified ; - sh:datatype xsd:dateTime ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dct:modified property must point to a xsd:dateTime field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:title ; - sh:datatype rdf:langString ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): A dct:title property must point to a rdf:langString field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path odrl:hasPolicy ; - sh:class odrl:Offer ; - sh:severity sh:Violation ; - sh:message " (ResourceShape): An odrl:hasPolicy property must point to an odrl:Offer."@en ; - ] ; - -. - - -dspace_shapes:DatasetShape - a sh:NodeShape ; - sh:targetClass dcat:Dataset ; - rdfs:subClassOf dspace_shapes:ResourceShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:distribution ; - sh:class dcat:Distribution ; - sh:minCount 0; - sh:severity sh:Violation ; - sh:message " (DatasetShape): A dcat:distribution property must point to a dcat:Distribution."@en ; - ] ; - -. - -dspace_shapes:CatalogShape - a sh:NodeShape ; - sh:targetClass dcat:Catalog ; - rdfs:subClassOf dspace_shapes:DatasetShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:dataset ; - sh:class dcat:Dataset ; - sh:severity sh:Violation ; - sh:message " (CatalogShape): A dcat:dataset property must point to a dcat:Dataset."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:service ; - sh:class dcat:DataService ; - sh:severity sh:Violation ; - sh:message " (CatalogShape): A dcat:service property must point to a dcat:DataService."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path foaf:homepage ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:message " (CatalogShape): A foaf:homepage property must point to a xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:participantId ; - sh:nodeKind sh:IRI ; - sh:severity sh:Violation ; - sh:message " (CatalogShape): A dspace:participantId property must point to an IRI."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path odrl:hasPolicy ; - sh:maxCount 0 ; - sh:severity sh:Violation ; - sh:message " (CatalogShape): A dspace:Catalog must not have any odrl:hasPolicy property."@en ; - ] ; - -. - - -dspace_shapes:DistributionShape - a sh:NodeShape ; - sh:targetClass dcat:Distribution ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:description ; - sh:datatype rdf:langString ; - sh:severity sh:Violation ; - sh:message " (DistributionShape): A dct:description property must point to a rdf:langString field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:issued ; - sh:datatype xsd:dateTime ; - sh:severity sh:Violation ; - sh:message " (DistributionShape): A dct:issued property must point to a xsd:dateTime field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:modified ; - sh:datatype xsd:dateTime ; - sh:severity sh:Violation ; - sh:message " (DistributionShape): A dct:modified property must point to a xsd:dateTime field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:title ; - sh:datatype rdf:langString ; - sh:severity sh:Violation ; - sh:message " (DistributionShape): A dct:title property must point to a rdf:langString field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:accessService ; - sh:class dcat:DataService ; - sh:severity sh:Violation ; - sh:message " (DistributionShape): A dcat:accessService property must point to a dcat:DataService."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path odrl:hasPolicy ; - sh:class odrl:Offer ; - sh:severity sh:Violation ; - sh:message " (DistributionShape): An odrl:hasPolicy property must point to an odrl:Offer."@en ; - ] ; -. - -dspace_shapes:DataServiceShape - a sh:NodeShape ; - sh:targetClass dcat:DataService ; - rdfs:subClassOf dspace_shapes:ResourceShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:endpointDescription ; - sh:datatype xsd:anyURI ; - sh:severity sh:Violation ; - sh:message " (DataServiceShape): A dcat:endpointDescription property must point to a xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:endpointURL ; - sh:datatype xsd:anyURI ; - sh:severity sh:Violation ; - sh:message " (DataServiceShape): A dcat:endpointURL property must point to a xsd:anyURI field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dcat:servesDataset ; - sh:class dcat:Dataset ; - sh:minCount 0; - sh:severity sh:Violation ; - sh:message " (DataServiceShape): A dcat:servesDataset property must point to a dcat:Dataset."@en ; - ] ; - -. diff --git a/common/common.protocol.md b/common/common.protocol.md index eb3ffc1..57d60a5 100644 --- a/common/common.protocol.md +++ b/common/common.protocol.md @@ -18,6 +18,6 @@ A [=Connector=] must respond to a respective request by providing a JSON-LD obje } ``` -This data object must comply to the [JSON Schema](schema/version-schema.json) and the [SHACL Shape](shape/version-shape.ttl). +This data object must comply to the [JSON Schema](schema/version-schema.json). The requesting [=Connector=] may select from the endpoints in the response. If the [=Connector=] can't identify a matching Dataspace Protocol Version, it must terminate the communication. \ No newline at end of file diff --git a/common/shape/odrl-shapes.ttl b/common/shape/odrl-shapes.ttl deleted file mode 100644 index 4cc342e..0000000 --- a/common/shape/odrl-shapes.ttl +++ /dev/null @@ -1,79 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:OfferShape - a sh:NodeShape ; - sh:targetClass odrl:Offer ; - - sh:property [ - a sh:PropertyShape ; - sh:path odrl:target ; - sh:datatype xsd:anyURI ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (OfferShape): An odrl:target property must point to exactly one xsd:anyURI."@en ; - ] ; -. - - -dspace_shapes:AgreementShape - a sh:NodeShape ; - sh:targetClass odrl:Agreement ; - - sh:property [ - a sh:PropertyShape ; - sh:path odrl:target ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:timestamp ; - sh:datatype xsd:dateTime ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (AgreementShape): An dspace:timestamp property must point to exactly one xsd:dateTime value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path odrl:assigner ; - sh:nodeKind sh:IRI ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (AgreementShape): An odrl:assigner property must point to exactly one Provider Node."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path odrl:assignee ; - sh:nodeKind sh:IRI ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (AgreementShape): An odrl:assignee property must point to exactly one Consumer Node."@en ; - ] ; -. diff --git a/common/shape/version-shape.ttl b/common/shape/version-shape.ttl deleted file mode 100644 index e69de29..0000000 diff --git a/negotiation/contract.negotiation.protocol.md b/negotiation/contract.negotiation.protocol.md index aa9454b..66cca77 100644 --- a/negotiation/contract.negotiation.protocol.md +++ b/negotiation/contract.negotiation.protocol.md @@ -57,7 +57,7 @@ as abstract message types. | **Sent by** | [=Consumer=] | | **Resulting state** | `REQUESTED`, `TERMINATED` | | **Response** | [ACK](#ack-contract-negotiation) or [ERROR](#error-contract-negotiation-error) | -| **Schema** | [TTL Shape](./message/shape/contract-request-message-shape.ttl), [JSON Schema](./message/schema/contract-request-message-schema.json) | +| **Schema** | [JSON Schema](./message/schema/contract-request-message-schema.json) | | **Example** | Initiating [Message](./message/example/contract-request-message_initial.json), [Message](./message/example/contract-offer-message.json) | | **Diagram(s)** | ![](./message/diagram/contract-request-message.png "Contract Request Message") | @@ -85,7 +85,7 @@ a [Contract Offer Message](#contract-offer-message) sent by a [=Provider=]. | **Sent by** | [=Provider=] | | **Resulting state** | `OFFERED`, `TERMINATED` | | **Response** | [ACK](#ack-contract-negotiation) or [ERROR](#error-contract-negotiation-error) | -| **Schema** | [TTL Shape](./message/shape/contract-offer-message-shape.ttl), [JSON Schema](./message/schema/contract-offer-message-schema.json) | +| **Schema** | [JSON Schema](./message/schema/contract-offer-message-schema.json) | | **Example** | [Example Initial Message](./message/example/contract-offer-message_initial.json), [Example Message](./message/example/contract-offer-message.json) | | **Diagram(s)** | ![](./message/diagram/contract-offer-message_initial.png "Initial Contract Offer message (note the missing `consumerPid`)")

![](./message/diagram/contract-offer-message.png "Contract Offer Message following a [[[#contract-request-message]]]") | @@ -108,7 +108,7 @@ a [Contract Request Message](#contract-request-message) sent by a [=Consumer=]. | **Sent by** | [=Provider=] | | **Resulting state** | `AGREED`, `TERMINATED` | | **Response** | [ACK](#ack-contract-negotiation) or [ERROR](#error-contract-negotiation-error) | -| **Schema** | [TTL Shape](./message/shape/contract-agreement-message-shape.ttl), [JSON Schema](./message/schema/contract-agreement-message-schema.json) | +| **Schema** | [JSON Schema](./message/schema/contract-agreement-message-schema.json) | | **Example** | [Message](./message/example/contract-agreement-message.json) | | **Diagram(s)** | ![](./message/diagram/contract-agreement-message.png "Contract Agreement Message") | @@ -134,7 +134,7 @@ complete [=Agreement=]. | **Sent by** | [=Consumer=] | | **Resulting state** | `VERIFIED`, `TERMINATED` | | **Response** | [ACK](#ack-contract-negotiation) or [ERROR](#error-contract-negotiation-error) | -| **Schema** | [TTL Shape](./message/shape/contract-agreement-verification-message-shape.ttl), [JSON Schema](./message/schema/contract-agreement-verification-message-schema.json) | +| **Schema** | [JSON Schema](./message/schema/contract-agreement-verification-message-schema.json) | | **Example** | [Message](./message/example/contract-agreement-verification-message.json) | | **Diagram(s)** | ![](./message/diagram/contract-agreement-verification-message.png "Contract Agreement Verification Message") | @@ -150,7 +150,7 @@ The Contract Agreement Verification Message is sent by a [=Consumer=] to verify | **Sent by** | [=Consumer=], [=Provider=] | | **Resulting state** | `FINALIZED`, `ACCEPTED`, `TERMINATED` | | **Response** | [ACK](#ack-contract-negotiation) or [ERROR](#error-contract-negotiation-error) | -| **Schema** | [TTL Shape](./message/shape/contract-negotiation-event-message-shape.ttl), [JSON Schema](./message/schema/contract-negotiation-event-message-schema.json) | +| **Schema** | [JSON Schema](./message/schema/contract-negotiation-event-message-schema.json) | | **Example** | [Message](./message/example/contract-negotiation-event-message.json) | | **Diagram(s)** | ![](./message/diagram/contract-negotiation-event-message.png "Contract Negotiation Event Message") | @@ -177,7 +177,7 @@ terminal state. | **Sent by** | [=Consumer=], [=Provider=] | | **Resulting state** | `TERMINATED` | | **Response** | [ACK](#ack-contract-negotiation) or [ERROR](#error-contract-negotiation-error) | -| **Schema** | [TTL Shape](./message/shape/contract-negotiation-termination-message-shape.ttl), [JSON Schema](./message/schema/contract-negotiation-termination-message-schema.json) | +| **Schema** | [JSON Schema](./message/schema/contract-negotiation-termination-message-schema.json) | | **Example** | [Message](./message/example/contract-negotiation-termination-message.json) | | **Diagram(s)** | ![](./message/diagram/contract-negotiation-termination-message.png "Contract Negotiation Termination message") | @@ -202,7 +202,7 @@ provided in protocol-dependent forms, e.g., for an HTTPS binding in the request | | | |----------------|-------------------------------------------------------------------------------------------------------------------------------| | **Sent by** | [=Consumer=], [=Provider=] | -| **Schema** | [TTL Shape](./message/shape/contract-negotiation-shape.ttl), [JSON Schema](./message/schema/contract-negotiation-schema.json) | +| **Schema** | [JSON Schema](./message/schema/contract-negotiation-schema.json) | | **Example** | [Process](./message/example/contract-negotiation.json) | | **Diagram(s)** | ![](./message/diagram/contract-negotiation.png "Contract Negotiation ACK") | @@ -214,7 +214,7 @@ happened. | | | |----------------|-------------------------------------------------------------------------------------------------------------------------------------------| | **Sent by** | [=Consumer=], [=Provider=] | -| **Schema** | [TTL Shape](./message/shape/contract-negotiation-error-shape.ttl), [JSON Schema](./message/schema/contract-negotiation-error-schema.json) | +| **Schema** | [JSON Schema](./message/schema/contract-negotiation-error-schema.json) | | **Example** | [Error](./message/example/contract-negotiation-error.json) | | **Diagram(s)** | ![](./message/diagram/contract-negotiation-error.png "Contract Negotiation Error") | diff --git a/negotiation/message/shape/contract-agreement-message-shape.ttl b/negotiation/message/shape/contract-agreement-message-shape.ttl deleted file mode 100644 index d5624b8..0000000 --- a/negotiation/message/shape/contract-agreement-message-shape.ttl +++ /dev/null @@ -1,69 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractAgreementMessageShape - a sh:NodeShape ; - sh:targetClass dspace:ContractAgreementMessage ; - rdfs:subClassOf dspace_shapes:ContractNegotiationMessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractAgreementMessageShape): An dspace:providerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractAgreementMessageShape): An dspace:consumerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:agreement ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:class odrl:Agreement ; - sh:severity sh:Violation ; - sh:message " (ContractAgreementMessageShape): An dspace:agreement property must point to exactly one odrl:Agreement class."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:callbackAddress ; - sh:datatype xsd:anyURI ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractAgreementMessageShape): An dspace:callbackAddress property must point to exactly one xsd:anyURI value."@en ; - ] -. diff --git a/negotiation/message/shape/contract-agreement-verification-message-shape.ttl b/negotiation/message/shape/contract-agreement-verification-message-shape.ttl deleted file mode 100644 index a3c3fea..0000000 --- a/negotiation/message/shape/contract-agreement-verification-message-shape.ttl +++ /dev/null @@ -1,51 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractAgreementVerificationMessageShape - a sh:NodeShape ; - sh:targetClass dspace:ContractAgreementVerificationMessage ; - rdfs:subClassOf dspace_shapes:ContractNegotiationMessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractAgreementVerificationMessageShape): A dspace:providerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractAgreementVerificationMessageShape): A dspace:consumerPid property must point to exactly one xsd:string value."@en ; - ] ; -. \ No newline at end of file diff --git a/negotiation/message/shape/contract-negotiation-error-shape.ttl b/negotiation/message/shape/contract-negotiation-error-shape.ttl deleted file mode 100644 index 60e119c..0000000 --- a/negotiation/message/shape/contract-negotiation-error-shape.ttl +++ /dev/null @@ -1,73 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractNegotiationErrorShape - a sh:NodeShape ; - sh:targetClass dspace:ContractNegotiationError ; - rdfs:subClassOf dspace_shapes:ContractNegotiationMessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationErrorShape): An dspace:providerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationErrorShape): An dspace:consumerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:code ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationErrorShape): An dspace:code property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:reason ; - sh:datatype rdf:langString ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationErrorShape): An dspace:reason property must point to rdf:langString values."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dct:description ; - sh:datatype rdf:langString ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationErrorShape): A dct:description property must point zero or more rdf:langString values."@en ; - ] -. \ No newline at end of file diff --git a/negotiation/message/shape/contract-negotiation-event-message-shape.ttl b/negotiation/message/shape/contract-negotiation-event-message-shape.ttl deleted file mode 100644 index 43beb19..0000000 --- a/negotiation/message/shape/contract-negotiation-event-message-shape.ttl +++ /dev/null @@ -1,60 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractNegotiationEventMessageShape - a sh:NodeShape ; - sh:targetClass dspace:ContractNegotiationEventMessage ; - rdfs:subClassOf dspace_shapes:ContractNegotiationMessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationEventMessageShape): An dspace:providerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationEventMessageShape): An dspace:consumerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:eventType ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationEventMessageShape): An dspace:eventType property must point to exactly one xsd:string value."@en ; - ] ; -. \ No newline at end of file diff --git a/negotiation/message/shape/contract-negotiation-message-shape.ttl b/negotiation/message/shape/contract-negotiation-message-shape.ttl deleted file mode 100644 index d4d38e1..0000000 --- a/negotiation/message/shape/contract-negotiation-message-shape.ttl +++ /dev/null @@ -1,51 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractNegotiationMessageShape - a sh:NodeShape ; - sh:targetClass dspace:ContractNegotiationMessage ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 0 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationMessageShape): An dspace:providerPid property must point to exactly one xsd:string."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 0 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationMessageShape): An dspace:consumerPid property must point to exactly one xsd:string."@en ; - ] ; -. \ No newline at end of file diff --git a/negotiation/message/shape/contract-negotiation-shape.ttl b/negotiation/message/shape/contract-negotiation-shape.ttl deleted file mode 100644 index b18ef20..0000000 --- a/negotiation/message/shape/contract-negotiation-shape.ttl +++ /dev/null @@ -1,69 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractNegotiationShape - a sh:NodeShape ; - sh:targetClass dspace:ContractNegotiation ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationShape): An dspace:providerPid property must point to exactly one xsd:string."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationShape): An dspace:consumerPid property must point to exactly one xsd:string."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:state ; - sh:in ( - dspace:REQUESTED - dspace:OFFERED - dspace:ACCEPTED - dspace:AGREED - dspace:VERIFIED - dspace:FINALIZED - dspace:TERMINATED - ) ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationShape): An dspace:state property must point to exactly one dspace:NegotiationState entity."@en ; - ] - -. \ No newline at end of file diff --git a/negotiation/message/shape/contract-negotiation-termination-message-shape.ttl b/negotiation/message/shape/contract-negotiation-termination-message-shape.ttl deleted file mode 100644 index 2d5cebb..0000000 --- a/negotiation/message/shape/contract-negotiation-termination-message-shape.ttl +++ /dev/null @@ -1,63 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractNegotiationTerminationMessageShape - a sh:NodeShape ; - sh:targetClass dspace:ContractNegotiationTerminationMessage ; - rdfs:subClassOf dspace_shapes:ContractNegotiationMessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationTerminationMessageShape): An dspace:providerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationTerminationMessageShape): An dspace:consumerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:code ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:message " (ContractNegotiationTerminationMessageShape): An dspace:code property must point to an xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:reason ; - ] - -. \ No newline at end of file diff --git a/negotiation/message/shape/contract-offer-message-shape.ttl b/negotiation/message/shape/contract-offer-message-shape.ttl deleted file mode 100644 index 36de8ba..0000000 --- a/negotiation/message/shape/contract-offer-message-shape.ttl +++ /dev/null @@ -1,69 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractOfferMessageShape - a sh:NodeShape ; - sh:targetClass dspace:ContractOfferMessage ; - rdfs:subClassOf dspace_shapes:ContractNegotiationMessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractOfferMessageShape): An dspace:providerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractOfferMessageShape): An dspace:consumerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:offer ; - sh:class odrl:Offer ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractOfferMessageShape): A dspace:offer property must point to exactly one odrl:Offer class."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:callbackAddress ; - sh:datatype xsd:anyURI ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractOfferMessageShape): A dspace:callbackAddress property must point to exactly one xsd:anyURI value."@en ; - ] ; -. \ No newline at end of file diff --git a/negotiation/message/shape/contract-request-message-shape.ttl b/negotiation/message/shape/contract-request-message-shape.ttl deleted file mode 100644 index c8f0e43..0000000 --- a/negotiation/message/shape/contract-request-message-shape.ttl +++ /dev/null @@ -1,69 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:ContractRequestMessageShape - a sh:NodeShape ; - sh:targetClass dspace:ContractRequestMessage ; - rdfs:subClassOf dspace_shapes:ContractNegotiationMessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractRequestMessageShape): An dspace:providerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractRequestMessageShape): An dspace:consumerPid property must point to exactly one xsd:string value."@en ; - ] ; - sh:property [ - a sh:PropertyShape ; - sh:path dspace:offer ; - sh:class odrl:Offer ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractRequestMessageShape): An dspace:offer property must point to exactly one odrl:Offer class."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:callbackAddress ; - sh:datatype xsd:anyURI ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:severity sh:Violation ; - sh:message " (ContractRequestMessageShape): An dspace:callbackAddress property must point to exactly one xsd:anyURI value."@en ; - ] ; -. \ No newline at end of file diff --git a/resources/list_shapes.md b/resources/list_shapes.md deleted file mode 100644 index fd7896e..0000000 --- a/resources/list_shapes.md +++ /dev/null @@ -1,30 +0,0 @@ -# Shapes - -## Catalog - -* [Catalog error shape (ttl)](./../catalog/message/shape/catalog-error-shape.ttl) -* [Catalog request message shape (ttl)](./../catalog/message/shape/catalog-request-message-shape.ttl) -* [Dataset request message shape (ttl)](./../catalog/message/shape/dataset-request-message-shape.ttl) -* [DCAT shapes (ttl)](./../catalog/message/shape/dcat-shapes.ttl) - -## Contract Negotiation - -* [Contract agreement shape (ttl)](./../negotiation/message/shape/contract-agreement-message-shape.ttl) -* [Contract agreement verification shape (ttl)](./../negotiation/message/shape/contract-agreement-verification-message-shape.ttl) -* [Contract negotiation error shape (ttl)](./../negotiation/message/shape/contract-negotiation-error-shape.ttl) -* [Contract negotiation event shape (ttl)](./../negotiation/message/shape/contract-negotiation-event-message-shape.ttl) -* [Contract negotiation message shape (ttl)](./../negotiation/message/shape/contract-negotiation-message-shape.ttl) -* [Contract negotiation shape (ttl)](./../negotiation/message/shape/contract-negotiation-shape.ttl) -* [Contract negotiation termination shape (ttl)](./../negotiation/message/shape/contract-negotiation-termination-message-shape.ttl) -* [Contract offer message shape (ttl)](./../negotiation/message/shape/contract-offer-message-shape.ttl) -* [Contract request shape (ttl)](./../negotiation/message/shape/contract-request-message-shape.ttl) - -## Transfer Process - -* [Transfer completion shape (ttl)](./../transfer/message/shape/transfer-completion-message-shape.ttl) -* [Transfer error shape (ttl)](./../transfer/message/shape/transfer-error-shape.ttl) -* [Transfer prcess shape (ttl)](./../transfer/message/shape/transfer-process-shape.ttl) -* [Transfer request shape (ttl)](./../transfer/message/shape/transfer-request-message-shape.ttl) -* [Transfer start shape (ttl)](./../transfer/message/shape/transfer-start-message-shape.ttl) -* [Transfer suspension shape (ttl)](./../transfer/message/shape/transfer-suspension-message-shape.ttl) -* [Transfer termination shape (ttl)](./../transfer/message/shape/transfer-termination-message-shape.ttl) \ No newline at end of file diff --git a/transfer/message/shape/transfer-completion-message-shape.ttl b/transfer/message/shape/transfer-completion-message-shape.ttl deleted file mode 100644 index c39999b..0000000 --- a/transfer/message/shape/transfer-completion-message-shape.ttl +++ /dev/null @@ -1,53 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:TransferCompletionMessageShape - a sh:NodeShape ; - sh:targetClass dspace:TransferCompletionMessage ; - rdfs:subClassOf dspace_shapes:MessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferCompletionMessageShape): An dspace:providerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferCompletionMessageShape): An dspace:consumerPid property must point exactly one xsd:string field."@en ; - ] ; - -. \ No newline at end of file diff --git a/transfer/message/shape/transfer-data-address-shape.ttl b/transfer/message/shape/transfer-data-address-shape.ttl deleted file mode 100644 index 6223610..0000000 --- a/transfer/message/shape/transfer-data-address-shape.ttl +++ /dev/null @@ -1,85 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -shapes:DataAddressShape - a sh:NodeShape ; - sh:targetClass dspace:DataAddress ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:endpointType ; - sh:datatype xsd:anyURI ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (DataAddressShape): An dspace:endpointType property must point exactly one xsd:anyURI field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:endpoint ; - sh:datatype xsd:anyURI ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (DataAddressShape): An dspace:endpoint property must point exactly one xsd:anyURI field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:endpointProperties ; - sh:class dspace:EndpointProperty ; - sh:minCount 0 ; - sh:severity sh:Violation ; - sh:message " (TransferErrorShape): An dspace:endpointProperties property must point to zero or more dspace:EndpointProperty."@en ; - ] ; - -. - -shapes:EndpointPropertyShape - sh:targetClass dspace:EndpointProperty ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:name ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (EndpointPropertyShape): An dspace:name property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:value ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (EndpointPropertyShape): An dspace:value property must point exactly one xsd:string field."@en ; - ] ; -. \ No newline at end of file diff --git a/transfer/message/shape/transfer-error-shape.ttl b/transfer/message/shape/transfer-error-shape.ttl deleted file mode 100644 index c0a11e1..0000000 --- a/transfer/message/shape/transfer-error-shape.ttl +++ /dev/null @@ -1,66 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:TransferErrorShape - a sh:NodeShape ; - sh:targetClass dspace:TransferError ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferErrorShape): An dspace:providerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferErrorShape): An dspace:consumerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:code ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:severity sh:Violation ; - sh:message " (TransferErrorShape): An dspace:code property must point to exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:reason ; - ] ; - -. \ No newline at end of file diff --git a/transfer/message/shape/transfer-process-shape.ttl b/transfer/message/shape/transfer-process-shape.ttl deleted file mode 100644 index ad9d941..0000000 --- a/transfer/message/shape/transfer-process-shape.ttl +++ /dev/null @@ -1,69 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:TransferProcessShape - a sh:NodeShape ; - sh:targetClass dspace:TransferProcess ; - rdfs:subClassOf dspace_shapes:MessageShape ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferProcessShape): An dspace:providerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferProcessShape): An dspace:consumerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:state ; - sh:in ( - dspace:REQUESTED - dspace:STARTED - dspace:TERMINATED - dspace:COMPLETED - dspace:SUSPENDED - ) ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferProcessShape): An dspace:state property must point exactly one dspace:TransferState entity."@en ; - ] ; - -. \ No newline at end of file diff --git a/transfer/message/shape/transfer-request-message-shape.ttl b/transfer/message/shape/transfer-request-message-shape.ttl deleted file mode 100644 index e712ca7..0000000 --- a/transfer/message/shape/transfer-request-message-shape.ttl +++ /dev/null @@ -1,82 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:TransferRequestMessageShape - a sh:NodeShape ; - sh:targetClass dspace:TransferRequestMessage ; - - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:agreementId ; - sh:nodeKind sh:IRI ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferRequestMessageShape): An dspace:agreementId property must point exactly one resource."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dct:format ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferRequestMessageShape): A dct:format property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:dataAddress ; - sh:class dspace:DataAddress ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 0 ; - sh:message " (TransferRequestMessageShape): An dspace:dataAddress property must point zero or one dspace:DataAddress field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:callbackAddress ; - sh:datatype xsd:anyURI ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferRequestMessageShape): An dspace:callbackAddress property must point exactly one xsd:anyURI field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferRequestMessageShape): An dspace:consumerPid property must point exactly one xsd:string field."@en ; - ] ; -. diff --git a/transfer/message/shape/transfer-start-message-shape.ttl b/transfer/message/shape/transfer-start-message-shape.ttl deleted file mode 100644 index a636af4..0000000 --- a/transfer/message/shape/transfer-start-message-shape.ttl +++ /dev/null @@ -1,62 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:TransferStartMessageShape - a sh:NodeShape ; - sh:targetClass dspace:TransferStartMessage ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferStartMessageShape): An dspace:providerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferStartMessageShape): An dspace:consumerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:dataAddress ; - sh:class dspace:DataAddress ; - sh:maxCount 1 ; - sh:minCount 0 ; - sh:severity sh:Violation ; - sh:message " (TransferStartMessageShape): An dspace:dataAddress property must point from an dspace:TransferStartMessage to a dspace:DataAddress object."@en ; - ] ; - -. \ No newline at end of file diff --git a/transfer/message/shape/transfer-suspension-message-shape.ttl b/transfer/message/shape/transfer-suspension-message-shape.ttl deleted file mode 100644 index 6402f94..0000000 --- a/transfer/message/shape/transfer-suspension-message-shape.ttl +++ /dev/null @@ -1,60 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:TransferSuspensionMessageShape - a sh:NodeShape ; - sh:targetClass dspace:TransferSuspensionMessage ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferSuspensionMessageShape): An dspace:providerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferSuspensionMessageShape): An dspace:consumerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:code ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:message " (TransferSuspensionMessageShape): An dspace:code property must point to an xsd:string value."@en ; - ] ; - -. \ No newline at end of file diff --git a/transfer/message/shape/transfer-termination-message-shape.ttl b/transfer/message/shape/transfer-termination-message-shape.ttl deleted file mode 100644 index 30d2778..0000000 --- a/transfer/message/shape/transfer-termination-message-shape.ttl +++ /dev/null @@ -1,67 +0,0 @@ -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix dct: . -@prefix dcat: . -@prefix odrl: . -@prefix cred: . -@prefix sec: . - -@prefix dspace: . -@prefix dspace_shapes: . - -@prefix sh: . - -dspace_shapes: - a owl:Ontology ; - sh:declare [ - sh:prefix "rdf" ; - sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; - ] ; - sh:declare [ - sh:prefix "dspace" ; - sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ; - ] ; -. - -dspace_shapes:TransferTerminationMessageShape - a sh:NodeShape ; - sh:targetClass dspace:TransferTerminationMessage ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:providerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferTerminationMessageShape): An dspace:providerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:consumerPid ; - sh:datatype xsd:string ; - sh:severity sh:Violation ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:message " (TransferTerminationMessageShape): An dspace:consumerPid property must point exactly one xsd:string field."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:code ; - sh:datatype xsd:string ; - sh:maxCount 1 ; - sh:minCount 0 ; - sh:severity sh:Violation ; - sh:message " (TransferTerminationMessageShape): An dspace:code property must point from an dspace:TransferTerminationMessage to exactly one xsd:string value."@en ; - ] ; - - sh:property [ - a sh:PropertyShape ; - sh:path dspace:reason ; - ] - -. \ No newline at end of file diff --git a/transfer/transfer.process.protocol.md b/transfer/transfer.process.protocol.md index 9fb4575..529224e 100644 --- a/transfer/transfer.process.protocol.md +++ b/transfer/transfer.process.protocol.md @@ -94,7 +94,7 @@ Further Dataspace specifications may define additional optional serialization fo | **Sent by** | [=Consumer=] | | **Resulting state** | `REQUESTED` | | **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | -| **Schema** | [TTL Shape](./message/shape/transfer-request-message-shape.ttl), [JSON Schema](./message/schema/transfer-request-message-schema.json) | +| **Schema** | [JSON Schema](./message/schema/transfer-request-message-schema.json) | | **Example** | [Message](./message/example/transfer-request-message.json) | | **Diagram(s)** | ![](./message/diagram/transfer-request-message.png "Transfer Request Message") | @@ -129,14 +129,14 @@ again, the [=Provider=] should respond with an appropriate [Transfer Start Messa ### Transfer Start Message -| | | -|---------------------|-----------------------------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Provider=] | -| **Resulting state** | `STARTED` | -| **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | -| **Schema** | [TTL Shape](./message/shape/transfer-start-message-shape.ttl), [JSON Schema](./message/schema/transfer-start-message-schema.json) | -| **Example** | [Message](./message/example/transfer-start-message.json) | -| **Diagram(s)** | ![](./message/diagram/transfer-start-message.png "Transfer Start Message") | +| | | +|---------------------|----------------------------------------------------------------------------| +| **Sent by** | [=Provider=] | +| **Resulting state** | `STARTED` | +| **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | +| **Schema** | [JSON Schema](./message/schema/transfer-start-message-schema.json) | +| **Example** | [Message](./message/example/transfer-start-message.json) | +| **Diagram(s)** | ![](./message/diagram/transfer-start-message.png "Transfer Start Message") | The Transfer Start Message is sent by the [=Provider=] to indicate the data transfer has been initiated. @@ -151,28 +151,28 @@ The Transfer Start Message is sent by the [=Provider=] to indicate the data tran ### Transfer Suspension Message -| | | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Consumer=], [=Provider=] | -| **Resulting state** | `SUSPENDED` | -| **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | -| **Schema** | [TTL Shape](./message/shape/transfer-suspension-message-shape.ttl), [JSON Schema](./message/schema/transfer-suspension-message-schema.json) | -| **Example** | [Message](./message/example/transfer-suspension-message.json) | -| **Diagram(s)** | ![](./message/diagram/transfer-suspension-message.png "Transfer Suspension Message") | +| | | +|---------------------|--------------------------------------------------------------------------------------| +| **Sent by** | [=Consumer=], [=Provider=] | +| **Resulting state** | `SUSPENDED` | +| **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | +| **Schema** | [JSON Schema](./message/schema/transfer-suspension-message-schema.json) | +| **Example** | [Message](./message/example/transfer-suspension-message.json) | +| **Diagram(s)** | ![](./message/diagram/transfer-suspension-message.png "Transfer Suspension Message") | The Transfer Suspension Message is sent by the [=Provider=] or [=Consumer=] when either of them needs to temporarily suspend the TP. ### Transfer Completion Message -| | | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Consumer=], [=Provider=] | -| **Resulting state** | `COMPLETED` | -| **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | -| **Schema** | [TTL Shape](./message/shape/transfer-completion-message-shape.ttl), [JSON Schema](./message/schema/transfer-completion-message-schema.json) | -| **Example** | [Message](./message/example/transfer-completion-message.json) | -| **Diagram(s)** | ![](./message/diagram/transfer-completion-message.png "Transfer Completion Message") | +| | | +|---------------------|--------------------------------------------------------------------------------------| +| **Sent by** | [=Consumer=], [=Provider=] | +| **Resulting state** | `COMPLETED` | +| **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | +| **Schema** | [JSON Schema](./message/schema/transfer-completion-message-schema.json) | +| **Example** | [Message](./message/example/transfer-completion-message.json) | +| **Diagram(s)** | ![](./message/diagram/transfer-completion-message.png "Transfer Completion Message") | The Transfer Completion Message is sent by the [=Provider=] or [=Consumer=] when a data transfer has completed. Note that some [=Connector=] implementations may optimize completion @@ -181,14 +181,14 @@ need to be sent. ### Transfer Termination Message -| | | -|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Consumer=], [=Provider=] | -| **Resulting state** | `TERMINATED` | -| **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | -| **Schema** | [TTL Shape](./message/shape/transfer-termination-message-shape.ttl), [JSON Schema](./message/schema/transfer-termination-message-schema.json) | -| **Example** | [Message](./message/example/transfer-termination-message.json) | -| **Diagram(s)** | ![](./message/diagram/transfer-termination-message.png "Transfer Termination Message") | +| | | +|---------------------|----------------------------------------------------------------------------------------| +| **Sent by** | [=Consumer=], [=Provider=] | +| **Resulting state** | `TERMINATED` | +| **Response** | [ACK](#ack-transfer-process) or [ERROR](#error-transfer-error) | +| **Schema** | [JSON Schema](./message/schema/transfer-termination-message-schema.json) | +| **Example** | [Message](./message/example/transfer-termination-message.json) | +| **Diagram(s)** | ![](./message/diagram/transfer-termination-message.png "Transfer Termination Message") | The Transfer Termination Message is sent by the [=Provider=] or [=Consumer=] at any point except a terminal state to indicate the TP should stop and be placed in a terminal state. If the termination was due to an error, the sender may @@ -201,24 +201,24 @@ provided in protocol-dependent forms, e.g., for an HTTPS binding in the request ### ACK - Transfer Process -| | | -|----------------|-----------------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Consumer=], [=Provider=] | -| **Schema** | [TTL Shape](./message/shape/transfer-process-shape.ttl), [JSON Schema](./message/schema/transfer-process-schema.json) | -| **Example** | [Process](./message/example/transfer-process.json) | -| **Diagram(s)** | ![](./message/diagram/transfer-process.png "Transfer Process") | +| | | +|----------------|----------------------------------------------------------------| +| **Sent by** | [=Consumer=], [=Provider=] | +| **Schema** | [JSON Schema](./message/schema/transfer-process-schema.json) | +| **Example** | [Process](./message/example/transfer-process.json) | +| **Diagram(s)** | ![](./message/diagram/transfer-process.png "Transfer Process") | The Transfer Process is an object returned by a [=Consumer=] or [=Provider=] indicating a successful state change happened. ### ERROR - Transfer Error -| | | -|----------------|-------------------------------------------------------------------------------------------------------------------| -| **Sent by** | [=Consumer=], [=Provider=] | -| **Schema** | [TTL Shape](./message/shape/transfer-error-shape.ttl), [JSON Schema](./message/schema/transfer-error-schema.json) | -| **Example** | [Process](./message/example/transfer-error.json) | -| **Diagram(s)** | ![](./message/diagram/transfer-error.png "Transfer Error") | +| | | +|----------------|------------------------------------------------------------| +| **Sent by** | [=Consumer=], [=Provider=] | +| **Schema** | [JSON Schema](./message/schema/transfer-error-schema.json) | +| **Example** | [Process](./message/example/transfer-error.json) | +| **Diagram(s)** | ![](./message/diagram/transfer-error.png "Transfer Error") | The Transfer Error is an object returned by a [=Consumer=] or [=Provider=] indicating an error has occurred. It does not cause a state transition.