Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-15 Thread Kingsley Idehen
On 5/15/18 10:49 AM, Jason Koh wrote: > Hi Kingsley, > > I know how to use inference rules thanks to the documents and I use it > in other cases. But I don't know why I need inference in this case. I > don't necessarily need to suppress that subClassOf* into a subClassOf > with an inference and it'

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-15 Thread Jason Koh
Hi Kingsley, I know how to use inference rules thanks to the documents and I use it in other cases. But I don't know why I need inference in this case. I don't necessarily need to suppress that subClassOf* into a subClassOf with an inference and it's just a regular SPARQL query without any inferen

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-14 Thread Kingsley Idehen
On 5/12/18 5:38 PM, Jason Koh wrote: > Sorry I meant entity1 and entity 2 (not entity0 and entity1). And I > found a more obvious proof of it. > > > More obviously, if I run a query just with a/subClassOf*, it returns > the correct result. > ``` > sparql > prefix : > prefix rdfs:

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-12 Thread Jason Koh
I want to use the subClassOf* to find instances of any subclasses of class2 including itself. I guess example return values would make this case clearer. Before talking about the example, let me explain it in the high level first. Below two lines should be equal for my original graph. ?o a/rdfs:sub

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-12 Thread Kingsley Idehen
On 5/12/18 5:11 PM, Jason Koh wrote: > From https://www.w3.org/TR/sparql11-property-paths/, > /elt*/A path of zero or more occurrences of /elt/. > > > > > With regards, > Jason Koh > cseweb.ucsd.edu/~jbkoh You have: You have: ``` sparql prefix :

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-12 Thread Jason Koh
>From https://www.w3.org/TR/sparql11-property-paths/, *elt** A path of zero or more occurrences of *elt*. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Sat, May 12, 2018 at 2:10 PM, Jason Koh wrote: > Hi Kingsley, > > I put * path modifier, which should also match no subClassOf relationshi

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-12 Thread Jason Koh
Hi Kingsley, I put * path modifier, which should also match no subClassOf relationship pattern in my understanding. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Sat, May 12, 2018 at 1:57 PM, Kingsley Idehen wrote: > On 5/11/18 4:56 PM, Jason Koh wrote: > > Hi, > > I am using Virtuoso ope

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-12 Thread Kingsley Idehen
On 5/11/18 4:56 PM, Jason Koh wrote: > Hi, > > I am using Virtuoso opensource v7.2.4. I found that SPARQLs with > transitive relationships return partial results. Could you confirm > this behavior? Here are the reproducing ISQL queries. > > - Data insertion: > > ``` > sparql > prefix :

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-11 Thread Jason Koh
Correction: The current transitive relationship is commented out (which returns partial results) and the line without transitive relationship is uncommented (which return all results as I expected.) With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Fri, May 11, 2018 at 1:56 PM, Jason Koh wrote:

[Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-11 Thread Jason Koh
Hi, I am using Virtuoso opensource v7.2.4. I found that SPARQLs with transitive relationships return partial results. Could you confirm this behavior? Here are the reproducing ISQL queries. - Data insertion: ``` sparql prefix : prefix rdf: