Skip to content

incorrect jsonld after uploading shacl file when having an optional structure with mandatory attributes.

general_shacl.ttl

As an example see attatched general_shacl.ttl:

relatedData in GeneralShape:

      [ sh:node general:LinkShape ;
          sh:description "Reference to optional related assets" ;
          skos:example "at hd map, link to optional map" ;
          sh:name "relatedData" ;
          sh:order 2 ;
          sh:path general:relatedData ];

If relatedData is not filled in the wizard, following block will be generated:

    "general:relatedData": {
      "@type": "general:Link"
    }

This is obviously not conform since the mandatory files url and type of LinkShape are missing. This bug will be fixed in the future.

Expected behaviour: relatedData should not be in the jsonld at all.