W3C home > Mailing lists > Public > public-linked-json@w3.org > February 2019

JSON-LD Framing

From: Angelo Veltens <angelo.veltens@online.de>
Date: Wed, 27 Feb 2019 11:56:48 +0100
To: Linked JSON <public-linked-json@w3.org>
Message-ID: <a0a27658-8ccc-e3c1-4634-c4e33a1078ef@online.de>
Hi all, I have a question regarding framing.

I have an input graph containing 2 Persons, and a frame for a Person
with a specific givenName and familyName. (perma-link below)

My expectation would be, that the result contains only the Person that
matches the example frame, but in fact, I get both Persons, just that
the Person, which does not match the frame has givenName and familyName
set to null.

Am I misunderstanding what framing is supposed to do?

Here is what I am doing  as a perma-link to the playground:

https://json-ld.org/playground/#startTab=tab-framed&json-ld=%7B%22%40context%22%3A%7B%22%40version%22%3A1.1%2C%22%40vocab%22%3A%22https%3A%2F%2Fschema.org%2F%22%7D%2C%22%40graph%22%3A%5B%7B%22%40id%22%3A%221%22%2C%22%40type%22%3A%22Person%22%2C%22name%22%3A%22John%20Doe%22%2C%22givenName%22%3A%22John%22%2C%22familyName%22%3A%22Doe%22%7D%2C%7B%22%40id%22%3A%222%22%2C%22%40type%22%3A%22Person%22%2C%22name%22%3A%22Jane%20Doe%22%2C%22givenName%22%3A%22Jane%22%7D%5D%7D&frame=%7B%22%40context%22%3A%7B%22%40version%22%3A1.1%2C%22%40vocab%22%3A%22https%3A%2F%2Fschema.org%2F%22%7D%2C%22%40type%22%3A%22Person%22%2C%22%40requireAll%22%3Atrue%2C%22givenName%22%3A%22John%22%2C%22familyName%22%3A%22Doe%22%7D&context=%7B%22%40context%22%3A%7B%22%40version%22%3A1.1%2C%22%40vocab%22%3A%22https%3A%2F%2Fschema.org%2F%22%7D%2C%22%40type%22%3A%22Person%22%2C%22%40requireAll%22%3Atrue%2C%22givenName%22%3A%22John%22%2C%22familyName%22%3A%22Doe%22%7D

Thanks in advance!

Kind regards,
Angelo



Received on Wednesday, 27 February 2019 10:57:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 27 February 2019 10:57:14 UTC