sparna-git / shacl-play

SHACL validation UI, SHACL documentation generator, SHACL generator from RDF.
http://shacl-play.sparna.fr
GNU Lesser General Public License v3.0
24 stars 15 forks source link

DatatypeProperty of range rdf:langString not handled #133

Closed nchauvat closed 2 months ago

nchauvat commented 3 months ago

Hi Thomas,

Thank you for shacl-play.

Using it to generate shapes from an ontology with a DatatypeProperty of range rdf:langString, such as

my:title a owl:DatatypeProperty ;
    rdfs:domain my:ClassyClass ;
    rdfs:range rdf:langString.

we got

sh:class rdf:langString

instead of the expected

sh:datatype rdf:langString

see https://www.w3.org/TR/rdf12-concepts/#section-Graph-Literal about rdf:langString.

After changing sh:class to sh:datatype, the data is correctly validated by shacl-play.

tfrancart commented 3 months ago

Hello @nchauvat and thanks for stopping by. Indeed I think the problem is here

tfrancart commented 3 months ago

This was fixed, could you give it another try ? if it works for you, could you close the issue ? Thanks !