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

Constraining a property by its shape #122

Open
labra opened this issue Nov 16, 2024 · 0 comments
Open

Constraining a property by its shape #122

labra opened this issue Nov 16, 2024 · 0 comments

Comments

@labra
Copy link
Contributor

labra commented Nov 16, 2024

I just found this message in the ShEx mailing list and I copy it here so the idea doesn't get lost.

Is there any way to constrain properties used within a shape by the shape of the properties? I’m thinking of something like this (not legal):

:Ontology Nonliteral {
    a [owl:Ontology] ;
    owl:imports IRI+ ;
    @:AnnotationProperty .*
}

:AnnotationProperty IRI {
    a owl:AnnotationProperty
}

The ontology shape can have any number of properties that are annotation properties.

Although that possibility is not supported in current ShEx, I think it is a possibility that we could explore in future versions of ShEx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant