Re: Replacement for UpdateProcessor.setInitialBindings?

2013-08-05 Thread Andy Seaborne
On 05/08/13 04:12, Holger Knublauch wrote: On 8/2/2013 0:12, Andy Seaborne wrote: On 01/08/13 01:52, Holger Knublauch wrote: I am upgrading our code base to the latest Jena snapshot, and noticed that UpdateProcessor.setInitialBindings is no longer around. What is the replacement for this

Re: Replacement for UpdateProcessor.setInitialBindings?

2013-08-05 Thread Holger Knublauch
On Aug 5, 2013, at 6:28 PM, Andy Seaborne wrote: I cannot use ParameterizedSparqlString because it does not handle blank nodes correctly. The previous implementation using initial bindings supported this, because it didn't have to go through the string syntax. Now, when I pre-bind a variable

Re: convert SPARQL query to a query tree

2013-08-05 Thread Olivier Rossel
SPIN now has an Apache 2.0 licence ! ! ! ! On Fri, Aug 2, 2013 at 11:57 AM, Martynas Jusevičius marty...@graphity.orgwrote: Also consider SPIN from TopQuadrant. SPIN can represent SPARQL as RDF. There is a vocabulary and API: http://spinrdf.org/spin.html http://topbraid.org/spin/api/

Access list values in rules

2013-08-05 Thread Igor Brussilowski
Hi all,   I'm looking for how to access list items in a reasoner rule. E.g the pattern (?S owl:kasKey ?L) returns a list of all matching objects. Is there any way to access here the elements of the list for further processing, e.g. to print them all out?   Thanks Igor

jena framework performance

2013-08-05 Thread Martin Vassilev
Hi all, I would like to ask you a few questions about Jena. I read in the documentation that *Note:* Although OWL version 1.1 is now a W3C recommendation, Jena's support for OWL 1.1 features is limited 1. Can you tell me what exactly is not supported (or what is supported) from the OWL 1.1

Re: Strange Results

2013-08-05 Thread Claude Warren
The issue was an annotation library that was resetting the class returned by TypeMapper for xsd:string. Fixing the annotation library solved the problem. On Sun, Aug 4, 2013 at 4:09 PM, Claude Warren cla...@xenei.com wrote: After a long and tortuous exploration I find the following:

Poor performance with OFFSET

2013-08-05 Thread Tristan Roddis
We have a data set with around 160,000 triples corresponding to an mmx:Object, and I am executing the following query to select data from these at various offsets: SELECT DISTINCT * WHERE { ?object a mmx:Object . ?object mmx:accessionNumber ?accessionNumber . ?object rdfs:label ?label .

Fuseki and SDB

2013-08-05 Thread Paul Taylor
Hello, I have been working with Fuseki and TDB for quite some time, however this weekend I have been trying to setup Fuseki with SDB. In particular, I have my application to open a connection to a local MySQL server and then to create a new database called sdb_data. Then I create a Store

Re: Jena SPARQL Insert - Fuseki Best Practice

2013-08-05 Thread Iain Ritchie
Hi, In answer to your questions: - Fuseki build 0.2.7 - Yes the strack trace was from the client, no errors visible from the server - OS is Windows, with client and Fuseki running on the same machine. I worked around this issue by introducing a small sleep between inserts as you also suggested.

Re: Poor performance with OFFSET

2013-08-05 Thread Tristan Roddis
Thanks, Olivier: that did the trick! I tweaked it slightly as not all objects have a rdfs:label populated, and I need to keep that restriction. But using this query the maximum execution time drops to around 700ms: SELECT DISTINCT * WHERE { { SELECT ?object ?label ?accessionNumber WHERE

Re: Blank Node Syntax

2013-08-05 Thread Rob Vesse
The syntax for inserting a blank node requires a _: as the scheme I.e. INSERT DATA { _:ID http://pred value } Otherwise you have just used a relative URI and the server resolves it against a default base URI of http://example/update-base Hope this helps, Rob On 8/5/13 9:16 AM, Iain Ritchie

Re: SPARQL optimizer does not consider pre-bound variables, creates wrong query

2013-08-05 Thread Rob Vesse
Holger Yes that more common case you've identified would be affected so switching this optimizer off until we've resolved this is the way to go Rob On 8/4/13 6:05 PM, Holger Knublauch hol...@knublauch.com wrote: On 8/3/2013 23:09, Andy Seaborne wrote: Please file a JIRA for this and attach

Re: Replacement for UpdateProcessor.setInitialBindings?

2013-08-05 Thread Rob Vesse
pss.setIri(node, _:blankNodeID); As Andy states the IRI scheme _: is treated as referring to blank nodes in the data rather than creating a temporary variable Rob On 8/5/13 5:39 AM, Holger Knublauch hol...@knublauch.com wrote: On Aug 5, 2013, at 6:28 PM, Andy Seaborne wrote: I cannot use

Re: Blank Node Syntax

2013-08-05 Thread Iain Ritchie
Thank you very much - I just missed the quotation. INSERT DATA { _:364370962336464896 http://pred value } Fuseki now seems to generate the blank nodes _:b0 _:b1..._:bn thus replacing the original ID specified. I now notice that when executing the following query via the web interface multiple

Re: Access list values in rules

2013-08-05 Thread Joshua TAYLOR
On Mon, Aug 5, 2013 at 9:02 AM, Igor Brussilowski igor.brussilow...@yahoo.de wrote: Hi all, I'm looking for how to access list items in a reasoner rule. E.g the pattern (?S owl:kasKey ?L) returns a list of all matching objects. Is there any way to access here the elements of the list for

Re: Poor performance with OFFSET

2013-08-05 Thread Olivier Rossel
Please note that such a query does not sort mmx:Objects in the inner select. I have no idea of the performances drop if you add that requirement. BTW, is it possible to create an index on (for example) rdfs:label of mmx:Objects? On Mon, Aug 5, 2013 at 6:40 PM, Rob Vesse rve...@yarcdata.com

Help required to load dbpedia data into Jena

2013-08-05 Thread Rose Beck
Hi, I am trying to load dbpedia 3.7 into jena-tdb-0.9.0-incubating-distributionhttps://repository.apache.org/content/repositories/releases/org/apache/jena/jena-tdb/0.9.0-incubating/jena-tdb-0.9.0-incubating-distribution.tar.gz. On executing the following command I am getting the error given

Re: Access list values in rules

2013-08-05 Thread Igor Brussilowski
Hi, thank you for reply. I sure know all these builtin functions but I'm not sure that they pass to my case. May be I have to describe the scenario in more details. Here pseudo code: given (?s hasList ?list) if for all ?p in ?list     (?s1 ?p ?o1) (?s2 ?p ?o2) equal(?o1 ?o2) then       

Jena Text Search Help

2013-08-05 Thread Brad Moran
I have an existing Jena TDB based on this example RDF: mms:DataElement rdf:ID=DE.Intervention.--MODIFY sdtms:dataElementRole rdf:resource= http://rdf.cdisc.org/sdtm-1-2/schema#Classifier.SynonymQualifier/ sdtms:supportedBySEND rdf:datatype= http://www.w3.org/2001/XMLSchema#boolean;

Re: Jena SPARQL Insert - Fuseki Best Practice

2013-08-05 Thread Andy Seaborne
On 05/08/13 17:04, Iain Ritchie wrote: Hi, In answer to your questions: - Fuseki build 0.2.7 - Yes the strack trace was from the client, no errors visible from the server - OS is Windows, with client and Fuseki running on the same machine. I worked around this issue by introducing a small

Re: Help required to load dbpedia data into Jena

2013-08-05 Thread Rose Beck
I installed Jena using http://www.nopash.com/2012/04/installing-jena-tdb-and-joseki-on.html tutorial. Can you please suggest how can I upgrade Jena. Do I have to install Jena from Scratch or is there a command for the same? I am a novice. Please help On Tue, Aug 6, 2013 at 2:32 AM, Andy Seaborne

Re: Help required to load dbpedia data into Jena

2013-08-05 Thread Andy Seaborne
On 05/08/13 22:14, Rose Beck wrote: I installed Jena using http://www.nopash.com/2012/04/installing-jena-tdb-and-joseki-on.html tutorial. Can you please suggest how can I upgrade Jena. Do I have to install Jena from Scratch or is there a command for the same? I am a novice. Please help

Re: Poor performance with OFFSET

2013-08-05 Thread Andy Seaborne
There is even a fast front end cache for SPARQL https://svn.apache.org/repos/asf/jena/Experimental/sparql-cache/ that executes the query once then uses the precomputed results for LIMIT/OFFSET. It preserves the order so you get pseudo-paging. But this code is not part of the release and

Re: Which version of SDB goes with...

2013-08-05 Thread Cindy A McMullen
Thanks, Andy. What can you project about the lifetime of TDB, then, assuming we choose it as a technology? On Aug 3, 2013, at 6:50 AM, Andy Seaborne wrote: Cindy, We do not recommend SDB for new uses. We recognize that in some situations, the use of existing SQL databases is a

Re: Blank Node Syntax

2013-08-05 Thread David Moss
That looks like normal behavior to me. Inserting a triple with a blank node as a subject means: Create a new thing with a predicate of this and an object of that, and make up a label for the subject yourself. DMV Sent from my iPhone On 06/08/2013, at 3:46 AM, Iain Ritchie

Re: Blank Node Syntax

2013-08-05 Thread David Moss
There is a good discussion of bnodes at https://forums.oracle.com/thread/405401 Sent from my iPhone On 06/08/2013, at 3:46 AM, Iain Ritchie iainritc...@gmail.com wrote: Thank you very much - I just missed the quotation. INSERT DATA { _:364370962336464896 http://pred value } Fuseki now

Re: Replacement for UpdateProcessor.setInitialBindings?

2013-08-05 Thread Holger Knublauch
On 8/6/2013 2:54, Rob Vesse wrote: pss.setIri(node, _:blankNodeID); This appears to work better - it now correctly matches the triples in the WHERE clause. But now the INSERT is not correct. See test case, which creates the inverse of a triple involving a blank node. TemplateLib.subst seems

Is the exceptions states that my datastore is corrupted ?

2013-08-05 Thread nadav hoze
please help, we got this exception while trying to pull data from our datstore in production: com.hp.hpl.jena.tdb.index.bplustree.BPTreeException: Record [3a86470d] not in this page: BPTreeRecords[id=140147, link=140164]: Len=170 Max=341: