Skip to content

sh:ShapeMap doesn't permit one node with two shapes #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ericprud opened this issue Apr 28, 2017 · 4 comments
Open

sh:ShapeMap doesn't permit one node with two shapes #19

ericprud opened this issue Apr 28, 2017 · 4 comments
Milestone

Comments

@ericprud
Copy link
Contributor

{
  "http://example/issue1": "http://schema.example/IssueShape",
  "http://example/issue2": "http://schema.example/IssueShape",
  "http://example/issue3": "http://schema.example/IssueShape"
}

doesn't permit one to ask e.g. is issue1 a IssueShape and a PersonShape.

@ericprud ericprud added this to the 2.0 milestone Apr 28, 2017
@gkellogg
Copy link
Contributor

I believe that the value can be an array of URIs, specifically to address this use case.

@gkellogg
Copy link
Contributor

A ShapeMap is a mapping from node to a set of shapes (Node1: [Shape2, Shape3, …]) where node is an RDF node, and Shapen is a shape label from a schema.

@ericprud
Copy link
Contributor Author

Should the sh:ShapeMap instead look like:?

{
  "http://example/issue1": ["http://schema.example/IssueShape"],
  "http://example/issue2": ["http://schema.example/IssueShape"],
  "http://example/issue3": ["http://schema.example/IssueShape"]
}

@gkellogg
Copy link
Contributor

I guess I'd see either a URI or an array of URIs, but if we needed to choose, an array of URIs. My implementation will always lift a single URI to an array form in any case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants