Memory leak in TDB using a single Dataset object

2016-02-03 Thread Jean-Marc Vanel
I have a repeating memory leak in TDB in my web application ( https://github.com/jmvanel/semantic_forms/blob/master/scala/forms_play/README.md ). It is caching RDF documents from internet, typically dbpedia ressources. It is not the use case described in "Fuseki/TDB memory leak for concurrent upda

Re: How to remove consistently a triple pattern given a SPARQL query?

2016-02-03 Thread Carlo . Allocca
Dear Andy and All, sorry for this long thread. I am sure I was not able to put in practice some of your suggestions. I put the full code here http://collabedit.com/wfhtq and reported below. I tested it over the Q1 with the triple (?boss ex:isBossOf ?ind). === BEFORE Q1: PREFIX rdfs:

VALUES block scope in Jena 3.0.1+

2016-02-03 Thread Osma Suominen
Hi, I've run into a problem involving a SPARQL query that takes parameters as a VALUES block (from the skos-history project [1]). The query works differently in Jena 3.0.1+ than it used to. I believe this may be related to variable scoping fixes made as part of JENA-1018. The original query

Re: VALUES block scope in Jena 3.0.1+

2016-02-03 Thread Andy Seaborne
Osma, Please try the reference query engine (add "--engine=ref" to the command line). It naively executes queries bottom up, with no optimization. At first look, ?type inside GRAPH is out of scope of the VALUES clause. So at: COALESCE(?type, ?defaulttype) ?type in undef The VALUE and GRAP

Re: VALUES block scope in Jena 3.0.1+

2016-02-03 Thread Osma Suominen
Hi Andy! Thanks for confirming my suspicion. I tried --engine=ref. With 3.0.1 the result doesn't change, i.e. ex:TypeA will still be used. With 3.0.0 the result changes into that as well. So the behavior is indeed caused by a perhaps inappropriate optimization in <3.0.1. I will move the VAL

Re: Memory leak in TDB using a single Dataset object

2016-02-03 Thread A. Soroka
> On Feb 3, 2016, at 5:13 AM, Jean-Marc Vanel wrote: > > In the documentation, > > https://jena.apache.org/documentation/tdb/tdb_transactions.html#multi-threaded-use > > it is not clear which use pattern is preferred and the reason why. The first pattern shows a single dataset object being sha

Re: Memory leak in TDB using a single Dataset object

2016-02-03 Thread Jean-Marc Vanel
I think that the second pattern "create a dataset object on the thread", or rather in my case "create a dataset object for one HTTP request" is worth trying. And I want to know why the doc seems to prefer the first pattern. 2016-02-03 18:30 GMT+01:00 A. Soroka : > > On Feb 3, 2016, at 5:13 AM, J

Re: Memory leak in TDB using a single Dataset object

2016-02-03 Thread Jean-Marc Vanel
I forgot to mention that I'm still using Jena 2.13.0 , due to Banana-RDF not having updated. 2016-02-03 18:43 GMT+01:00 Jean-Marc Vanel : > I think that the second pattern "create a dataset object on the thread", > or rather in my case > "create a dataset object for one HTTP request" > is worth

shiro.ini - Admin access to anyone?

2016-02-03 Thread Jason Levitt
How can I run fuseki 2.3.x on a remote server and allow full access to anyone who knows the IP address? This is all that's in my shiro.ini file: [urls] ## or to allow any access. /$/** = anon # Everything else /**=anon Anonymous users can go to http://xx.xx.xx.xx:3030 but they do not have

Re: Fuseki 2 & Cross Site Scripting (XSS) vulnerability

2016-02-03 Thread Andy Seaborne
On 02/02/16 14:03, Massimiliano Ricci wrote: Great!! When do you think to release Fuseki 2.4.0? Jena usually releases every 6 months. There's a dev build if you want to test before the release https://repository.apache.org/content/repositories/snapshots/org/apache/jena/ (make sure you get t

Re: Memory leak in TDB using a single Dataset object

2016-02-03 Thread Andy Seaborne
Hi there - "memory leak" has possible several meaning, not sure which you you mean: * RAM usage is growing? * Disk usage is growing? * a specific file (the journal is growing)? What is the pattern of transactions? (how many, do they overlap?) Andy On 03/02/16 17:47, Jean-Marc Vanel wr

Re: shiro.ini - Admin access to anyone?

2016-02-03 Thread Jason Levitt
Ok. For some reason there's a file named shiro.ini in the top-level directory but it is not used. The shiro.ini file that's used is in the "fun" directory. Why is there a shiro.ini file in the top-level directory if it is not used for anything? J On Wed, Feb 3, 2016 at 3:20 PM, Jason Levitt wro