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: 3647000

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 s

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 wrote: > Thank you very much - I just missed the quotation. > > INSERT DATA { <_:364370962336464896> "value" } > > Fuseki now seems to g

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 wrote: > Thank you

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 requi

Re: Access list values in rules

2013-08-05 Thread Dave Reynolds
On 05/08/13 21:41, Igor Brussilowski wrote: 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

Re: jena framework performance

2013-08-05 Thread Dave Reynolds
On 05/08/13 14:15, Martin Vassilev wrote: 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 I assume you mean OWL 2, if I recall correctly th

Re: Jena - rule engine agenda

2013-08-05 Thread Dave Reynolds
On 04/08/13 15:49, Gibson, Michael Scott wrote: Hi there, I'm working on a project where I would like to know which rules can and cannot be fired depending if they can be satisfied and to perform further processing on the "cannot fire" rules. I've settled on using Jena because it offers an "a

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 will

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 Downloa

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: 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 slee

Re: Help required to load dbpedia data into Jena

2013-08-05 Thread Andy Seaborne
> Can someone please suggest as to how can I get rid of this error. > > One of the ways is to clean the data in such a manner such that Jena > accepts. However, I dont want to adopt this approach. Is there some other > approach which is available? Upgrade to TDB to that in Jena 2.10.1 (which is T

Jena Text Search Help

2013-08-05 Thread Brad Moran
I have an existing Jena TDB based on this example RDF: http://rdf.cdisc.org/sdtm-1-2/schema#Classifier.SynonymQualifier"/> http://www.w3.org/2001/XMLSchema#boolean"; >true http://www.w3.org/2001/XMLSchema#positiveInteger"; >2 http://www.w3.org/2001/XMLSchema#string";

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       

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-distribution. On executing the following command I am getting the error given belo

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 wrote: > Note that OFF

Re: Access list values in rules

2013-08-05 Thread Joshua TAYLOR
On Mon, Aug 5, 2013 at 9:02 AM, Igor Brussilowski 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 further processing, e.g.

Re: Replacement for UpdateProcessor.setInitialBindings?

2013-08-05 Thread Joshua TAYLOR
On Mon, Aug 5, 2013 at 8:39 AM, Holger Knublauch wrote: > > 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 hav

Re: Blank Node Syntax

2013-08-05 Thread Iain Ritchie
Thank you very much - I just missed the quotation. INSERT DATA { <_:364370962336464896> "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 mul

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" wrote: > >On Aug 5, 2013, at 6:28 PM, Andy Seaborne wrote: >>> I cannot use Parameterize

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" wrote: >On 8/3/2013 23:09, Andy Seaborne wrote: >> Please file a JIRA for this and attach the test case. >

Re: Poor performance with OFFSET

2013-08-05 Thread Rob Vesse
Note that OFFSET is implemented internally by having to iterate over all the unnecessary solutions first. So if you have OFFSET 1 then the query engine has to generate and discard 10,000 possible solutions before it starts returning actual solutions. As OFFSET increases the time this takes in

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> "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 Ri

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 {?ob

Blank Node Syntax

2013-08-05 Thread Iain Ritchie
Hello, I wonder if someone might be able to verify that I am dealing with blank node insertion correctly. When inserting a blank node through the Fuseki web UI I issue the update query as follows: INSERT DATA { <_BN364371295477055489> } The blank node is t

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.

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 obje

Re: Poor performance with OFFSET

2013-08-05 Thread Olivier Rossel
Could you please try a query like this: SELECT DISTINCT * WHERE { { SELECT ?object WHERE {?object a mmx:Object } LIMIT 12 OFFSET 1 } . ?object mmx:accessionNumber ?accessionNumber . ?object rdfs:label ?label . OPTIONAL { ?object mmx:preferredAsset ?asset . ?asset a mmx:Asset . ?asset dcterms:

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 . OPT

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 wrote: > After a long and tortuous exploration I find the following: > > Standard Jena XSDData

Re: Pinpointing Fuseki results stream in Eclipse

2013-08-05 Thread Andy Seaborne
On 05/08/13 04:39, Lewis John Mcgibbney wrote: The magic happens in SPARQL_Query#sendResults(HttpAction action, SPARQLResult result, Prologue qPrologue) ... if ( result.isResultSet() ) ResponseResultSet.doResponseResultSet(action, result.getResultSet(), qPrologue) ; which e

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 a

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

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 wrote: > 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/ > > Martynas > graphity

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 va

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 functi