Open dazza-codes opened 7 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.
FYI, I'm no longer watching this or working on LD4* projects.
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: