ld4l-labs / bibliotek-o

bibliotek-o: a BIBFRAME 2 Extension Ontology
Creative Commons Zero v1.0 Universal
9 stars 8 forks source link

Use shape expression schema to validate ontology instance data #26

Open dazza-codes opened 7 years ago

dazza-codes commented 7 years ago

http://shexspec.github.io/primer/#quickStart

Often ontology entities are created or modified with a specific RDF graph pattern in mind for instance data expressed in the ontology. The shape expression schema is a formal way to specify these graph patterns. These graph patterns are often examples of instance data - the google docs for developing bibliotek-o often have such instance data examples to provide concrete RDF triples that express the desired use and utility of an ontology feature.

One way to use ShEx schema could be to combine sample data, the ontology and a converter to create instance data that could be validated against the ShEx schema. The idea here is to enable something like a test-driven development practice for ontology development. It's something like:

VladimirAlexiev commented 5 years ago

Nice approach. You could also consider SHACL, which is W3C standardized, although more verbose and lacks some nice ShEx features (recursive shapes). Ping me if you want a list of implementations.

dazza-codes commented 5 years ago

FYI, I'm no longer watching this or working on LD4* projects.