Re: [Virtuoso-users] virtuoso sparql optional+filter bug?

2010-10-13 Thread Hugh Williams
Hi Greg, Thanks for reporting, we are looking into this ... Best Regards Hugh Williams Professional Services OpenLink Software Web: http://www.openlinksw.com Support: http://support.openlinksw.com Forums: http://boards.openlinksw.com/support Twitter: http://twitter.com/OpenLink On 13 Oct 2010, a

[Virtuoso-users] virtuoso sparql optional+filter bug?

2010-10-13 Thread Gregory Williams
I've run into what I believe is another bug in virtuoso's SPARQL implementation. Unless you've got some perverse RDF loaded into the database, this following query shouldn't return any variable bindings: SELECT * WHERE { OPTIONAL { [] ?f . FILTER(

Re: [Virtuoso-users] Reification alternative

2010-10-13 Thread Ivan Mikhailov
Aldo, On Wed, 2010-10-13 at 16:02 -0300, Aldo Bucchi wrote: > From the docs: > > "output:route: works only for SPARUL operators and tells the SPARQL > compiler to generate procedure names that differ from default. As a > result, the effect of operator will depend on application. That is for > tri

Re: [Virtuoso-users] Reification alternative

2010-10-13 Thread Aldo Bucchi
Hi Ivan, Hehe, I knew you were going to jump in, that's why I CC'd this to virtuoso-users ;) Before getting into the content of your response, let me just say this: I think Mirko's example is actually really common. Every application that I have built needs to keep track of ( at least ) two othe

Re: [Virtuoso-users] Reification alternative

2010-10-13 Thread Ivan Mikhailov
Hello Aldo, I'd recommend to keep RDF_QUAD unchanged and use RDF Views to keep n-ary things in separate tables. The reason is that the access to RDF_QUAD is heavily optimized, we've never "polished" any other table to such a degree (and I hope we will not :), and any changes may result in severe p

Re: [Virtuoso-users] Reification alternative

2010-10-13 Thread Aldo Bucchi
Hi Mirko, Here's a tip that is a bit software bound but it may prove useful to keep it in mind. Virtuoso's Quad Store is implemented atop an RDF_QUAD table with 4 columns (g, s, p o). This is very straightforward. It may even seem naive at first glance. ( a table!!? ). Now, the great part is tha

Re: [Virtuoso-users] missing results in construct query

2010-10-13 Thread Hugh Williams
Hi Jens, We are already looking into this issue and shall report back when we have an update/fix ... Best Regards Hugh Williams Professional Services OpenLink Software Web: http://www.openlinksw.com Support: http://support.openlinksw.com Forums: http://boards.openlinksw.com/support Twitter: http

Re: [Virtuoso-users] missing results in construct query

2010-10-13 Thread Jens Lehmann
Hello, On 11.10.2010 13:09, Jens Lehmann wrote: Hello, using the official DBpedia endpoint (http://dbpedia.org/sparql), I get missing results on this CONSTRUCT query: CONSTRUCT { ?p0 ?o0 . ?o0 ?p1 ?o1 .} WHERE {

Re: [Virtuoso-users] Graph IRI for an N3 file

2010-10-13 Thread Hugh Williams
Hi Sashi, If you upload to the rdf_sink folder which is created by default for registered dav/ods user account then you can query the RDF content for that user with a graph name of the form: http://host:port/DAV/home/username/rdf_sink/ So you don't include the actual file name ... Bes

Re: [Virtuoso-users] Graph IRI for an N3 file

2010-10-13 Thread Hugh Williams
Hi Sashi, The data is uploaded, the graph is visible from the RDF->Graph tab, and can be queried from the sparql endpoint: http://gf18.ucs.indiana.edu:8890/sparql?default-graph-uri=http%3A%2F%2Flocalhost%3A8890%2FDAV%2Fhome%2Fn3&should-sponge=&query=select+*+where+{%3Fs+%3Fp+%3Fo}&format=text%2