Pierre-Antoine Champin

Results 263 comments of Pierre-Antoine Champin

@iherman @asbjornu It seems to me that URL templates are both too much (supporting multiple placeholders) and not enough (supporting only URLs). @pietercolpaert @asbjornu I really want to keep the...

@ajs6f > Would this not work for more general alphanumeric identifiers? The problem is: if you try to compact `http://ex.co/id/1234` through template `http://ex.com/id/{}`, should you produce the string `"1234"` or...

Actually, [expand test 0038](https://w3c.github.io/json-ld-api/tests/expand-manifest.html#t0038) does test this (this is how I ran into this problem, actually), and it is marked with specVersion 1.0. Note however that the problem occurs even...

IRI Expansion says nothing about it because, as far as I can tell, it should never be *invoked* with a value that is not as string. The test is usually...

Accepting non-strings as relative IRIs would cause problem when compacting, because it would not be able to round trip. Consider [this example](https://json-ld.org/playground/#startTab=tab-compacted&json-ld=%5B%7B%22%40id%22%3A%22http%3A%2F%2Fexample.org%2Fusers%2F1234%22%2C%22http%3A%2F%2Fschema.org%2Fname%22%3A%5B%7B%22%40value%22%3A%22John%20Doe%22%7D%5D%7D%5D&context=%7B%22%40context%22%3A%7B%22%40base%22%3A%22http%3A%2F%2Fexample.org%2Fusers%2F%22%2C%22%40vocab%22%3A%22http%3A%2F%2Fschema.org%2F%22%7D%7D). How would you decide that the compacted `@id`...

It seems to me that your proposal aims at breaking the principle of [URI opacity](https://www.w3.org/TR/webarch/#uri-opacity). More precisely, what you are trying to say is "*any* IRI starting with `xyz`, when...

I disagree that the URI/IRI opacity argument is limited to example 1. Both example imply that anybody can coin a new IRI with a given prefix (`s:` in example 1,...

> I can, as the designer of the documentation format, within the context of that format, reasonably make the conceptual statement that the valid set of secondary resources is all...

@VladimirAlexiev, did you look at steps 10 and 11 of the [Object to RDF algorithm](https://www.w3.org/TR/json-ld11-api/#algorithm-13)? I think the answer to your question is here. The `-0.0000001` and `0.0000001` cases in...

@VladimirAlexiev actually, the issue with 123456789012345678901 is a bug (since it is < 1021) in jsonld.js. Again, the Ruby and Python implementations do the right thing. Note that, the way...