[shex] Constraint weight annotation

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

== Constraint weight annotation ==
As discussed in https://github.com/schemaorg/schemaorg/issues/1715. 
A possibly useful feature for ShEx would be to have a more consistent way to define constraint weight annotations for e.g. 
 > "strongly recommended", "excellent to include if you have it", "would be nice", "optional", "permitted", "mandatory", "required" etc

This could come directly in the constraint definition like 
```
<S> {
    SHOULD <p1> . ;
    MAY (<p2> . ; 
              <p3> . );
    SUPERNICETOHAVE <p4> . ; 
}
```
of in the annotations part with options like
```
<S> {
    <p1> . ; // sx:req my:SHOULD
    <p2> . ; // sx:req "MAY"
    <p3> . ; // NICETOHAVE
    <p4> . ; // ss:SUPERNICETOHAVE # => ss is a predefined namespace
}
```

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

Received on Saturday, 4 November 2017 20:13:16 UTC