Testing shacl-vue as a schema editor #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/tools#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since
shacl-vueworks from arbitrary shacl, and since the LinkML language itself is modeled in linkml (see https://github.com/linkml/linkml-model/blob/main/linkml_model/model/schema/meta.yaml, and the shacl export of that schema: https://github.com/linkml/linkml-model/blob/main/linkml_model/shacl/meta.shacl.ttl), it follows that shacl-vue can be used to generate forms from the shacl schema of linkml. This in turn means that the resulting forms can be used to generate/author a Linkml schema.The goal here is to test this out and document the results of the process.
Some initial notes:
gen-shaclhas seen several updates since then, so it would be good to test the export with the latest export code.gen-shacl(from linkmlv1.8.4) on the main meta schema (here) gives an error that needs to be investigated:code/gen_owl_minimal.pyscript on the meta YAML schema, gives sufficient input for shacl-vue to use.sh:datatypenorsh:NodeKind, which means there is not enough information in the property shape to match with any editor. I hope this is an insufficiency of the older version of the shaclgen code that has since been improved. Even if it gets updated, though, I think it probably still makes sense to have a default rendering component, e.g. a free text field, that gets matched if nothing else matches, and then to see the entered content as a literal node with datatype string.