Skip to content

Add test for compact property with @type as @id and @container as @list #509

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

Merged
merged 2 commits into from
Jul 10, 2017
Merged

Conversation

dankawka
Copy link
Contributor

@dankawka dankawka commented Jun 29, 2017

I add these tests because probably there is a bug in jsonld.js implementation which prevents compacting fields mapped as container list with type of id.

Not working example on JsonLD playground: link

Working example on Markus Lanthaler JsonLD playground: link

@gkellogg
Copy link
Member

gkellogg commented Jul 1, 2017

See #508.

gkellogg added a commit that referenced this pull request Jul 1, 2017
…that matches the property IRI:

* Update inverse context to creation to include an `@any` member for the _container_ member of _container map_ for a given _iri_.
* Update IRI Compaction to set _type/language_ to `@any` if value is an empty list object.

Fixes #508. PR #509 is appropriate with this change.
@gkellogg gkellogg merged commit 772b818 into json-ld:master Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants