goofballLogic / ld-query

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

Implementation of attribute querying #9

Closed gareth-robinson closed 8 years ago

gareth-robinson commented 8 years ago

This is an implementation of querying by attribute e.g. "ex:favouriteReads[@index=banks-exc] @id" - it splits the string into either path or 'where' objects and recurses through the input document to pick out children that match.

This branch also allows @index and @id to be returned as final (in addition to @value) and fixes a test that is broken in master.

goofballLogic commented 8 years ago

Fixes #5 Fixes #10

goofballLogic commented 8 years ago

@gareth-robinson this version is now released as 0.1 on npm: https://www.npmjs.com/package/ld-query