Coder Social home page Coder Social logo

Comments (6)

dlongley avatar dlongley commented on June 15, 2024

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.

azaroth42 avatar azaroth42 commented on June 15, 2024

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.

azaroth42 avatar azaroth42 commented on June 15, 2024

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.

dlongley avatar dlongley commented on June 15, 2024

@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.

azaroth42 avatar azaroth42 commented on June 15, 2024

Thanks Dave! Happy to help if there's anything else I can contribute.

from pyld.

dlongley avatar dlongley commented on June 15, 2024

Everything has been updated to comply with the latest spec and test-suite, closing now.

from pyld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.