W3C home > Mailing lists > Public > public-data-shapes-wg@w3.org > April 2016

Re: shapes-ISSUE-141 (Mixed ranges): How to represent mixed datatype-or-class ranges [SHACL - Core]

From: Peter F. Patel-Schneider <pfpschneider@gmail.com>
Date: Mon, 11 Apr 2016 18:16:50 -0700
To: Holger Knublauch <holger@topquadrant.com>, public-data-shapes-wg@w3.org
Message-ID: <570C4C82.7060908@gmail.com>
On 04/11/2016 06:01 PM, Holger Knublauch wrote:
[...]
> If we were to merge shapes and constraints and drop sh:constraint, how could
> people express different severities, e.g.?
> 
> ex:MyShape
>     a sh:Shape ;
>     sh:constraint [
>         sh:closed true ;
>         sh:severity sh:Warning ;
>     ] ;
>     sh:constraint [
>         sh:stem "http://aldi.de/" ;
>         # default severity is sh:Error
>     ] .
> 

Quite simply.

ex:MyShape
    a sh:Shape ;
    sh:shape [
        sh:nodeKind sh:IRI ;
        sh:severity sh:Warning ;
     ] ;
     sh:stem "http://aldi.de/" .
     # default severity is sh:Violation
Received on Tuesday, 12 April 2016 01:17:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:30:31 UTC