OR condition in edge property query

Hi all,

What is the syntax for adding an OR condition for edge property based queries. For example the below restricts source edges with property :HR.

:Pete a { :since 2010 } :Engineer ;
:worksAt { :source :HR } :Stardog

I need to add an "in" clause, like :source IN (:HR, :IT) but that syntax does not work


Hi Raj,

You can bind the value to a variable, eg { :source ?sourceVariable } and then FILTER(?sourceVariable IN(:HR, :IT)). Hope this helps.


1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.