[shex] Constraining a property by its shape (#122)

labra has just created a new issue for https://github.com/shexSpec/shex:

== Constraining a property by its shape ==
I just found this message in the [ShEx mailing list](https://lists.w3.org/Archives/Public/public-shex/2023Jun/0000.html) 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):

```shexc
: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. 



Please view or discuss this issue at https://github.com/shexSpec/shex/issues/122 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 16 November 2024 01:30:56 UTC