Skip to content

Should we support lists of lists? #52

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

Closed
lanthaler opened this issue Jan 11, 2012 · 6 comments
Closed

Should we support lists of lists? #52

lanthaler opened this issue Jan 11, 2012 · 6 comments

Comments

@lanthaler
Copy link
Member

Currently we do not support lists of lists since Gregg got into some problems in trying to make them work algorithmically and didn't have a real use case.

We should discuss whether we would like to support that or not and what happens if someone uses that feature nevertheless.

@msporny
Copy link
Member

msporny commented Feb 5, 2012

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?

@dlongley
Copy link
Member

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.

@lanthaler
Copy link
Member Author

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

@lanthaler
Copy link
Member Author

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.

@alpha-beta-soup
Copy link

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

@gkellogg
Copy link
Member

gkellogg commented Jul 5, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants