W3C home > Mailing lists > Public > public-shex-dev@w3.org > November 2017

[shex] Constraint weight annotation

From: Dimitris Kontokostas via GitHub <sysbot+gh@w3.org>
Date: Sat, 04 Nov 2017 20:13:15 +0000
To: public-shex-dev@w3.org
Message-ID: <issues.opened-271220965-1509826393-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 11:00:16 UTC