Skip to content

Commit

Permalink
Add participant id to catalog (#226)
Browse files Browse the repository at this point in the history
* Add participant id to catalog

* Replace with links

* add dspace:participantId to the schemes and diagrams

---------

Co-authored-by: Sebastian Bader <[email protected]>
  • Loading branch information
jimmarino and sebbader-sap authored Feb 16, 2024
1 parent 741f1ac commit 8410162
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions catalog/catalog.protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ The following table lists well-know endpoint types:

Note that the property `dcat:servesDataset` should be omitted from the `DataService` since [Datasets](../model/terminology.md#dataset) are included as top-level entries. Clients are not required to process the contents of `dcat:servesDataset`.

#### 1.1.4 Participant Id

The identifier of the participant providing the [Catalog](../model/terminology.md#catalog) is specified using the `dspace:participantId` attribute on that [DCAT Catalog](https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog).

### 1.2 DCAT and ODRL Profiles

The [Catalog](../model/terminology.md#catalog) is a [DCAT Catalog](https://www.w3.org/TR/vocab-dcat-3/#Class:Catalog) with the following restrictions:
Expand Down
Binary file modified catalog/message/diagram/catalog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions catalog/message/diagram/catalog.puml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class dcat:Catalog {
dct:issued : String
dct:modified : String
dct:title : String
dspace:participantId : String
dct:description : Array<MultilanguageText>
...
}
Expand Down
4 changes: 2 additions & 2 deletions catalog/message/example/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"@type": "dcat:Catalog",
"dct:title": "Data Provider A Catalog",
"dct:description": [
{
{
"@value": "A catalog of data items",
"@language": "en"
}
],
"dct:publisher": "urn:example:DataProviderA",
"dspace:participantId": "urn:example:DataProviderA",
"dcat:keyword": [
"traffic",
"government"
Expand Down
3 changes: 3 additions & 0 deletions catalog/message/schema/catalog-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
},
"minItems": 1
},
"dspace:participantId": {
"type": "string"
},
"foaf:homepage": {
"type": "string"
}
Expand Down
8 changes: 8 additions & 0 deletions catalog/message/shape/dcat-shapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ dspace_shapes:CatalogShape
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (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 "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (CatalogShape): A dspace:participantId property must point to an IRI."@en ;
] ;

sh:property [
a sh:PropertyShape ;
sh:path odrl:hasPolicy ;
Expand Down
3 changes: 3 additions & 0 deletions common/schema/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"dspace:dataset": { "@type": "@id" },
"dspace:transportType": { "@type": "@id" },
"dspace:state": { "@type": "@id" },
"dspace:providerId": { "@type": "@id" },
"dspace:consumerId": { "@type": "@id" },
"dspace:participantId": { "@type": "@id" },
"dspace:reason": { "@container": "@set" },
"dspace:catalog": { "@container": "@set" },
"dspace:filter": { "@container": "@set" },
Expand Down

0 comments on commit 8410162

Please sign in to comment.