Skip to content

Add API support for lists containing lists #16

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
Aug 11, 2018
Merged

Add API support for lists containing lists #16

merged 2 commits into from
Aug 11, 2018

Conversation

gkellogg
Copy link
Member

@gkellogg gkellogg commented Aug 3, 2018

Affects expansion, compaction, flattening and to/from RDF conversion. Also adds tests.

For w3c/json-ld-syntax#36.


Preview | Diff

…tion, flattening and to/from RDF conversion. Also adds tests.

For w3c/json-ld-syntax#36.
@gkellogg
Copy link
Member Author

gkellogg commented Aug 3, 2018

Changes to algorithms were straight-forward enough that I'm not sure why we ended up pushing it out of 1.0.

tests/README.md Outdated

* _remote-doc_ tests will likely not return expected HTTP headers, so the _options_ should be used to determine what headers are associated with the input document.
* Some algorithms, particularly _fromRdf_, may not preserve the order of statements listed in the input document, and provision should be taken for performing unordered array comparison, for arrays other than values of `@list`. (This may be difficult for compacted results, where array value ordering is dependent on the associated term definition).
* Some implementations may chose an alternative Blank Node Label algorithm, the comparison between documents containing blank node labels should take this into consideration. (One way to do this may be to reduce both results and _expected_ to datsets to extract a bijection mapping blank node labels between the two datasets as described in [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism)).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • s/may chose/may choose/

  • reduce both results and expected to datsets to extract a bijection mapping blank node labels between the two datasets

    • "reduce both results and expected [results] to datasets to extract a bijection mapping blank node labels bijective mapping of blank node labels between the two datasets

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