Add GitHub actions to validate the serialized files #26
Replies: 4 comments 1 reply
-
I think some of this might be achieved with VOCbench's Integrity Constraint Violation checks (mainly the check SKOS broaders/narrowers/dangling concepts). That said, I don't know if we can automate & I'd prefer we have automated checks in place for every PR, so I think it would be best if they happen on GitHub. I think we do need to check both JSON-LD & RDF files. I agree with all the checks you propose. I would also like it if we could have a check to ensure the contents of the file matches the file name (e.g. measures.json contains an |
Beta Was this translation helpful? Give feedback.
-
On URI naming convention checks: we need to enforce the following regex's: camelCase (for properties) : On translations: I think for now we want to ensure all concepts have either an English OR French label, does that sound ok? Or should we enforce English AND French for everything ? @lecoqlibre Do you have any ideas for the narrower/broader parsing? Would we need to use something that can parse SKOS (like the RDF4J library) or could we use some "simple" awk parsing of the text ? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Was looking at Super Linter, but it doesn't support RDF/JSON (or any structured data, except bare XML 😖 ). The Structured Data Linter could be of some use there, but not sure how much if we're outputting from VOCbench. 😕 We might also make use of the W3C RDF Parser I also came across this in my travels... not sure how useful it is atm, but just noting it here. @lecoqlibre - are you still planning to look into this ? If so, do you have any idea when you might have some bandwidth to do that ? |
Beta Was this translation helpful? Give feedback.
-
Could we use the the SHACL validatior from https://github.com/skohub-io/skohub-vocabs to drive this. @lecoqlibre could you estimate this in an issue ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Like we said in our last ontology meetings, we should have a way to check whether or not a file is valid before we publish it.
We came with the idea to set up GitHub actions which would be triggered when new commits are pushes to the repo. These actions would test and check some constraints are validated.
Do we need this for both JSON-LD and RDF files?
Possible checks:
Any comments @RaggedStaff @Alcoz ?
Beta Was this translation helpful? Give feedback.
All reactions