Comments (6)
Would changing the frame to the following solve your problem?
{
"@context" : "http://www.shared-canvas.org/ns/context.json",
"@type": "sc:Manifest",
"structures": [
{
"@type":"sc:Range",
"@embed": true,
"canvases": [
{
"@embed":false
}
]
}
]
}
I didn't look too closely, but it looked incorrect/unnecessarry to be using "@list" in a frame. You also can't "filter" lists -- it changes the data, not just its structure.
from pyld.
No, I tried that. The issue is that the object of the canvases predicate
is an rdf:List, which has members that should not be embedded.
I'll build a test case.
Rob
On Thu, Aug 1, 2013 at 8:34 PM, Dave Longley [email protected]:
Would changing the frame to the following solve your problem?
{
"@context" : "http://www.shared-canvas.org/ns/context.json",
"@type": "sc:Manifest",
"structures": [
{
"@type":"sc:Range",
"@embed": true,
"canvases": [
{
"@embed":false
}
]
}
]}I didn't look too closely, but it looked incorrect/unnecessarry to be
using "@list https://github.com/list" in a frame.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-21983221
.
from pyld.
The frame, using the above style, is:
http://www.shared-canvas.org/ns/frame/manifest.json
An example instance is:
http://www.shared-canvas.org/ns/frame/metadata-eg.json
And the script I use:
http://www.shared-canvas.org/ns/frame/framer.py
When framing the instance, the Canvas objects get embedded into the "structures" block, and not in the "sequences" block even though the frame explicitly states otherwise.
Hope that helps, or at least illustrates the problem! :)
Rob
from pyld.
@azaroth42, I don't have much time to look further into this issue at the moment, unfortunately, but your fix seems like it implements the correct behavior so I've added it. I've got to update list processing, in general, in pyld to comply with recent changes to the spec before I can confirm that there aren't other side effects as a result of this change.
from pyld.
Thanks Dave! Happy to help if there's anything else I can contribute.
from pyld.
Everything has been updated to comply with the latest spec and test-suite, closing now.
from pyld.
Related Issues (20)
- @requireAll does not work with @type
- Clarify support for interpreting-json-as-json-ld
- blank node prefixes are not handled correctly
- Compact a framed JSON-LD document? HOT 1
- `JsonLdProcessor._compare_rdf_triples()` is a massive performance hog in `parse_nquads`
- implement JSON-LD-star
- ping HOT 4
- aliasing @id not working
- jsonld.to_rdf: Zeros not truncated for numeric values with negative exponent
- number with 0 fractional part should parse to an xsd:integer
- Performance issues with jsonld.normalize
- `jsonld.expand` incorrect when there are identical scoped contexts HOT 1
- Include JSON-LD specifications as `git` submodules HOT 2
- compaction with URL context doesn't work
- Implement custom document loader option HOT 1
- IRI expansion with missing `@base` does not conform to RFC 3986 HOT 1
- [BUG] Framing a document with the traceability context raises an error HOT 1
- Switch from `normalization` to `rdf-canon` test suite
- Use `Makefile` to improve developer experience
- Language tagged strings HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyld.