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

Provide shape for Data Model section #18

Open
elf-pavlik opened this issue Nov 13, 2024 · 2 comments
Open

Provide shape for Data Model section #18

elf-pavlik opened this issue Nov 13, 2024 · 2 comments

Comments

@elf-pavlik
Copy link
Member

elf-pavlik commented Nov 13, 2024

The current description somehow makes sense for JSON-LD, but it isn't very clear as content type independent definition.
Providing a shape in ShEx and SHACL should provide an unambiguous and validatable way of defining it.

I can write one in ShEx, it can also constrain that it has to use IRI and can't be a blank node, it would go something like this:

:Notification IRI {
  a [ as:Update as:Add as:Delete as:Create ] ;
  as:object IRI;
  as:published xsd:dateTime ;
  notify:state xsd:string
}
@CxRes
Copy link
Member

CxRes commented Nov 13, 2024

This is a good idea.

We will need an as:object line as well.

Finally, I am not sure if conditionals can be expressed in SHACL or ShEx?

@CxRes
Copy link
Member

CxRes commented Nov 19, 2024

ACTION: @elf-pavlik will make a PR with ShEx template.

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

2 participants