Re: [Virtuoso-users] Retrieve triples for list of entities

2010-03-23 Thread Alexander Sidorov
Sorry Sebastian. I was wrong about scopes. Generally looks like a bug. 2010/3/23 Sebastian Hellmann > Hi Alex, > > Am 23.03.2010 12:25, schrieb Alexander Sidorov: > > Hi Sebastian, > > > I think the first query doesn't work because you are trying to filter first > subquery variable in the scope

Re: [Virtuoso-users] Virtuoso full text tokenizer customization

2010-03-23 Thread Ivan Mikhailov
Hello Sebastian, > this sounds like quite a lot of effort and additional storage space. I > am not sure if the problem is worth it. > In any case, could you point me towards documentation on the matter so I > can evaluate it? http://docs.openlinksw.com/virtuoso/cinterface.html#langfuncapi The doc

Re: [Virtuoso-users] Virtuoso full text tokenizer customization

2010-03-23 Thread Sebastian Trüg
Hi Ivan, this sounds like quite a lot of effort and additional storage space. I am not sure if the problem is worth it. In any case, could you point me towards documentation on the matter so I can evaluate it? Cheers, Sebastian On 03/23/2010 04:48 PM, Ivan Mikhailov wrote: > Hello Sebastian, >

Re: [Virtuoso-users] Virtuoso full text tokenizer customization

2010-03-23 Thread Ivan Mikhailov
Hello Sebastian, Yes, tokenizers are pluggable (as well as descriptions of funny multicharacter encodings). In the default language, named "x-any", the dot does not act as a delimiter if it appears between chars or numbers. It is possible to create some other language or tweak this (and rebuild th

[Virtuoso-users] Virtuoso full text tokenizer customization

2010-03-23 Thread Sebastian Trüg
Is there any way to influence the tokenizer for the Virtuoso full text indexer? The issue is that a dot does not act as a token divider. For an example see the bug report: http://bugs.kde.org/show_bug.cgi?id=231549 Thanks, Sebastian Trueg

Re: [Virtuoso-users] Querying on all the data in the triple store

2010-03-23 Thread Tim Haynes
Rameswara Sashi Kiran Challa wrote: Thanks Tim. Could you please direct me to any documentation that has methods showing how to programmatically set virt:rdf_graph and virt:rdf_sponger properties. Probably best: http://docs.openlinksw.com/virtuoso/fn_dav_api_change.html see dav_prop_set(),

Re: [Virtuoso-users] Retrieve triples for list of entities

2010-03-23 Thread Sebastian Hellmann
Hi Alex, Am 23.03.2010 12:25, schrieb Alexander Sidorov: Hi Sebastian, I think the first query doesn't work because you are trying to filter first subquery variable in the scope of second subquery. Could you please you elaborate this? Is there an implicit scope not defined by brackets? I w

Re: [Virtuoso-users] Querying on all the data in the triple store

2010-03-23 Thread Rumi Tsekova
Hi Sashikiran, You can take a look at these docs: http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtuosoRDFSinkFolder http://ods.openlinksw.com/dataspace/dav/wiki/ODS/ODSRDFSinkFolder Best Regards, Rumi - Original Message - From: Rameswara Sashi Kiran Challa To: tim.ha

Re: [Virtuoso-users] Querying on all the data in the triple store

2010-03-23 Thread Rameswara Sashi Kiran Challa
Thanks Tim. Could you please direct me to any documentation that has methods showing how to programmatically set virt:rdf_graph and virt:rdf_sponger properties. When you said browser, did you mean that I need to do it on the condutor ? Thanks Regards Sashikiran On Mon, Mar 22, 2010 at 8:24 AM, T

Re: [Virtuoso-users] Retrieve triples for list of entities

2010-03-23 Thread Alexander Sidorov
I have looked through plenty of Virtuoso documentation articles and blogposts and haven't found any IN usage with subqueries. Is it possible? 2010/3/23 Ivan Mikhailov > Hello Alexander, > > > Let's imagine we have a list of entities uris' as input and we need to > retrieve all triples for each e

Re: [Virtuoso-users] Retrieve triples for list of entities

2010-03-23 Thread Alexander Sidorov
Hi Sebastian, I think the first query doesn't work because you are trying to filter first subquery variable in the scope of second subquery. Regards, Alexander 2010/3/23 Sebastian Hellmann > Hello, > the IN is very fast and I would recommend to anyone using it. > btw. will IN be a part of the

Re: [Virtuoso-users] Retrieve triples for list of entities

2010-03-23 Thread Sebastian Hellmann
Hello, the IN is very fast and I would recommend to anyone using it. btw. will IN be a part of the next SPARQL recommendation? I have just a short question (tested on dbpedia): SELECT DISTINCT ?subject { { ?subject a ?expanded0 } UNION { ?subject a ?expanded1 } FILTER ( ?expanded0 IN (

Re: [Virtuoso-users] Retrieve triples for list of entities

2010-03-23 Thread Alexander Sidorov
Hi Ivan, Thank you! I should guess by analogy with SQL... Does IN operator work with subqueries? I have the following query: SELECT DISTINCT ?s ?p ?o FROM WHERE { ?s ?p ?o FILTER ( ?s in ( ( SELECT DIST

Re: [Virtuoso-users] Retrieve triples for list of entities

2010-03-23 Thread Ivan Mikhailov
Hello Alexander, > Let's imagine we have a list of entities uris' as input and we need to retrieve all triples for each entity. > Is there any way to execute it using one query? We have an IN operator extension: select ?p ?o where { ?s ?p ?o . filter (?s in (, , ... ) ) } Best Regards,

[Virtuoso-users] Retrieve triples for list of entities

2010-03-23 Thread Alexander Sidorov
Hello! Let's imagine we have a list of entities uris' as input and we need to retrieve all triples for each entity. The brute force solution is to process entities one by one executing the following query n times: select ?p ?o where { ?p ?o } N = 0..n But it looks very inefficient. Is there

Re: [Virtuoso-users] DESCRIBE in Virtuoso 5 and 6

2010-03-23 Thread Ivan Mikhailov
Hello Magnus, > Are there any changes in the implementation of what’s returned from a > DESCRIBE-query in Virtuoso 5 and 6? I don't remember any intentional changes, except adding new two additional modes, available with DEFINE sql:describe-mode "CBD" and DEFINE sql:describe-mode "SPO" (see http: