goofballLogic / ld-query

Querying JSON-LD
MIT License
20 stars 6 forks source link

Attribute matching doesn't handle arrays #12

Closed gareth-robinson closed 7 years ago

gareth-robinson commented 7 years ago

I've noticed that attributes can be arrays e.g.

"@type": [
    "http://www.example.org#deleteOperation",
    "http://www.w3.org/ns/hydra/core#DeleteResourceOperation"
]

The current matching does not handle this.

gareth-robinson commented 7 years ago

I've created pull request https://github.com/goofballLogic/ld-query/pull/11 as a fix for this.

goofballLogic commented 7 years ago

I note that this is just for special cases - @type may be the only one. Normal properties can't have arrays - they would just turn into multi-valued properties http://tinyurl.com/zea4ysw

gareth-robinson commented 7 years ago

Covered as part of changes already committed