w3c / json-ld-framing

JSON-LD 1.1 Framing Specification
https://w3c.github.io/json-ld-framing/
Other
24 stars 20 forks source link

How to use specific value inside a frame to filter out credentials those do not contain that value #147

Open vanuverma opened 1 year ago

vanuverma commented 1 year ago

This is more of a question instead of an issue.

I was reading the doc here https://www.w3.org/TR/json-ld11-framing/#matching-on-values. In this section, the Frame "location": {"@value": {}, "@language": "el-Latn"}, was used to match the language from the following section "location": [ {"@value": "Athens", "@language": "en"}, {"@value": "Αθήνα", "@language": "grc"}, {"@value": "Athína", "@language": "el-Latn"} ],

I was wondering if it is possible to define the frame like this "location": {"@value": "Athens", "@language": {}}, and whether it would return "location": {"@value": "Athens", "@language": "en"}, from the above location array.

And if I use a frame like this "location": {"@value": "Sydney", "@language": {}},, then it WILL NOT return anything from the above location array (something similar to a db query where we don't return the records those do not match the filter criteria)

Is my understanding correct? Can someone please advise on this?