Many thanks, Stephen! The query below works exactly as I was intending, cheers.


On 7 September 2012 02:11, Stephen Allen <[email protected]> wrote:
> Sigh.  One more time:
>
> PREFIX example: <http://example.org/>
>
> SELECT ?subj1 ?subj2
> WHERE
> {
>   ?subj1 example:pred ?obj1 .
>   ?subj2 example:pred ?obj1 .
>   FILTER (?subj1 != ?subj2)
>
>   MINUS
>   {
>     {
>       SELECT ?obj1 (COUNT(?obj1) as ?objOccurrences)
>       WHERE
>       {
>         ?s example:pred ?obj1 .
>       }
>       GROUP BY ?obj1
>     }
>     FILTER (?objOccurrences > 100)
>   }
> }

Reply via email to