-
Notifications
You must be signed in to change notification settings - Fork 201
Framed @graph
@container
output not properly compacted
#241
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
Comments
cc: @gkellogg, @davidlehn |
On it; it seems to work okay if you frame it, expand it and then compact the results with the context in the frame, so there is some setup issue at the top of the frame algorithm that needs to be figured out. Thus far, we haven't done many crossover tests, just focusing on expansion and compaction for these container bits, so we should probably add more such tests. |
The issue seems to be the addition of a graph name in the intermediate expanded result: [
{
"@id": "_:b0",
"http://example.org/claim": [
{
"@id": "_:b1",
"@graph": [
{
"@id": "http://example.org/1",
"https://example.com#test": [
{
"@value": "foo"
}
]
}
]
}
]
}
] Because there is a graph name, it is not considered a simple graph, and step 8.7.7.3 represents it using While the algorithm performs Thoughts? |
At a minimum we should do this -- however, I think we should actually do your other recommendation:
It seems that this is really what needs to be done so that people aren't surprised by the results. |
On reflection, passing a list to compaction, and on to the simple graph check is more complex, and just results in the prune blank nodes being run for just this case. Given that the blank node identifiers are useless if they could be pruned, maybe we should just not make it optional for version 1.1. Alternatively, we could always prune them where it would result in a simple graph, but this seems like needless complexity. In 1.0 they were just a byproduct of flattening and not really useful in and of themselves. |
I'm fine with always pruning. I think it was surprising to many people that they were added after framing to begin with. |
This appears to be fixed, closing. |
http://tinyurl.com/yaa98egk
Input
Frame
Output
Expected Output:
The text was updated successfully, but these errors were encountered: