MikiDi commented on issue #3817:
URL: https://github.com/apache/jena/issues/3817#issuecomment-4153463551
Thanks. Will raise issue in the shacl-shacl repo.
For an example:
```
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix era: <http://data.europa.eu/949/> .
@prefix era-sh: <http://data.europa.eu/949/shapes/> .
era-sh:VehicleTypeAuthorisationCaseShape
a sh:NodeShape ;
sh:nodeKind sh:IRI ;
sh:targetClass era:VehicleTypeAuthorisationCase .
era-sh:VehicleTypeAuthorisationCaseShape sh:sparql
era-sh:AuthorisingMemberStateSKOS .
era-sh:AuthorisingMemberStateSKOS
a sh:SPARQLConstraint ;
sh:severity sh:Violation ;
sh:message "foo"@en ;
sh:message "bar"@en ;
sh:select """
PREFIX era: <http://data.europa.eu/949/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT $this (era:authorisingMemberState AS ?path) (?concept AS
?value) ?label
WHERE {
OPTIONAL { $this rdfs:label ?label0 } .
BIND(COALESCE(?label0, "unknown label") AS ?label)
$this era:authorisingMemberState ?concept .
era:authorisingMemberState era:inSkosConceptScheme
?conceptScheme .
FILTER (NOT EXISTS { ?concept skos:inScheme ?conceptScheme })
}
""" .
```
For more context:
https://gitlab.com/era-europa-eu/public/interoperable-data-programme/era-ontology/era-ontology/-/work_items/323
(note that the hosted file linked there has been updated meanwhile)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]