SPARQL-Anything / sparql.anything

SPARQL Anything is a system for Semantic Web re-engineering that allows users to ... query anything with SPARQL.
https://sparql-anything.cc/
Apache License 2.0
212 stars 11 forks source link

SHACL definition of Facade-X #14

Open enridaga opened 3 years ago

enridaga commented 3 years ago

It would be a useful tool for validating the output of sparql.anything transformers.

luigi-asprino commented 1 year ago

I resumed this issue as I would like to see whether can be addressed. I had a look at the SHACL specification which seems to me unsuitable for defining a constraint that validates Facade-X. Maybe I have misunderstood something, but it seems to me that it is not possible to define constraints such as:

I don't know if someone with more familiarity with SHACL is able to translate these constraints into shapes.

Otherwise, these could be written as AS SPARQL queries.

luigi-asprino commented 1 year ago

Anyway, 35edfd4 introduces the method AbstractTriplifierTester.assertConformanceToFxShapes() which validates the resulting dataset graph against the shapes declared in sparql-anything-testutils/src/main/resources/Facade-X-shapes.ttl

So, if anyone comes up with a shape for Facade-X this can be included there.