W3C home > Mailing lists > Public > public-linked-json@w3.org > June 2018

Re: expansion algorithm

From: Gregg Kellogg <gregg@greggkellogg.net>
Date: Sat, 23 Jun 2018 11:16:56 -0700
Cc: Linked JSON <public-linked-json@w3.org>
Message-Id: <630190E3-51DE-4A1E-919F-DCF308CBC766@greggkellogg.net>
To: Dorian Taylor <dorian.taylor.lists@gmail.com>
> On Jun 22, 2018, at 2:40 PM, Dorian Taylor <dorian.taylor.lists@gmail.com> wrote:
>> On Jun 22, 2018, at 2:22 PM, Gregg Kellogg <gregg@greggkellogg.com> wrote:
>> Any such inference is at the RDFS layer. For processing, you may find it easier to coerce most things to arrays, but that’s up to your implementation.
> Got it. I really should have said something like “term which ought to expand to an IRI which under typical downstream circumstances would be expected to refer to an rdfs:Class or subclass thereof” but I thought it a bit too lawyery. I see that § asserts that the value associated with `@type` should be a string or array of strings.

That’s properly pedantic!

>> Sounds about right.
> Thanks; I think writing out my own bullet-list interpretation also helped me understand what’s going on here. By my reading, if you specify `@type` in a hash/dictionary/whatever, and that type has its own context, then by all rights the other members of the hash should be evaluated with the amalgamation of those contexts. If there is more than one context, then any clobbering that might happen will happen in lexical order.

Yes, although “clobbering” may be a bit harsh, as you wouldn’t normally expect scoped contexts to interfere with each other.

> Does this mean that the keys in the § loop should also be sorted lexically?

Yes, keys should be sorted; I thought there was an issue for this, but I don’t see it, nor do I see such text in the spec. In the expansion algorithm, sort expanded values of `@type` lexicographically when applying scoped contexts. In compaction, sort lexicographically on compacted IRI to apply scoped contexts.

I’ll make sure the WG gets an issue for this.


> --
> Dorian Taylor
> Make things. Make sense.
> https://doriantaylor.com
Received on Saturday, 23 June 2018 18:17:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:52 UTC