shapes-ISSUE-54 (labra): Disjunction on shapes [SHACL Spec]

shapes-ISSUE-54 (labra): Disjunction on shapes [SHACL Spec]

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

Raised by: Jose Emilio Labra Gayo
On product: SHACL Spec

There are several use cases where an RDF data modeler wants to define that a node can have either one shape or another.

The SHACL core language should define a language construct to be able to express that possibility. 

The compact syntax uses the "|" operator to do so.

For example:

<Shape> {
  rdfs:comment xsd:string 
| dc:description xsd:string
}

There are some issues that must be handled when defining disjunctions on Shapes:

- Should the disjunction be a inclusive "or" or an exclusive "or" ? In Eric's proposal, inclusive or was named "someOf" while exclusive or was named "oneOf". Should SHACL have both?

Received on Saturday, 23 May 2015 05:47:23 UTC