ncbo / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
15 stars 6 forks source link

Conjuctive or disjunctive search queries #16

Open msalvadores opened 11 years ago

msalvadores commented 11 years ago

At the moment there is no support to choose conjunctive or disjunctive.

Any color that has blue AND white as code and maybe not only those values. Same as AND_INCLUSIVE:

 Color.search({:code => ["blue","white"]})

A color that contains blue OR white and no other values.

 Color.search({:code =>  [ ["blue","white"], OR_EXCLUSIVE ] })

Same for AND_EXCLUSIVE and OR_INCLUSIVE.