Dear All,
I was using the MINUS clause together with the TRANSITIVE option,
and I found an incorrect behavior.
1) I insert some triples as follow:
insert into <teste>
{
<GRANDFATHER> a owl:Class.
<FATHER> a owl:Class.
<SON> a owl:Class.
<SON> rdfs:subClassOf <FATHER>
<FATHER> rdfs:subClassOf <GRANDFATHER>
}
2) I list the owl:Class subjects
SELECT ?s
FROM <teste>
WHERE
{
?s a owl:Class.
}
s FATHER GRANDFATHER SON
3) I list the subClass of the subject <FATHER> with the TRANSITIVE option
enable
SELECT ?s
FROM <teste>
WHERE
{
?s rdfs:subClassOf <FATHER> OPTION (TRANSITIVE, t_distinct,
t_step('step_no') as ?n, t_min (0) ).
}
s FATHER SON
4) I applied the MINUS clause in order to obtain the owl:Class subject
"minus" the ones obtained in the query #3
SELECT ?s
FROM <teste>
WHERE
{
?s a owl:Class.
MINUS
{
?s rdfs:subClassOf <FATHER> OPTION (TRANSITIVE, t_distinct,
t_step('step_no') as ?n, t_min (0) ).
}
}
*Result: NONE*
*
*
I was expecting just *GRANDFATHER*
*
*
Am I doing something wrong?
*
*
Best Regards,
Percy