Re: Possible bug with framing involving lists

It’s hard to see exactly what’s going on here, but it’s a consequence of using `”@embed”: “@none”` in the frame, as that prevents the values from being embedded.

Interestingly, if you remove it you get the embedded values, but add it back and you see different results; clearly the results should be consistent, perhaps @davidlehn might comment.

If you use it on my distiller (rdf.greggkellogg.net/ <http://rdf.greggkellogg.net/>) you do get consistent results. With @embed: @never, you get a value with just the blank-node @ids, The actual values don’t appear as they can’t be embedded and there is nothing else in the frame to match them.

Gregg Kellogg
gregg@greggkellogg.net

> On Jul 8, 2020, at 10:59 PM, John Walker <john.walker@semaku.com> wrote:
> 
> Hello,
>  
> I’m not entirely sure if this is a bug, but I observe some odd behavior when framing lists.
>  
> For example I have some properties with a list value, where that property is not present for on resource of a certain type.
>  
> https://json-ld.org/playground/#startTab=tab-framed&json-ld=%7B%22%40context%22%3A%7B%22%40vocab%22%3A%22http%3A%2F%2Fwww.w3.org%2Fns%2Fshacl%23%22%2C%22xone%22%3A%7B%22%40type%22%3A%22%40id%22%2C%22%40container%22%3A%22%40list%22%7D%7D%2C%22%40graph%22%3A%5B%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2Fa%22%2C%22%40type%22%3A%22PropertyShape%22%2C%22name%22%3A%22a%22%2C%22xone%22%3A%5B%7B%22%40id%22%3A%22_%3Abar%22%2C%22name%22%3A%22bar%22%7D%2C%7B%22%40id%22%3A%22_%3Abaz%22%2C%22name%22%3A%22baz%22%7D%5D%7D%2C%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2Fb%22%2C%22%40type%22%3A%22PropertyShape%22%2C%22name%22%3A%22b%22%2C%22xone%22%3A%5B%7B%22%40id%22%3A%22_%3Abaz%22%2C%22name%22%3A%22baz%22%7D%2C%7B%22%40id%22%3A%22_%3Abar%22%2C%22name%22%3A%22bar%22%7D%5D%7D%2C%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2Fc%22%2C%22%40type%22%3A%22PropertyShape%22%2C%22name%22%3A%22c%22%2C%22xone%22%3A%5B%5D%7D%2C%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2Fd%22%2C%22%40type%22%3A%22PropertyShape%22%2C%22name%22%3A%22d%22%7D%5D%7D&frame=%7B%22%40context%22%3A%7B%22%40vocab%22%3A%22http%3A%2F%2Fwww.w3.org%2Fns%2Fshacl%23%22%2C%22xone%22%3A%7B%22%40type%22%3A%22%40id%22%2C%22%40container%22%3A%22%40list%22%7D%7D%2C%22%40type%22%3A%22PropertyShape%22%2C%22xone%22%3A%7B%22%40embed%22%3A%22%40never%22%7D%7D <https://json-ld.org/playground/#startTab=tab-framed&json-ld=%7B%22%40context%22%3A%7B%22%40vocab%22%3A%22http%3A%2F%2Fwww.w3.org%2Fns%2Fshacl%23%22%2C%22xone%22%3A%7B%22%40type%22%3A%22%40id%22%2C%22%40container%22%3A%22%40list%22%7D%7D%2C%22%40graph%22%3A%5B%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2Fa%22%2C%22%40type%22%3A%22PropertyShape%22%2C%22name%22%3A%22a%22%2C%22xone%22%3A%5B%7B%22%40id%22%3A%22_%3Abar%22%2C%22name%22%3A%22bar%22%7D%2C%7B%22%40id%22%3A%22_%3Abaz%22%2C%22name%22%3A%22baz%22%7D%5D%7D%2C%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2Fb%22%2C%22%40type%22%3A%22PropertyShape%22%2C%22name%22%3A%22b%22%2C%22xone%22%3A%5B%7B%22%40id%22%3A%22_%3Abaz%22%2C%22name%22%3A%22baz%22%7D%2C%7B%22%40id%22%3A%22_%3Abar%22%2C%22name%22%3A%22bar%22%7D%5D%7D%2C%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2Fc%22%2C%22%40type%22%3A%22PropertyShape%22%2C%22name%22%3A%22c%22%2C%22xone%22%3A%5B%5D%7D%2C%7B%22%40id%22%3A%22http%3A%2F%2Fexample.com%2Fd%22%2C%22%40type%22%3A%22PropertyShape%22%2C%22name%22%3A%22d%22%7D%5D%7D&frame=%7B%22%40context%22%3A%7B%22%40vocab%22%3A%22http%3A%2F%2Fwww.w3.org%2Fns%2Fshacl%23%22%2C%22xone%22%3A%7B%22%40type%22%3A%22%40id%22%2C%22%40container%22%3A%22%40list%22%7D%7D%2C%22%40type%22%3A%22PropertyShape%22%2C%22xone%22%3A%7B%22%40embed%22%3A%22%40never%22%7D%7D>
>  
> In the framed output we see
>  
>     {
>       "@id": "http://example.com/d <http://example.com/d>",
>       "@type": "PropertyShape",
>       "name": "d",
>       "http://www.w3.org/ns/shacl#xone <http://www.w3.org/ns/shacl#xone>": null
>     }
>  
> Where I’d have expected
>  
>     {
>       "@id": "http://example.com/d <http://example.com/d>",
>       "@type": "PropertyShape",
>       "name": "d",
>       "xone": null
>     }
>  
> Is the observed behavior correct?
>  
> Regards,
>  
> John Walker
> Principal Consultant & co-founder
>  
> Semaku B.V. | Torenallee 20 (SFJ 3.065) | 5617 BC Eindhoven | T +31 6 42590072 | https://semaku.com/ <https://semaku.com/>
> KvK: 58031405 | BTW: NL852842156B01 | IBAN: NL94 INGB 0008 3219 95

Received on Thursday, 9 July 2020 21:45:34 UTC