Re: [Virtuoso-users] PreparedStatement usage with Construct queries

2011-02-24 Thread Ivan Mikhailov
Hello Timo, I'm not an JDBC maintainer, but inequality "1http://virtuoso.openlinksw.com On Thu, 2011-02-24 at 19:32 +0200, Timo Westkämper wrote: > Hi. > > I am having troubles using CONSTRUCT queries with PreparedStatements. > > e.g. > > sparql define output:format '_JAVA_' > CONSTRUCT { ?s

[Virtuoso-users] PreparedStatement usage with Construct queries

2011-02-24 Thread Timo Westkämper
Hi. I am having troubles using CONSTRUCT queries with PreparedStatements. e.g. sparql define output:format '_JAVA_' CONSTRUCT { ?s ?p ?o } WHERE { `iri(??)` ?p ?o } LIMIT 1 throws Caused by: virtuoso.jdbc4.VirtuosoException: Index 1 is not 1

Re: [Virtuoso-users] Get a exact mapping for a date

2011-02-24 Thread Ivan Mikhailov
Hello Vanessa, An integer 1950 or date 1950-01-01 are not texts, so they're not in free-text index and thus invisible for CONTAINS free-text predicate. A possible way to make them visible that way is to introduce an additional RDF predicate that will contain objects of the "interesting" triples c

[Virtuoso-users] Get a exact mapping for a date

2011-02-24 Thread Vanessa Lopez
Hi all! I wonder how can I get an exact mapping for the literal "1950" using the following sparql query with bif:contains: WHY I CAN'T GET THE EXACT MAPPINGS FOR "1950" SELECT DISTINCT ?s ?o FROM WHERE {?s ?p ? o.FILTER( (?o, '"1950"') && isLiteral(?o) && ( str(?p) ! =

Re: [Virtuoso-users] Multiple connection to virtuoso?

2011-02-24 Thread Hugh Williams
Hi Hoan, Virtuoso has a JDBC driver so you can make as many connections as you want from Java. You asked this question regarding materialisation of RDFViews as physical triples last month and the following tip was created as a result: http://virtuoso.openlinksw.com/dataspace/dav/wiki/

Re: [Virtuoso-users] VirtGraph and storing string data

2011-02-24 Thread Hugh Williams
Abhi, On 22 Feb 2011, at 16:37, Abhi wrote: > I am using Virtuoso Jena provider to persist triples. > > Triple triple = new Triple(Node.createURI("foo"), Node.createURI("bar"), > Node.createLiteral("moo")); > virtGraph.add(triple); > > Now if I query the graph, conductor shows me > foo bar m