Closed jakubklimek closed 1 year ago
@jakubklimek I initially wondered whether this is in the first place an issue for the SHACL implementers community? As I have no such report from the ISA testbed implementation, which is using the TopBraid OS library.
After some digging in the SHACL spec, it turns out that there is a requirement to have at least a sh:path on the sh:property specified. And as _:test sh:property [] results in a blank node with nothing attached this triggers the jena error. I'll update the files.
Hi @bertvannuffelen, thanks for the fix. However, we have tested the 2.1.1.-draft version and there are still some empty sh:property fields.
https://github.com/SEMICeu/DCAT-AP/blob/2.1.1-draft/releases/2.1.1/dcat-ap_2.1.1_shacl_range.ttl#L393 https://github.com/SEMICeu/DCAT-AP/blob/2.1.1-draft/releases/2.1.1/dcat-ap_2.1.1_shacl_shapes_recommended.ttl#L92
If you comment these out, Jena will load them correctly.
fixed now
This empty property shape causes Apache Jena SHACL parser to fail with: