In the spec, there are multiple values for the @context. Below are the different ones:
wot) {
"type": "string",
"pattern": "^https?://(www\\.)?w3\\.org/2019/td/v1$"
}
( This is a flexible version of the second one)
In the end, I think it should be clear if @context can be flexible/redirectable or not. Some questions I have:
In the comments of PR #603 @mkovatsc said that we have only the value with www which contradicts the previous point.
It rather says the JSON Schema needs to be made more restrictive
https -- other comments?Regarding https vs http and www & without www I just tested the existing w3.org/ns/td with postman and all variations returned the same document:
These are practical aspects of retrieving something from the Web server. We need firstly the unique identifier aspect.
We need firstly the unique identifier aspect.
I agree with this, whether they return the same document can depend on the configuration of the Web server/DNS
I would simple go for https://www.w3.org/2019/td/v1 as announced in the TD spec and define this in the JSON Schema.
I fixed the namespaces errors (https://www.w3.org/2019/wot/td/v1 --> https://www.w3.org/2019/td/v1) in the spec
In that case if there are no objections, I am constraining the schema to accept only https://www.w3.org/2019/td/v1
If the PR#632 is merged this issue can be closed given that @sebastiankb has also fixed the inconsistency with having wot in the uri or not
Most helpful comment
In that case if there are no objections, I am constraining the schema to accept only
https://www.w3.org/2019/td/v1