openworm / owmeta-core

Core library for owmeta
MIT License
3 stars 2 forks source link

Add support for querying for alternatives in property values #42

Open mwatts15 opened 2 years ago

mwatts15 commented 2 years ago

DataObject properties currently have an implicit "AND" for queries: all values associated with the property have to be in the graph for a match. It would be good to have an ability to query for alternative values -- to have an "OR"-type behavior. This would allow for fewer queries to be made in several cases: currently you'd just have to make the query multiple times with different values set or else drop down to a Graph.triples_choices()