Skip to content
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

Specifications for editor component return value #43

Open
jsheunis opened this issue Aug 23, 2024 · 0 comments
Open

Specifications for editor component return value #43

jsheunis opened this issue Aug 23, 2024 · 0 comments

Comments

@jsheunis
Copy link
Collaborator

Editor components should be in charge of returning value to the formData structure that is both valid (based on any/all fields of the property shape) and correctly formatted (based on the property shape's nodeKind and datatype fields), taking into account that the shacl-vue applicaton will handle this value together with its property shape when adding it as a quad to a graph store.

E.g. for a URL field that has datatype XSD.anyURI, the editor component should be sure to return a string (i.e. literal) that has the correct formatting, but not as RDF. So the shacl-vue application will create:

rdf.literal(String(editor-component-value), XSD.anyURI)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant