-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add validation of SKOS files to SKOS-Editor #1139
base: master
Are you sure you want to change the base?
Conversation
I am currently not sure why you need the xml.xsd... and why "xml"? Isn't RDF and SKOS not XML? |
That's imported so that the |
declare the namespace upfront should fix the error |
I've tried both adding |
As far as I know, dchema definitions need to include all parts, i.e. if the schema imports attributes from the XML namespace the simple namespace reference is insufficient. |
I See... I really really dislike this approach... but it seems to be the only way to deal with this |
@NTsch Can you provide me with a short introduction how to test this? |
@NTsch push |
Make a copy of a glossary (-> /mom/index/IllUrkGlossar -> "Create personal copy"), then open it in the editor (MyArchive -> Saved Vocabularies -> Open Vocabulary in SKOS-Editor). There you can create Concepts and properties like prefLabel. If you try to publish when there's a Concept that doesn't have a prefLabel, you should get an error, otherwise it should publish normally. |
This adds a service to the SKOS-Editor app which uses schema files to assure before publication that the SKOS-file which is being edited is valid and has all the necessary elements to be correctly displayed in the index view. This is done using the already existing
data:validate
function. When the user clicks on the "Publish" button in the editor, the service either returns the error message from the validation report, or publishes as usual if there are no problems.This closes #1117.