-
Notifications
You must be signed in to change notification settings - Fork 15
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
Ability to annotate property shapes so that they are displayed as datatype properties in the diagram #137
Comments
For the moment use a SHACL-Play specific annotation: eli-ep:P19
sh:path eli:is_derivative_of;
sh:name "is derivative of"@en;
sh:description "This work is derived from the other work. Example: a motion derived from an oral question."@en;
sh:nodeKind sh:IRI;
sh:class eli:Work;
# extra annotation to control behavior in the graph
shacl-play:diagramViewer shacl-play:DiagramDatatypeViewer .
. |
Rather implement it using sh:group and property groups : eli-ep:P19
sh:path eli:is_derivative_of;
sh:name "is derivative of"@en;
sh:description "This work is derived from the other work. Example: a motion derived from an oral question."@en;
sh:nodeKind sh:IRI;
sh:class eli:Work;
# extra annotation to control section in the graph
sh:group eli-ep:Group1
.
eli-ep:Group1 a sh:PropertyGroup
rdfs:label "my group"@en ;
.
`` |
|
Need to document it on the page |
Hi, I tried to fiddle with it, but I couldn't make it work. Would it be possible to give me an example e.g. on this?
thanks |
Here is a working example: @prefix : <http://ex.com> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
:test a sh:NodeShape ;
sh:targetClass _:Ticket;
sh:property [
sh:path :hasPriority;
sh:class skos:Concept;
# put this property in a section inside the box
sh:group :MyGroup ;
];
sh:property [
sh:path :hasStatus;
sh:class skos:Concept
];
sh:closed false .
# declare the section with its label
:MyGroup a sh:PropertyGroup ;
rdfs:label "My Group"@en . |
No it is not. The expected output is:
[image: image.png]
Le lun. 2 sept. 2024 à 10:35, cecemel ***@***.***> a écrit :
… thanks for taking the time to do so!! Is this the expected output. (If so,
maybe I didn't understand the scope of this change)
image.png (view on web)
<https://github.com/user-attachments/assets/75c60938-ea8a-44a0-8df6-bc65ff9de80c>
—
Reply to this email directly, view it on GitHub
<#137 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAU2H4JZEBKCFJS3FF5F2HLZUQPNNAVCNFSM6AAAAABF5KQQIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUGE2DMNBVHE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
*Thomas Francart* -* SPARN**A*
linked *data* | domain *ontologies* | *knowlegde* graphs
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel : +33 (0)6.71.11.25.97
|
I think there was an issue uploading the image in your reply. |
Yes, correct ! |
Well; that's an issue I think. Since using shacl-play-app-0.8.0-onejar.jar I get the wrong diagram, vs when I use the version online it works.
|
This is not released in a downloadable release. This is only deployed in the online version. |
Original proposal at #136
Which annotation to use ? Add something in http://data.sparna.fr/ontologies/volipi/index-en.html ?
The text was updated successfully, but these errors were encountered: