Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dataResourceExtension #92

Closed
wants to merge 11 commits into from
Closed

add dataResourceExtension #92

wants to merge 11 commits into from

Conversation

jtdemer
Copy link
Collaborator

@jtdemer jtdemer commented Aug 23, 2024

Description

Currently, the general shape contains some properties that are specific to the marketplace/data ecosystem (contractId, relatedData, etc.) and not domain-specific for simulation data.

The solution to this problem is to move all ecosystem relevant properties to dataResourceExtension.

I have defined the dataResourceExtension as a subclass of the dataresource and then general extended it as a subclass of dataresourceextension. Due to the current convention here in the repo I defined the both general and dataResourceExtension as subclass of gx:DataResource

It is structured as follows:
Dataresourceextension contains now LinksShape and BundleDataShape

General contains now DescriptionShape, DataShape and Range2DShape

From the DataShape I delete the contractID because it is related to polices and needs to be defined not in a shacl.

I also adjusted the LinkShape, urls are now defined in the UrlShape and links to related data at the LinkShape.

Changes should fix this Issue:
#88

Type of change

I would expect that we need to change the ontology structure once at Federated Catalogue.

How Has This Been Tested?

  • Using the SD-Creation-Wizard to generate the instance.json

Checklist

  • My code follows the modelling guidelines of this project
  • I have performed a self-review of my own changes

change subClassOf back to gx from dataResourceExtension

Signed-off-by: Johannes Demer <[email protected]>
…nstance.json

rename file

Signed-off-by: Johannes Demer <[email protected]>
@@ -14,7 +14,7 @@ general: a owl:Ontology ;
general:General a owl:Class ;
rdfs:label "Class definition for General" ;
rdfs:comment "General attributes for all assets"@en ;
rdfs:subClassOf gx:DataResource .
rdfs:subClassOf gx:DataResourceExtension .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dataResourceExtension:DataResourceExtension

sh:description "Reference to media data"@en ;
sh:message "Validation of media failed!"@en ;
sh:name "media"@en ;
sh:node dataResourceExtension:UrlShape ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warum zeigt die LinksShape auf UrlShape und nicht auf LinkShape... das wäre doch wesentlich logischer oder nicht?
Warum trennen wir überhaupt zwischen Link und Url?

sh:name "data"@en ;
sh:node dataResourceExtension:UrlShape ;
sh:order 1 ;
sh:path dataResourceExtension:data ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data muss nicht nochmal aufgeführt werden. Das passiert in Gaia-X in dem ServiceAccessPoint, siehe https://github.com/GAIA-X4PLC-AAD/gaia-x-compliant-claims-example/blob/main/src/ServiceAccessPoint-instance.json (statt EDC URL kann ich hier auch jegliche andere Adresse, unter der man das Asset findet angegeben werden)

jtdemer and others added 2 commits October 19, 2024 12:04
@jtdemer jtdemer closed this Oct 19, 2024
@jtdemer jtdemer deleted the dataResourceExtension branch October 19, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants