I need a little help selecting the right triples from my store....
<a> a <type/1> .
<b> a <type/1> .
<c> a <type/1> .
<c> a <type/2> .
i want to select only elements which are type/1 and not type/2
What is the best way to achieve this using a sparql select query?
am looking for omething like:
select ?a where
{
?a a <type/1> .
!{ ?a a <type/2> }
}
Thanks,
:)
NOT EXISTS
as using a variable would also match the<type/1>
triples the first pattern found and result in filtering out all solutions – Richrichara