shapes-ISSUE-148 (scope syntax): non-uniform syntax in scopes [SHACL - Core]

shapes-ISSUE-148 (scope syntax): non-uniform syntax in scopes [SHACL - Core]

http://www.w3.org/2014/data-shapes/track/issues/148

Raised by: Peter Patel-Schneider
On product: SHACL - Core

The syntax for SHACL scopes is non-uniform.

For class scopes the syntax is
  ex:s1 a sh:Shape ;
    sh:scopeClass ex:Person .
For property subject scopes the syntax is
  ex:s2 a sh:Shape ;
 sh:scope [
  a sh:PropertyScope ;
  sh:predicate ex:knows ;
 ] .
The difference does not seem to serve any purpose and property subject scopes could be written instead as
  ex:s2 a sh:Shape ;
    sh:propertyScope ex:knows .

Received on Friday, 15 April 2016 13:18:06 UTC