Re: Backing code for Fuseki *.html

2013-08-02 Thread Claude Warren
Lewis, It has been awhile since I was in this part of the code base but in the tpl you will find: [snip] #set( $ds = $mgt.dataset($request, ) ) #set( $srvQuery = $mgt.serviceQuery($ds) ) [snip] form action=${ds}/${srvQuery} method=GET accept-charset=UTF-8 [snip] so when the form is

Re: NPE when submitting query to Jena

2013-08-02 Thread Claude Warren
Lewis, I just responded to your later post so if you follow that look at where the dsRef is being constructed in the servlet configuration code. I expect that for some reason the dataset name is missing. Perhaps it is missing in your assembler file? Claude On Fri, Aug 2, 2013 at 12:06 AM,

Re: Backing code for Fuseki *.html

2013-08-02 Thread Lewis John Mcgibbney
Hi Claude, Thank you v much for taking time to source and explain this through to me. It is pretty late and I am going to pick it up tomorrow. I'll most likely post back then. Thanks Lewis On Thursday, August 1, 2013, Claude Warren cla...@xenei.com wrote: Lewis, It has been awhile since I was

Security Package (jena-security)

2013-08-02 Thread Claude Warren
I have contributed a Jena Security Package. This is a framework and implementation that wraps graphs and models in a security blanket. The security layer makes calls to a SecurityEvaluator (that must be implemented by the developer) to determine if the user has access to the data requested. The

convert SPARQL query to a query tree

2013-08-02 Thread Amin beyranvand
Hi I want to write an engine for processing SPARQL queries. i want to use jena to parse SPARQL queries and convert them to a internal form for my application. i can parse queries and convert them to query algebra using this code: Query q=QueryFactory.create(select ?s ?o where {?s ?p ?o });

Re: Backing code for Fuseki *.html

2013-08-02 Thread Andy Seaborne
On 02/08/13 00:58, Lewis John Mcgibbney wrote: Hi Andy, On Wed, Jul 24, 2013 at 12:32 AM, Andy Seaborne a...@apache.org wrote: Also I've never worked with .tpl files before... they look similar but I am not familiar... .tpl files are Velocity files. I decided to hide the technology used

Re: convert SPARQL query to a query tree

2013-08-02 Thread Andy Seaborne
On 02/08/13 08:55, Amin beyranvand wrote: Hi I want to write an engine for processing SPARQL queries. i want to use jena to parse SPARQL queries and convert them to a internal form for my application. i can parse queries and convert them to query algebra using this code: Query

Re: Which version of SDB goes with...

2013-08-02 Thread Andy Seaborne
On 01/08/13 23:08, Cindy A McMullen wrote: I'll check with our DB guys, but this is the list of jars they gave us. Oracle has its own implementation of the Jena adapter; we'd like to benchmark it against SDB using the same jars as they built with. 2.7.3 less than 2 months after 2.7.2 (bug

Re: convert SPARQL query to a query tree

2013-08-02 Thread Martynas Jusevičius
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 graphityhq.com On Fri, Aug 2, 2013 at 10:55 AM, Amin beyranvand amin_2...@yahoo.com wrote: Hi I want to write an engine

Re: NPE when submitting query to Jena

2013-08-02 Thread Andy Seaborne
https://issues.apache.org/jira/browse/JENA-497 The issue is that you are using sparql.html -- General SPARQL Service on the front page. It is a form to send a query to the server which is not associated with any datasets. You have to use Target graph URI or put FROM NAMED? in query and the

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

2013-08-02 Thread Holger Knublauch
Hi, I believe there is a regression bug somewhere between 2.7.2 and 2.10.2. See test case which works green in the old version but fails on the latest snapshot. I believe the cause is that TransformFilterImplicitJoin.testSpecialCaseUnused() incorrectly assumes it can ignore the whole query

Query Algebra

2013-08-02 Thread Amin beyranvand
I know how to parse a query with jena and convert it to a query algebra. but i don't know how to get triple patterns from the algebra and how to get query operators from it for evaluation. Example: i hava a query like this: PREFIX info:http://somewhere/peopleInfo# PREFIX vcard:

Re: Query Algebra

2013-08-02 Thread Andy Seaborne
On 02/08/13 13:48, Amin beyranvand wrote: I know how to parse a query with jena and convert it to a query algebra. but i don't know how to get triple patterns from the algebra and how to get query operators from it for evaluation. Example: i hava a query like this: PREFIX info:

Re: Which version of SDB goes with...

2013-08-02 Thread Cindy A McMullen
SDB is deprecated? Where in the docs might I have learned that? http://jena.apache.org/documentation/sdb/ Are there any other Jena frameworks that might support MySQL? On Aug 2, 2013, at 3:57 AM, Andy Seaborne wrote: On 01/08/13 23:08, Cindy A McMullen wrote: I'll check with our DB guys,

Re: Which version of SDB goes with...

2013-08-02 Thread Rob Vesse
See the thread from the users list back in June [1] I will update the website appropriately. Rob [1] http://mail-archives.apache.org/mod_mbox/jena-users/201306.mbox/%3c51B1A7FB .4070...@apache.org%3e On 8/2/13 8:26 AM, Cindy A McMullen cindy.mcmul...@oracle.com wrote: SDB is deprecated?

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

2013-08-02 Thread Rob Vesse
Holger This is down to a new optimizer in 2.10.2, however that optimizer is based off an existing optimizer that has been present in ARQ for a long time which makes the same assumption. So the following query would give the exact same behavior when used with initial bindings: ASK { FILTER

Jena SPARQL Insert - Fuseki Best Practice

2013-08-02 Thread Iain Ritchie
Hello, I am trying to insert small tens of thousands of triples into a Fuseki server running in memory. After 10 thousand or so inserts I start to get sporadic exceptions, which become more frequent as the number of inserts increase: org.apache.jena.atlas.AtlasException: