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

sh:node makes the documentation generator crash #103

Closed psiotwo closed 6 months ago

psiotwo commented 10 months ago

On some inputs I get a NPE - difficult to reproduce, as it does not seem to be deterministic. But seems to be connected with (complex) sh:nodes, e.g.

sh:node [
      a sh:NodeShape ;
      sh:property [
          sh:path skos:inScheme ;
          sh:hasValue <http://eurovoc.europa.eu/100141> ;
        ] ;
    ] ;
sh:nodeKind sh:IRI ;
tfrancart commented 10 months ago

Could be related to using blank nodes. Would you mind attaching a SHACL file that triggers the error ? I think sh:node is expected to contain an IRI of a NodeShape, as described at https://shacl-play.sparna.fr/play/doc#propertyShape

tfrancart commented 6 months ago

This has been fixed - but potentially we will see the blank node identifier in the document, if the anonymous node shape does not have an rdfs:label.