Skip to content
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

conversion to fixed ShapeMap can easily fail #14

Open
pfps opened this issue Mar 13, 2018 · 8 comments
Open

conversion to fixed ShapeMap can easily fail #14

pfps opened this issue Mar 13, 2018 · 8 comments

Comments

@pfps
Copy link

pfps commented Mar 13, 2018

... because two different triple patterns can produce the same node, potentially resulting in multiple shape associations with the same nodeSelector and shapeLabel.

@ericprud
Copy link

ericprud commented Mar 14, 2018

I read

No two shape associations in a ShapeMap may have the same combination of node and shape.

as prohibiting that so it's up to implementations to de-duplicate. The ShapeMap usage section only makes sure that association are in a fixed ShapeMap:

If A.node is an RDF node, A is in the fixed ShapeMap.

For each triple T in G which matches P, the fixed ShapeMap has a shape association F ...

For instance, with data:

<s> <p1> 1 .

QueryMap:

<s>@<S>,
{FOCUS <p1> _}@<S>

the fixed map should be:

<s>@<S>

demo

@pfps
Copy link
Author

pfps commented Mar 14, 2018 via email

@ericprud
Copy link

Where's the violation?

@pfps
Copy link
Author

pfps commented Mar 14, 2018 via email

@ericprud
Copy link

I added a note so as to not imply this was a new constraint. This is the first 2119 keyword in the document.

Note that though <a>shape associations</a> with triple patterns may imply redundant fixed ShapeMap associations, the combination of node and shape in the fixed map MUST be unique.

If that address this issue, feel free to close it.

@pfps
Copy link
Author

pfps commented Mar 14, 2018 via email

@ericprud
Copy link

Can you propose some text, maybe in the form of a pull request, which gracefully asserts that a fixed ShapeMap is composed of e.g. the unique set of node/shape associations implied by the bullet points?

@pfps
Copy link
Author

pfps commented Mar 15, 2018 via email

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