diff --git a/bundleData/BundleData_instance.json b/bundleData/BundleData_instance.json deleted file mode 100644 index 5fe7c4f..0000000 --- a/bundleData/BundleData_instance.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "@context": { - "marketplaceResource": "https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/marketplaceResource/", - "gx": "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#", - "bundleData": "https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/bundleData/", - "sh": "http://www.w3.org/ns/shacl#", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "skos": "http://www.w3.org/2004/02/skos/core#" - }, - "@id": "did:web:registry.gaia-x.eu:BundleData:3YqjJQEzNemoMz6TC54w3PhleEkaHaVTIXEw", - "@type": "bundleData:BundleData", - "bundleData:requiredData": { - "@type": "bundleData:RequiredData", - "bundleData:domain": { - "@type": "marketplaceResource:Domain", - "marketplaceResource:domainType": "environment-model" - }, - "bundleData:requiredDataLink": { - "@type": "marketplaceResource:Link", - "marketplaceResource:link": { - "@value": "did:web:registry.gaia-x.eu:environment-model:PlFjHxuQoH0v7iaVC0QqdxmtQyqY-LQX6D-p", - "@type": "xsd:anyURI" - } - } - }, - "bundleData:relatedData": { - "@type": "bundleData:RelatedData", - "bundleData:domain": { - "@type": "marketplaceResource:Domain", - "marketplaceResource:domainType": "surface-model" - }, - "bundleData:relatedDataLink": { - "@type": "marketplaceResource:Link", - "marketplaceResource:link": { - "@value": "did:web:registry.gaia-x.eu:surface-model:PlFjHxuQoH0v7iaVC0QqdxmtQyqY-12345-p", - "@type": "xsd:anyURI" - } - } - } - } \ No newline at end of file diff --git a/bundleData/VARIABLES.md b/bundleData/VARIABLES.md deleted file mode 100644 index eaa1b7c..0000000 --- a/bundleData/VARIABLES.md +++ /dev/null @@ -1,19 +0,0 @@ -# Variables of SHACL Files in this folder - -## Prefixes - -- bundleData: -- marketplaceResource: - -## List of SHACL Properties - -| Shape | Property prefix | Property | MinCount | MaxCount | Description | Datatype/NodeKind | Filename | -| --- | --- | --- | --- | --- | --- | --- | --- | -| BundleDataResourceShape | bundleData | requiredData | 1 | | | | bundleDataResource_shacl.ttl | -| BundleDataResourceShape | bundleData | relatedData | | | | | bundleDataResource_shacl.ttl | -| RequiredDataShape | bundleData | domain | 1 | 1 | Reference to required assets | | bundleDataResource_shacl.ttl | -| RequiredDataShape | bundleData | requiredDataLink | 1 | 1 | Reference to required data | | bundleDataResource_shacl.ttl | -| RelatedDataShape | bundleData | domain | 1 | 1 | Reference to related assets | | bundleDataResource_shacl.ttl | -| RelatedDataShape | bundleData | relatedDataLink | 1 | 1 | Reference to related data | | bundleDataResource_shacl.ttl | -| DomainShape | marketplaceResource | domainType | 1 | 1 | Choose domain type. | | bundleDataResource_shacl.ttl | -| LinkShape | marketplaceResource | link | 1 | 1 | Enter a link or DID. | | bundleDataResource_shacl.ttl | diff --git a/bundleData/bundleDataResource_ontology.ttl b/bundleData/bundleDataResource_ontology.ttl deleted file mode 100644 index 0d8dd97..0000000 --- a/bundleData/bundleDataResource_ontology.ttl +++ /dev/null @@ -1,33 +0,0 @@ -@prefix dcterms: . -@prefix gax-core: . -@prefix bundleData: . -@prefix marketplaceResource: . -@prefix owl: . -@prefix rdfs: . -@prefix xsd: . -@prefix gx: . - -bundleData: a owl:Ontology ; - rdfs:label "ontology definition for MarketplaceResource"@en ; - dcterms:contributor "Johannes Demer (ASCS)" ; - owl:versionInfo "0.1" . - -bundleData:BundleData a owl:Class ; - rdfs:label "Class definition for BundleData" ; - rdfs:comment "BundleData attributes for all assets"@en . - -bundleData:RequiredData a owl:Class ; - rdfs:label "RequiredData definition for MarketplaceResource" ; - rdfs:comment "RequiredData attributes for all assets"@en . - -bundleData:RelatedData a owl:Class ; - rdfs:label "RelatedData definition for MarketplaceResource" ; - rdfs:comment "RelatedData attributes for all assets"@en . - -marketplaceResource:Domain a owl:Class ; - rdfs:label "Domain definition for MarketplaceResource" ; - rdfs:comment "Domain attributes for all assets"@en . - -marketplaceResource:Link a owl:Class ; - rdfs:label "Link definition for MarketplaceResource" ; - rdfs:comment "Link attributes for all assets"@en . \ No newline at end of file diff --git a/bundleData/bundleDataResource_shacl.ttl b/bundleData/bundleDataResource_shacl.ttl deleted file mode 100644 index f708e99..0000000 --- a/bundleData/bundleDataResource_shacl.ttl +++ /dev/null @@ -1,79 +0,0 @@ -@prefix bundleData: . -@prefix marketplaceResource: . -@prefix gx: . -@prefix sh: . -@prefix skos: . -@prefix xsd: . - -bundleData:BundleDataResourceShape a sh:NodeShape ; - sh:property [ sh:minCount 1 ; - sh:node bundleData:RequiredDataShape ; - sh:order 1 ; - sh:path bundleData:requiredData ], - [ sh:node bundleData:RelatedDataShape ; - sh:order 2 ; - sh:path bundleData:relatedData ] ; - sh:targetClass bundleData:BundleData . - -bundleData:RequiredDataShape a sh:NodeShape ; - sh:property [ sh:node marketplaceResource:DomainShape ; - sh:description "Reference to required assets"@en ; - skos:example "for scenario, link to required hd map"@en ; - sh:name "domain"@en ; - sh:order 1 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path bundleData:domain ], - [ skos:example "link to required data"@en ; - sh:description "Reference to required data"@en ; - sh:message "Validation of required data failed!"@en ; - sh:name "link"@en ; - sh:node marketplaceResource:LinkShape ; - sh:order 2 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path bundleData:requiredDataLink ] ; - sh:targetClass bundleData:RequiredData . - - bundleData:RelatedDataShape a sh:NodeShape ; - sh:property [ sh:node marketplaceResource:DomainShape ; - sh:description "Reference to related assets"@en ; - skos:example "at hd map, link to surface map"@en ; - sh:name "domain"@en ; - sh:order 1 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path bundleData:domain ], - [ skos:example "link to related data"@en ; - sh:description "Reference to related data"@en ; - sh:message "Validation of related data failed!"@en ; - sh:name "link"@en ; - sh:node marketplaceResource:LinkShape ; - sh:order 2 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path bundleData:relatedDataLink ] ; - sh:targetClass bundleData:RelatedData . - - marketplaceResource:DomainShape a sh:NodeShape ; - sh:property [ sh:datatype xsd:string ; - sh:in ("hdmap" "environment-model" "ositrace" "scenario" "surface-model") ; - sh:message "Validation of domain type failed!"@en ; - sh:description "Choose domain type."@en ; - sh:name "domain"@en ; - sh:order 0 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path marketplaceResource:domainType ]; - sh:targetClass marketplaceResource:Domain . - - marketplaceResource:LinkShape a sh:NodeShape ; - sh:property [ sh:datatype xsd:anyURI ; - sh:message "Validation of link failed!"@en ; - sh:description "Enter a link or DID."@en ; - sh:name "link"@en ; - sh:order 0 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path marketplaceResource:link ] ; - sh:targetClass marketplaceResource:Link . diff --git a/general/general_instance.json b/general/general_instance.json index b9019f2..f2cbfee 100644 --- a/general/general_instance.json +++ b/general/general_instance.json @@ -25,10 +25,6 @@ "@value": "5.8", "@type": "xsd:float" }, - "general:contractId": { - "@value": "ntract_zcdkr7kqd47y0w5b4tg91w1etw", - "@type": "xsd:string" - }, "general:recordingTime": { "@value": "2024-04-01T00:00:00", "@type": "xsd:dateTime" diff --git a/general/general_shacl.ttl b/general/general_shacl.ttl index ba218e4..55927f9 100644 --- a/general/general_shacl.ttl +++ b/general/general_shacl.ttl @@ -16,7 +16,7 @@ general:GeneralShape a sh:NodeShape ; sh:minCount 1 ; sh:node general:DataShape ; sh:name "data object" ; - sh:description "data object with property for size, id and record time" ; + sh:description "data object with property for size and record time" ; sh:order 2 ; sh:path general:data ], [ sh:maxCount 1 ; @@ -55,23 +55,13 @@ general:DataShape a sh:NodeShape ; sh:name "size" ; sh:order 1 ; sh:path general:size ], - # contractId ? - [ sh:datatype xsd:string ; - sh:description "Contract information in regards to the data exchange component." ; - skos:example "contract_zcdkr7kqd47y0w5b4tg91w1etw" ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:name "contractId" ; - sh:order 2 ; - sh:path general:contractId ], - # [ skos:example "2022-04-01 00:00:00" ; sh:datatype xsd:dateTime ; sh:description "Time of data acquisition used to generate the asset, if partial measurement: oldest date"@en ; sh:maxCount 1 ; sh:message "Validation of recordingTime failed!"@en ; sh:name "recordingTime"@en ; - sh:order 3 ; + sh:order 2 ; sh:path general:recordingTime ] ; sh:targetClass general:Data . diff --git a/marketplace-info/marketplace-info_instance.json b/marketplace-info/marketplace-info_instance.json new file mode 100644 index 0000000..788225b --- /dev/null +++ b/marketplace-info/marketplace-info_instance.json @@ -0,0 +1,64 @@ +{ + "@context": { + "xsd": "http://www.w3.org/2001/XMLSchema#", + "gx": "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#", + "skos": "http://www.w3.org/2004/02/skos/core#", + "sh": "http://www.w3.org/ns/shacl#", + "marketplace-info": "https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/marketplace-info/" + }, + "@id": "did:web:registry.gaia-x.eu:MarketplaceInfo:Tk2iJtRvvJoRk-lbHyT1umNRK3IkD19VegD4", + "@type": "marketplace-info:MarketplaceInfo", + "marketplace-info:domain": { + "@type": "marketplace-info:Domain", + "marketplace-info:domain": "hdmap" + }, + "marketplace-info:contentData": { + "@type": "marketplace-info:ContentData", + "marketplace-info:dataType": "Metadata", + "marketplace-info:contentData": { + "@type": "marketplace-info:Link", + "marketplace-info:link": { + "@value": "https://example.com/model.png", + "@type": "xsd:anyURI" + } + } + }, + "marketplace-info:data": { + "@type": "marketplace-info:Data", + "marketplace-info:contractId": { + "@value": "contract_zcdkr7kqd47y0w5b4tg91w1etw", + "@type": "xsd:string" + } + }, + "marketplace-info:bundleData": { + "@type": "marketplace-info:BundleData", + "marketplace-info:requiredData": { + "@type": "marketplace-info:RequiredData", + "marketplace-info:domain": { + "@type": "marketplace-info:Domain", + "marketplace-info:domain": "environment-model" + }, + "marketplace-info:requiredDataLink": { + "@type": "marketplace-info:Link", + "marketplace-info:link": { + "@value": "did:web:registry.gaia-x.eu:environment-model:PlFjHxuQoH0v7iaVC0QqdxmtQyqY-LQX6D-p", + "@type": "xsd:anyURI" + } + } + }, + "marketplace-info:relatedData": { + "@type": "marketplace-info:RelatedData", + "marketplace-info:domain": { + "@type": "marketplace-info:Domain", + "marketplace-info:domain": "surface-model" + }, + "marketplace-info:relatedDataLink": { + "@type": "marketplace-info:Link", + "marketplace-info:link": { + "@value": "did:web:registry.gaia-x.eu:surface-model:PlFjHxuQoH0v7iaVC0QqdxmtQyqY-12345-p", + "@type": "xsd:anyURI" + } + } + } + } + } \ No newline at end of file diff --git a/marketplace-info/marketplace-info_ontology.ttl b/marketplace-info/marketplace-info_ontology.ttl new file mode 100644 index 0000000..61d6d50 --- /dev/null +++ b/marketplace-info/marketplace-info_ontology.ttl @@ -0,0 +1,41 @@ +@prefix dcterms: . +@prefix gax-core: . +@prefix marketplace-info: . +@prefix owl: . +@prefix rdfs: . +@prefix xsd: . +@prefix gx: . + +marketplace-info: a owl:Ontology ; + rdfs:label "ontology definition for Marketplace-Info"@en ; + dcterms:contributor "Johannes Demer (ASCS)" ; + owl:versionInfo "0.1" . + +marketplace-info:Marketplace-Info a owl:Class ; + rdfs:label "Class definition for Marketplace-Info" ; + rdfs:comment "Marketplace-Info attributes for all assets"@en ; + rdfs:subClassOf gx:DataResource . + +marketplace-info:Data a owl:Class ; + rdfs:label "Data definition for Marketplace-Info" ; + rdfs:comment "Data attributes for all assets"@en . + +marketplace-info:ContentData a owl:Class ; + rdfs:label "ContentData definition for Marketplace-Info" ; + rdfs:comment "ContentData attributes for all assets"@en . + +bundleData:RequiredData a owl:Class ; + rdfs:label "RequiredData definition for Marketplace-Info" ; + rdfs:comment "RequiredData attributes for all assets"@en . + +bundleData:RelatedData a owl:Class ; + rdfs:label "RelatedData definition for Marketplace-Info" ; + rdfs:comment "RelatedData attributes for all assets"@en . + +marketplace-info:Domain a owl:Class ; + rdfs:label "Domain definition for Marketplace-Info" ; + rdfs:comment "Domain attributes for all assets"@en . + +marketplace-info:Link a owl:Class ; + rdfs:label "Link definition for Marketplace-Info" ; + rdfs:comment "Link attributes for all assets"@en . \ No newline at end of file diff --git a/marketplace-info/marketplace-info_shacl.ttl b/marketplace-info/marketplace-info_shacl.ttl new file mode 100644 index 0000000..ea5a3d2 --- /dev/null +++ b/marketplace-info/marketplace-info_shacl.ttl @@ -0,0 +1,135 @@ +@prefix marketplace-info: . +@prefix gx: . +@prefix sh: . +@prefix skos: . +@prefix xsd: . + +marketplace-info:MarketplaceInfoShape a sh:NodeShape ; + sh:property [ sh:maxCount 1 ; + sh:minCount 1 ; + sh:node marketplace-info:DomainShape ; + sh:order 0 ; + sh:path marketplace-info:domain ], + [ sh:minCount 1 ; + sh:node marketplace-info:ContentDataShape ; + sh:order 1 ; + sh:path marketplace-info:contentData ], + [ sh:maxCount 1 ; + sh:minCount 1 ; + sh:node marketplace-info:DataShape ; + sh:name "data object" ; + sh:description "data object with property for, id" ; + sh:order 2 ; + sh:path marketplace-info:data ], + [ sh:node marketplace-info:BundleDataShape ; + sh:order 3 ; + sh:path marketplace-info:bundleData ] ; + sh:targetClass marketplace-info:MarketplaceInfo . + +marketplace-info:DomainShape a sh:NodeShape ; + sh:property [ sh:datatype xsd:string ; + sh:in ("hdmap" "environment-model" "ositrace" "scenario" "surface-model" "service" "other" ) ; + sh:message "Validation of domain type failed!"@en ; + sh:description "Choose domain type."@en ; + sh:name "domain"@en ; + sh:order 0 ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:path marketplace-info:domain ]; + sh:targetClass marketplace-info:Domain . + +marketplace-info:ContentDataShape a sh:NodeShape ; + sh:property [ sh:datatype xsd:string ; + sh:in ("Documentation" "Metadata" "Validation" "Visualization") ; + sh:message "Validation of type failed!"@en ; + sh:description "Choose type of link."@en ; + sh:name "type"@en ; + sh:order 1 ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:path marketplace-info:dataType ], + [ skos:example "link to content data, screenshot, video, routing, 3d preview"@en ; + sh:description "Reference to content data"@en ; + sh:message "Validation of content failed!"@en ; + sh:name "link"@en ; + sh:node marketplace-info:LinkShape ; + sh:order 2 ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:path marketplace-info:contentData ] ; + sh:targetClass marketplace-info:ContentData . + + + +marketplace-info:DataShape a sh:NodeShape ; + sh:property [ sh:datatype xsd:string ; + sh:description "Contract information in regards to the data exchange component." ; + skos:example "contract_zcdkr7kqd47y0w5b4tg91w1etw" ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:name "contractId" ; + sh:order 1 ; + sh:path marketplace-info:contractId ]; + sh:targetClass marketplace-info:Data . + +marketplace-info:LinkShape a sh:NodeShape ; + sh:property [ sh:datatype xsd:anyURI ; + sh:message "Validation of link failed!"@en ; + sh:description "Enter a link or DID."@en ; + sh:name "link"@en ; + sh:order 0 ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:path marketplace-info:link ] ; + sh:targetClass marketplace-info:Link . + + +marketplace-info:BundleDataShape a sh:NodeShape ; + sh:property [ sh:minCount 1 ; + sh:node marketplace-info:RequiredDataShape ; + sh:order 1 ; + sh:path marketplace-info:requiredData ], + [ sh:node marketplace-info:RelatedDataShape ; + sh:order 2 ; + sh:path marketplace-info:relatedData ] ; + sh:targetClass marketplace-info:BundleData . + +marketplace-info:RequiredDataShape a sh:NodeShape ; + sh:property [ sh:node marketplace-info:DomainShape ; + sh:description "Reference to required assets"@en ; + skos:example "for scenario, link to required hd map"@en ; + sh:name "domain"@en ; + sh:order 1 ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:path marketplace-info:domain ], + [ skos:example "link to required data"@en ; + sh:description "Reference to required data"@en ; + sh:message "Validation of required data failed!"@en ; + sh:name "link"@en ; + sh:node marketplace-info:LinkShape ; + sh:order 2 ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:path marketplace-info:requiredDataLink ] ; + sh:targetClass marketplace-info:RequiredData . + +marketplace-info:RelatedDataShape a sh:NodeShape ; + sh:property [ sh:node marketplace-info:DomainShape ; + sh:description "Reference to related assets"@en ; + skos:example "at hd map, link to surface map"@en ; + sh:name "domain"@en ; + sh:order 1 ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:path marketplace-info:domain ], + [ skos:example "link to related data"@en ; + sh:description "Reference to related data"@en ; + sh:message "Validation of related data failed!"@en ; + sh:name "link"@en ; + sh:node marketplace-info:LinkShape ; + sh:order 2 ; + sh:maxCount 1 ; + sh:minCount 1 ; + sh:path marketplace-info:relatedDataLink ] ; + sh:targetClass marketplace-info:RelatedData . \ No newline at end of file diff --git a/marketplaceResource/MarketplaceResource_instance.json b/marketplaceResource/MarketplaceResource_instance.json deleted file mode 100644 index 9a5f4d0..0000000 --- a/marketplaceResource/MarketplaceResource_instance.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "@context": { - "marketplaceResource": "https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/marketplaceResource/", - "gx": "https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#", - "bundleData": "https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/bundleData/", - "sh": "http://www.w3.org/ns/shacl#", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "skos": "http://www.w3.org/2004/02/skos/core#" - }, - "@id": "did:web:registry.gaia-x.eu:MarketplaceResource:0zL6cOdvGmomI42hn2VEKXJE6C5hP8Ef3BP8", - "@type": "marketplaceResource:MarketplaceResource", - "marketplaceResource:contentData": { - "@type": "marketplaceResource:ContentData", - "marketplaceResource:dataType": "Image", - "marketplaceResource:contentData": { - "@type": "marketplaceResource:Link", - "marketplaceResource:link": { - "@value": "https://example.com/model.png", - "@type": "xsd:anyURI" - } - } - }, - "marketplaceResource:bundleData": { - "@type": "bundleData:BundleData", - "bundleData:requiredData": { - "@type": "bundleData:RequiredData", - "bundleData:domain": { - "@type": "marketplaceResource:Domain", - "marketplaceResource:domainType": "environment-model" - }, - "bundleData:requiredDataLink": { - "@type": "marketplaceResource:Link", - "marketplaceResource:link": { - "@value": "did:web:registry.gaia-x.eu:environment-model:PlFjHxuQoH0v7iaVC0QqdxmtQyqY-LQX6D-p", - "@type": "xsd:anyURI" - } - } - }, - "bundleData:relatedData": { - "@type": "bundleData:RelatedData", - "bundleData:domain": { - "@type": "marketplaceResource:Domain", - "marketplaceResource:domainType": "surface-model" - }, - "bundleData:relatedDataLink": { - "@type": "marketplaceResource:Link", - "marketplaceResource:link": { - "@value": "did:web:registry.gaia-x.eu:surface-model:PlFjHxuQoH0v7iaVC0QqdxmtQyqY-12345-p", - "@type": "xsd:anyURI" - } - } - } - } -} \ No newline at end of file diff --git a/marketplaceResource/VARIABLES.md b/marketplaceResource/VARIABLES.md deleted file mode 100644 index 3b13c55..0000000 --- a/marketplaceResource/VARIABLES.md +++ /dev/null @@ -1,23 +0,0 @@ -# Variables of SHACL Files in this folder - -## Prefixes - -- bundleData: -- marketplaceResource: - -## List of SHACL Properties - -| Shape | Property prefix | Property | MinCount | MaxCount | Description | Datatype/NodeKind | Filename | -| --- | --- | --- | --- | --- | --- | --- | --- | -| MarketplaceResourceShape | marketplaceResource | contentData | 1 | | | | marketplaceResource_shacl.ttl | -| MarketplaceResourceShape | marketplaceResource | bundleData | | | | | marketplaceResource_shacl.ttl | -| ContentDataShape | marketplaceResource | dataType | 1 | 1 | Choose type of link. | | marketplaceResource_shacl.ttl | -| ContentDataShape | marketplaceResource | contentData | 1 | 1 | Reference to content data | | marketplaceResource_shacl.ttl | -| DomainShape | marketplaceResource | domainType | 1 | 1 | Choose domain type. | | marketplaceResource_shacl.ttl | -| LinkShape | marketplaceResource | link | 1 | 1 | Enter a link or DID. | | marketplaceResource_shacl.ttl | -| BundleDataShape | bundleData | requiredData | 1 | | | | marketplaceResource_shacl.ttl | -| BundleDataShape | bundleData | relatedData | | | | | marketplaceResource_shacl.ttl | -| RequiredDataShape | bundleData | domain | 1 | 1 | Reference to required assets | | marketplaceResource_shacl.ttl | -| RequiredDataShape | bundleData | requiredDataLink | 1 | 1 | Reference to required data | | marketplaceResource_shacl.ttl | -| RelatedDataShape | bundleData | domain | 1 | 1 | Reference to related assets | | marketplaceResource_shacl.ttl | -| RelatedDataShape | bundleData | relatedDataLink | 1 | 1 | Reference to related data | | marketplaceResource_shacl.ttl | diff --git a/marketplaceResource/marketplaceResource_ontology.ttl b/marketplaceResource/marketplaceResource_ontology.ttl deleted file mode 100644 index 8d5ab10..0000000 --- a/marketplaceResource/marketplaceResource_ontology.ttl +++ /dev/null @@ -1,38 +0,0 @@ -@prefix dcterms: . -@prefix gax-core: . -@prefix marketplaceResource: . -@prefix bundleData: . -@prefix owl: . -@prefix rdfs: . -@prefix xsd: . -@prefix gx: . - -marketplaceResource: a owl:Ontology ; - rdfs:label "ontology definition for MarketplaceResource"@en ; - dcterms:contributor "Johannes Demer (ASCS)" ; - owl:versionInfo "0.1" . - -marketplaceResource:MarketplaceResource a owl:Class ; - rdfs:label "Class definition for MarketplaceResource" ; - rdfs:comment "MarketplaceResource attributes for all assets"@en ; - rdfs:subClassOf gx:DataResource . - -marketplaceResource:ContentData a owl:Class ; - rdfs:label "ContentData definition for MarketplaceResource" ; - rdfs:comment "ContentData attributes for all assets"@en . - -bundleData:RequiredData a owl:Class ; - rdfs:label "RequiredData definition for MarketplaceResource" ; - rdfs:comment "RequiredData attributes for all assets"@en . - -bundleData:RelatedData a owl:Class ; - rdfs:label "RelatedData definition for MarketplaceResource" ; - rdfs:comment "RelatedData attributes for all assets"@en . - -marketplaceResource:Domain a owl:Class ; - rdfs:label "Domain definition for MarketplaceResource" ; - rdfs:comment "Domain attributes for all assets"@en . - -marketplaceResource:Link a owl:Class ; - rdfs:label "Link definition for MarketplaceResource" ; - rdfs:comment "Link attributes for all assets"@en . \ No newline at end of file diff --git a/marketplaceResource/marketplaceResource_shacl.ttl b/marketplaceResource/marketplaceResource_shacl.ttl deleted file mode 100644 index 76c24b8..0000000 --- a/marketplaceResource/marketplaceResource_shacl.ttl +++ /dev/null @@ -1,113 +0,0 @@ -@prefix marketplaceResource: . -@prefix bundleData: . -@prefix gx: . -@prefix sh: . -@prefix skos: . -@prefix xsd: . - -marketplaceResource:MarketplaceResourceShape a sh:NodeShape ; - sh:property [ sh:minCount 1 ; - sh:node marketplaceResource:ContentDataShape ; - sh:order 1 ; - sh:path marketplaceResource:contentData ], - [ sh:node bundleData:BundleDataShape ; - sh:order 2 ; - sh:path marketplaceResource:bundleData ] ; - sh:targetClass marketplaceResource:MarketplaceResource . - - -marketplaceResource:ContentDataShape a sh:NodeShape ; - sh:property [ sh:datatype xsd:string ; - sh:in ("Documentation" "Metadata" "Report" "Image" "Video" "3DPreview" "Asset") ; - sh:message "Validation of type failed!"@en ; - sh:description "Choose type of link."@en ; - sh:name "type"@en ; - sh:order 1 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path marketplaceResource:dataType ], - [ skos:example "link to content data, screenshot, video, routing, 3d preview"@en ; - sh:description "Reference to content data"@en ; - sh:message "Validation of content failed!"@en ; - sh:name "link"@en ; - sh:node marketplaceResource:LinkShape ; - sh:order 2 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path marketplaceResource:contentData ] ; - sh:targetClass marketplaceResource:ContentData . - - marketplaceResource:DomainShape a sh:NodeShape ; - sh:property [ sh:datatype xsd:string ; - sh:in ("hdmap" "environment-model" "ositrace" "scenario" "surface-model") ; - sh:message "Validation of domain type failed!"@en ; - sh:description "Choose domain type."@en ; - sh:name "domain"@en ; - sh:order 0 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path marketplaceResource:domainType ]; - sh:targetClass marketplaceResource:Domain . - - marketplaceResource:LinkShape a sh:NodeShape ; - sh:property [ sh:datatype xsd:anyURI ; - sh:message "Validation of link failed!"@en ; - sh:description "Enter a link or DID."@en ; - sh:name "link"@en ; - sh:order 0 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path marketplaceResource:link ] ; - sh:targetClass marketplaceResource:Link . - -### bundleData - -bundleData:BundleDataShape a sh:NodeShape ; - sh:property [ sh:minCount 1 ; - sh:node bundleData:RequiredDataShape ; - sh:order 1 ; - sh:path bundleData:requiredData ], - [ sh:node bundleData:RelatedDataShape ; - sh:order 2 ; - sh:path bundleData:relatedData ] ; - sh:targetClass bundleData:BundleData . - -bundleData:RequiredDataShape a sh:NodeShape ; - sh:property [ sh:node marketplaceResource:DomainShape ; - sh:description "Reference to required assets"@en ; - skos:example "for scenario, link to required hd map"@en ; - sh:name "domain"@en ; - sh:order 1 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path bundleData:domain ], - [ skos:example "link to required data"@en ; - sh:description "Reference to required data"@en ; - sh:message "Validation of required data failed!"@en ; - sh:name "link"@en ; - sh:node marketplaceResource:LinkShape ; - sh:order 2 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path bundleData:requiredDataLink ] ; - sh:targetClass bundleData:RequiredData . - - bundleData:RelatedDataShape a sh:NodeShape ; - sh:property [ sh:node marketplaceResource:DomainShape ; - sh:description "Reference to related assets"@en ; - skos:example "at hd map, link to surface map"@en ; - sh:name "domain"@en ; - sh:order 1 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path bundleData:domain ], - [ skos:example "link to related data"@en ; - sh:description "Reference to related data"@en ; - sh:message "Validation of related data failed!"@en ; - sh:name "link"@en ; - sh:node marketplaceResource:LinkShape ; - sh:order 2 ; - sh:maxCount 1 ; - sh:minCount 1 ; - sh:path bundleData:relatedDataLink ] ; - sh:targetClass bundleData:RelatedData . \ No newline at end of file