GithubHelp home page GithubHelp logo

Comments (6)

gkellogg avatar gkellogg commented on July 22, 2024 2

Lists of lists are supported in the working group draft: https://w3.org/TR/JSON-LD11.

The community group, which this site is based on, handed off work to the working group some time ago.

There is a specific example for Geo-JSON in the spec.

from json-ld.org.

msporny avatar msporny commented on July 22, 2024

We need somebody to do a deep dive into this issue. I don't have a strong opinion one way or the other. It seems like something that would be easy to express using the syntax that we have, but may have severe complications when normalizing or converting to RDF.

@dlongley Do you have any thoughts on this?

from json-ld.org.

dlongley avatar dlongley commented on July 22, 2024

I recommend we make lists of lists illegal for the time being. We might support them in the future, but I don't see the need right now -- and don't think we should go making implementations more complicated for a use case that might be really limited.

from json-ld.org.

lanthaler avatar lanthaler commented on July 22, 2024

That would be fine for me, we just have to make that clear in the spec. I think sooner or later we will need to add something like a schema to the spec to formally describe which constructs are allowed and which aren't. We are discovering a lot of corner cases these days..

from json-ld.org.

lanthaler avatar lanthaler commented on July 22, 2024

RESOLVED: Lists of lists are not allowed for JSON-LD 1.0. If a list of lists is detected, the JSON-LD processor MUST throw an exception.

from json-ld.org.

alpha-beta-soup avatar alpha-beta-soup commented on July 22, 2024

There's a use case for lists of lists in GeoJSON-LD: geojson/geojson-ld#12 (all non-point, non-empty geometries cannot be represented).

from json-ld.org.

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.