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

Documentation : support targetSubjectsOf and targetObjectsOf target definitions #100

Closed
tfrancart opened this issue Jul 11, 2023 · 7 comments

Comments

@tfrancart
Copy link
Contributor

Simply print them in the section header

@tfrancart tfrancart changed the title Documentation : support targetSubjectOf and targetObjectOf target definitions Documentation : support targetSubjectsOf and targetObjectsOf target definitions Aug 9, 2024
@tfrancart
Copy link
Contributor Author

Faire une liste pour toute les afficher s'il y en a plusieurs

@larisa1995
Copy link

For an example as below, using https://shacl-play.sparna.fr/play/doc I would assume to see Girl, Boy and Dog in the section "Expected value" of documentation. However this section is empty. Is this an expected behaviour?

@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix` owl:   <http://www.w3.org/2002/07/owl#> .
@prefix sh:    <http://www.w3.org/ns/shacl#> .
@prefix ex: <http://www.example.com/> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix co:    <http://purl.org/co#> .
@prefix error: <http://purl.org/spar/error#> .
@prefix dc:    <http://purl.org/dc/elements/1.1/> .

ex:Shape_0 a sh:NodeShape ;
	sh:targetSubjectsOf ex:hasPet ;
	sh:or (
	[ sh:class ex:Girl ]
	[sh:class ex:Boy]
	) .

ex:Shape_1 a sh:NodeShape ;
	sh:targetObjectsOf ex:hasPet ;
	sh:class ex:Dog .

@tfrancart
Copy link
Contributor Author

I would assume to see Girl, Boy and Dog in the section "Expected value" of documentation
Is this an expected behaviour?

Well yes in the sense that this is not supported, hence this Github issue.

But you will not see that in the "Expected value" column. You will see "hasPet" in the "applies to" section of each shape:

image

sh:class and sh:or constraints on NodeShapes are not supported in the documentation generator, you will not see them.

Also bear in mind that the documentation generator does not aim to be compatible with any SHACL file. Its goal is to print application profiles expressed in SHACL, which imply a certain subset of SHACL to be used, and a certain "style" of shapes (which is not the style of the tiny example you provide).

@larisa1995
Copy link

larisa1995 commented Sep 9, 2024

Thanks for the prompt reply! Hereby is another one that would appreciate the support of this feature.

@tfrancart
Copy link
Contributor Author

targetSubectsOf and targetObjectsOf are now supported:

image

@larisa1995
Copy link

Is this available at https://shacl-play.sparna.fr/play/doc ?

@tfrancart
Copy link
Contributor Author

tfrancart commented Oct 7, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants