Re: [Virtuoso-users] Question for querying with a variable as a predicate?

2018-05-31 Thread Jason Koh
Hi Kingsely, Thanks for the kind reply. It works for me. I guess I was confused that subProperty should be transitive instead of making the target property a subproperty of a transitive property. Thanks. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Thu, May 31, 2018 at 7:05 AM, Kingsley

[Virtuoso-users] Question for querying with a variable as a predicate?

2018-05-23 Thread Jason Koh
http://example.com#> select ?s ?p ?o from where { ?p rdfs:subPropertyOf* :PropB. ?s ?p ?o. }; ``` But still it does not return anything. I am not sure if the query is valid in SPARQL or there is something I miss in Virtuoso. If there is anything that I can learn about, please let me know. Th

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

2018-05-15 Thread Jason Koh
ery without any inferences. Furthermore, RDFS does not have an assumption of using OWL (transitive property). If it is the only way, I will add the inference rule for the convenience, but just want to leave a note that it's an unexpected behavior. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On

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

2018-05-12 Thread Jason Koh
ass2. # returns all the tuples. I think correct. ?s :relation1 ?o. }; ``` This returns two tuples. Let me know if it's still unclear. Thank you! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Sat, May 12, 2018 at 2:20 PM, Kingsley Idehen wrote: > On 5/12/18 5:11 PM, Jason Koh wrote: &

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 n

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

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
ne and uncomment the second line, it returns the correct result with the two pairs. I believe those two queries should return the same result. Is this a bug or do I misunderstand something in the SPARQL? Thank you! With regar

Re: [Virtuoso-users] RDF4J's SAIL support? (or direct SHACL?)

2018-02-26 Thread Jason Koh
Thanks for the clarification! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Mon, Feb 26, 2018 at 3:06 AM, Hugh Williams wrote: > Hi Jason, > > We do not have plans to implement the low level SAIL API in our > RDF4J/Sesame provider. > > As you would have seen in https://g

Re: [Virtuoso-users] Inference support?

2018-02-23 Thread Jason Koh
Btw, equivalentClass is working. My code was looking for a different graph than the graph the rules were applied. Thanks! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Fri, Feb 23, 2018 at 4:45 PM, Jason Koh wrote: > Hi Kingsley, > > I did the same thing for my schema but it di

[Virtuoso-users] RDF4J's SAIL support? (or direct SHACL?)

2018-02-23 Thread Jason Koh
support of SHACL? Thank you! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm

Re: [Virtuoso-users] Inference support?

2018-02-23 Thread Jason Koh
tuoso 7.2.4.2. Thanks! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Fri, Feb 23, 2018 at 1:56 PM, Kingsley Idehen wrote: > On 2/22/18 10:33 PM, Jason Koh wrote: > > Just to provide my use case, > > I presumed if there is a graph like > > ```turtle > ex:a rdf:t

Re: [Virtuoso-users] Inference support?

2018-02-22 Thread Jason Koh
Just to provide my use case, I presumed if there is a graph like ```turtle ex:a rdf:type sch:Class1 . sch:Class1 owl:equivalentClass sch:Class2 . ``` . a query like this should work ```sparql select ?s where { ?s rdf:type sch:Class2 . } ``` Thanks! With regards, Jason Koh cseweb.ucsd.edu

[Virtuoso-users] Inference support?

2018-02-22 Thread Jason Koh
.openlinksw.com/virtuoso/virtuosotipsandtricksrdfschowlinfrl/. What is the exact keyword to use owl:equivalentClass like ``DEFINE input:same-as "yes"``? 2. And if I use inference instead of transitive search like ``rel:ancestorOf+``, is it faster? Thank you! With regards, Jason K

Re: [Virtuoso-users] No bif:match other than bif:contains?

2018-02-13 Thread Jason Koh
Hi Hugh, I will try that. Thanks for the suggestion! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Tue, Feb 13, 2018 at 3:17 AM, Hugh Williams wrote: > Hi Jason, > > No such bif:match function exists in Virtuoso ... > > You should be able to use a filter clause in c

[Virtuoso-users] No bif:match other than bif:contains?

2018-02-12 Thread Jason Koh
it does not use the same index as contains. Thanks! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm

Re: [Virtuoso-users] Query optimization, possible indexing?

2018-01-26 Thread Jason Koh
Hi Sergey, Yes, your suggestion works for me. I do not know which between Virtuoso and Jena is following the correct semantics of SPARQL, but I will follow the more constrained (~=precise) semantics of Virtuoso. Thank you! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Thu, Jan 25, 2018 at

Re: [Virtuoso-users] Query optimization, possible indexing?

2018-01-25 Thread Jason Koh
Hugh, Thanks for taking a look at this problem. It's been painful to me... Let me know once you get an idea on this or if you need any help from my side. Thanks! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Wed, Jan 24, 2018 at 3:34 PM, Hugh Williams wrote: > Hi Jason, > &g

Re: [Virtuoso-users] Query optimization, possible indexing?

2018-01-24 Thread Jason Koh
Jason Koh cseweb.ucsd.edu/~jbkoh On Tue, Jan 23, 2018 at 12:50 PM, Jason Koh wrote: > Forgot to clarify the configuration: > > Ubuntu 16.04 (64bit) > Virtuoso 7.2.4.2 > Virtuoso Jean: virt_jena3 > Virtuodo JDBC: virtjdbc4 > Java: openjdk version "1.8.0_151" > >

Re: [Virtuoso-users] Query optimization, possible indexing?

2018-01-23 Thread Jason Koh
Forgot to clarify the configuration: Ubuntu 16.04 (64bit) Virtuoso 7.2.4.2 Virtuoso Jean: virt_jena3 Virtuodo JDBC: virtjdbc4 Java: openjdk version "1.8.0_151" Thank you. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Tue, Jan 23, 2018 at 12:46 PM, Jason Koh wrote: > Here&#x

Re: [Virtuoso-users] Query optimization, possible indexing?

2018-01-23 Thread Jason Koh
.out.println("Done"); } ``` The value ``results`` is empty and this code does not print anything. I can make a regenerator. Let me know if that helps. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Tue, Jan 23, 2018 at 12:16 PM, Jason Koh wrote: > Hi Hugh, > > I inse

Re: [Virtuoso-users] Query optimization, possible indexing?

2018-01-23 Thread Jason Koh
. Let me verify the source of the problem once again and come back. Thank you! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Tue, Jan 23, 2018 at 3:17 AM, Hugh Williams wrote: > Hi Jason, > > What exactly is not working for you ? As the following works for me: > > SQL>

Re: [Virtuoso-users] Query optimization, possible indexing?

2018-01-23 Thread Jason Koh
o you have any ideas on this? Thank you! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Mon, Jan 22, 2018 at 2:52 PM, Kingsley Idehen wrote: > On 1/22/18 5:11 PM, Jason Koh wrote: > > Hi there, > > I am trying to use Virtuoso for metadata of city-scale sensor database.

[Virtuoso-users] Query optimization, possible indexing?

2018-01-22 Thread Jason Koh
with Redis or else, but I wonder if I can force indexing "name" properties in Virtuoso. Thank you! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh -- Check out the vibrant tech community on one of the world'