8000 Constraint weight annotation · Issue #76 · shexSpec/shex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Constraint weight annotation #76
Open
@jimkont

Description

@jimkont

As discussed in schemaorg/schemaorg#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
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0