Informasjonsforvaltning / dcat-ap-no-validator-service

A shacl based validator backend service for validating catalogs against dcat-ap-no specifications
Apache License 2.0
2 stars 0 forks source link

integrasjonstester feiler med nyeste versjon av pyshacl og rdflib #154

Open NilsOveTen opened 1 month ago

terjesyl commented 3 weeks ago

Bør også prøve å gå over til Python 3.11 når disse er oppdatert, gir en betydelig bedre ytelse: https://github.com/RDFLib/pySHACL/blob/master/CHANGELOG.md#0230---2023-05-23

terjesyl commented 3 weeks ago

Testene knekker på oppgradering av pyshacl fra 0.21.0 til 0.22.0, se changelog:

- Big change to how ontology mix-in mechanism works
- Feature is now called datagraph inoculation
- Inoculation copies only RDFS and OWL axioms (classes, properties and relationships) from the extra-ontology file into the datagraph
  - This mitigates a class of errors that cause the validator to perform validation on Nodes that should not be in the datagraph
  - Such as cases where the Shapes graph and Extra-ontology graph are the same graph, but having SHACL Shapes and constraints in the datagraph is undesired.

Kan kreve en større refaktorering av hele tjenesten, uvisst omfang per nå.

pySHACL tilbyr også et integrert HTTP REST-API som kan være verdt å undersøke.