Skip to content

Add toRdf tests for merging rootless base paths#103

Merged
gkellogg merged 2 commits intow3c:masterfrom
fsteeg:path-rootless-merge
Jun 10, 2019
Merged

Add toRdf tests for merging rootless base paths#103
gkellogg merged 2 commits intow3c:masterfrom
fsteeg:path-rootless-merge

Conversation

@fsteeg
Copy link
Member

@fsteeg fsteeg commented Jun 3, 2019

This came up in an issue with jsonld-java:
jsonld-java/jsonld-java#232

See second bullet point in:
https://tools.ietf.org/html/rfc3986#section-5.2.3

@iherman
Copy link
Member

iherman commented Jun 3, 2019

Marked as non substantive for IPR from ash-nazg.

1 similar comment
@fsteeg
Copy link
Member Author

fsteeg commented Jun 3, 2019

Marked as non substantive for IPR from ash-nazg.

@BigBlueHat BigBlueHat requested a review from gkellogg June 3, 2019 18:51
@davidlehn
Copy link
Contributor

There is a similar jsonld.js issue. There are likely more tricky test cases and test variations that could be written to cover these issues.
digitalbazaar/jsonld.js#305.

@fsteeg
Copy link
Member Author

fsteeg commented Jun 7, 2019

Added a test case for a base URI with a trailing slash, which (according to my understanding of the second bullet point in https://tools.ietf.org/html/rfc3986#section-5.2.3) results in preserving the full base URI (the scenario in digitalbazaar/jsonld.js#305).

@fsteeg fsteeg changed the title Add toRdf tests for merging rootless base URL paths Add toRdf tests for merging rootless base paths Jun 7, 2019
Copy link
Member

@gkellogg gkellogg left a comment

Choose a reason for hiding this comment

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

My implementation currently fails as it doesn't doesn't handle tag:example as having an empty base path, but this seems to be the correct interpretation.

@gkellogg gkellogg merged commit 6ed130a into w3c:master Jun 10, 2019
fsteeg added a commit to fsteeg/jsonld-java that referenced this pull request Jun 11, 2019
Add new spec tests, remove custom tests

See:

jsonld-java#232
w3c/json-ld-api#103
fsteeg added a commit to fsteeg/jsonld-java that referenced this pull request Jun 11, 2019
Add new spec tests, remove custom tests

See:

jsonld-java#232
w3c/json-ld-api#103
rubensworks added a commit to rubensworks/relative-to-absolute-iri.js that referenced this pull request Jun 12, 2019
rubensworks added a commit to rubensworks/jsonld-streaming-parser.js that referenced this pull request Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants