shexSpec / shex

ShEx language issues, including new features for e.g. ShEx2.1
25 stars 8 forks source link

ShapeMap definition in the spec #36

Closed labra closed 7 years ago

labra commented 7 years ago

This issue is aimed to discuss the following comment in the spec:

Since a node may have multiple shapes, this should either be a mapping from a node to a set of shapes { "n1": [ "S1", "S2"], "n2": [] } or a list of node-shape pairs [ ["n1", "S1"], ["n1", "S2"] }. Which is easier to understand?

I have no strong opinion on this. I think I prefer the first option (a map from a node to a set of shapes)

ericprud commented 7 years ago

I've implemented the first option:

A ShapeMap is a mapping from node to a set of shapes (Node1: [Shape2, Shape3, …]) where...

PROPOSAL: close REASON: the preferred choice is implemented in /spec PARTICIPANTS: @labra, @ericprud, @gkellogg (out of band)