What's the expected form for the @domain value?
#75
Replies: 2 comments 1 reply
|
Hey @Peeja thanks for your interesting thoughts. I totally agree!
It's meant to be DNS-style, and it's checked by the Javascript engine. So for now, you can't use any IRI. However, this was really just intended to have a very easily explained algorithm for the default JSON-LD context Right now, you can set your own context in the clone configuration, and provide your own base and vocab. See https://js.m-ld.org/interfaces/meldconfig.html#_context But I really like your ideas for using the domain as a resource, makes perfect sense. In fact I've identified a need for it myself, in the security project. I'm writing up my ideas right now but you can see a sneak preview here: https://github.com/m-ld/m-ld-security-spec/blob/main/design/img/agreement.class.svg 😎 Let's make a ticket in this repo... |
|
@gsvarovsky , what exactly is the difference between Now thinking about it, one could of course argue that Soooo, question is: Edit: Oh and I am all for IRI-style |
Uh oh!
There was an error while loading. Please reload this page.
It looks like a m-ld
@domainis always specified as a DNS-style name in the examples, but I couldn't find anything in the spec that explicitly said that that's a requirement. Is it allowed to be any string, or is it specifically meant to have a DNS-style form? The more I think about what it represents, the more I'd like to use an IRI there, as the domain feels to me akin to a graph and a resource. I think it would make sense to:I certainly wouldn't expect any of these to be requirements to use m-ld, but I think it could be valuable to have the option. If any string is allowed for the
@domain, then we essentially already have that option, I just don't see it guaranteed in the spec currently, and I don't want to violate an unwritten assumption and have stuff break down the road. 😃All reactions