Skip to content
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

JSON framing : support for multiple @id #424

Closed
abrisse opened this issue Sep 8, 2016 · 0 comments
Closed

JSON framing : support for multiple @id #424

abrisse opened this issue Sep 8, 2016 · 0 comments

Comments

@abrisse
Copy link

abrisse commented Sep 8, 2016

JSON-LD framing should support multiple @id in order to "hook" multiple IRIs that have nothing in common in kind of relations (@type or whatsoever).

A solution would be to be able to accept arrays for @id.

  "@context": {
    "dc": "http://purl.org/dc/elements/1.1/",
    "ex": "http://example.org/vocab#"
  },
  "@id": [
    "http://example.org/library",
    "http://example.org/kitchen"
  ]
}

Currently an error is returned :

Invalid JSON-LD syntax; @id value must be a string or an object.

Note: @type should accept multiple values too

@gkellogg gkellogg modified the milestone: JSON-LD.next Sep 22, 2016
gkellogg added a commit that referenced this issue Oct 4, 2016
…framing algorithm in general, and implement more specific node matching, including deep matching, as described in #110 for multiple values for `@id` in #424.

Still requires more work on expansion and tests. Note that frame matching can now be quite expensive, if all features are used. Also, implementations may want to save some of the work done when matching to do the actual framing.
@gkellogg gkellogg removed the 1.1 label Oct 6, 2016
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

2 participants