Re: How to check if a graph is a sub-set of another graph?

2012-07-02 Thread Stephen Allen
On Mon, Jul 2, 2012 at 12:36 AM, Holger Knublauch hol...@knublauch.com wrote: Hi all, I am aware of Graph.isIsomorphicWith, but I need a function that tests whether Graph A is a sub-set of Graph B, including the ability to map bnodes into each other. Does that exist in Jena? How about: ask

Re: How to check if a graph is a sub-set of another graph?

2012-07-02 Thread Stephen Allen
On Mon, Jul 2, 2012 at 3:27 AM, Dave Reynolds dave.e.reyno...@gmail.com wrote: On 02/07/12 11:07, Holger Knublauch wrote: On 7/2/2012 18:47, Stephen Allen wrote: On Mon, Jul 2, 2012 at 12:36 AM, Holger Knublauch hol...@knublauch.com wrote: Hi all, I am aware of Graph.isIsomorphicWith

Re: ARQ doesn't support BINDINGS?

2012-07-02 Thread Stephen Allen
BINDINGS has been replaced with VALUES in the latest version of Jena. You should be able to simply change BINDINGS to VALUES, and your query would then work. See the SPARQL 1.1 Editor's Draft [1]. -Stephen [1] http://www.w3.org/2009/sparql/docs/query-1.1/rq25.xml#inline-data On Mon, Jul 2,

Re: I need to get the root element of a ontology

2012-07-05 Thread Stephen Allen
It might be helpful to include all of the release notes (Jena, ARQ, TDB) in the Fuseki binary distribution, as a lot of the improvements occur there but are not immediately visible to people using just the Fuseki distribution. -Stephen On Thu, Jul 5, 2012 at 2:06 PM, Andy Seaborne

Re: Slightly OT: recommendations for stand-alone SPARQL query builder

2012-08-20 Thread Stephen Allen
Have you looked at SparQLed [1]? I haven't tried to deploy this against my own data, but I have played around with it on their site and it seems pretty cool. -Stepehen [1] http://sindicetech.com/sindice-suite/sparqled/ On Mon, Aug 20, 2012 at 5:12 AM, cliff palmer palmercl...@gmail.com

Re: com.hp.hpl.jena.query.QueryExecution.close()

2012-08-24 Thread Stephen Allen
I've actually been looking into this recently. Comments inline. On Fri, Aug 24, 2012 at 9:23 AM, Jeremy Carroll jer...@topquadrant.com wrote: I am trying to clarify the contract for this method. The documentation is: /** Close the query execution and stop query evaluation as soon as

Re: com.hp.hpl.jena.query.QueryExecution.close()

2012-08-24 Thread Stephen Allen
On Fri, Aug 24, 2012 at 10:53 AM, Stephen Allen sal...@apache.org wrote: I've actually been looking into this recently. Comments inline. On Fri, Aug 24, 2012 at 9:23 AM, Jeremy Carroll jer...@topquadrant.com wrote: I am trying to clarify the contract for this method. The documentation

Re: scope of transaction in Fuseki for SPARQL UPDATE

2012-08-24 Thread Stephen Allen
On Fri, Aug 24, 2012 at 11:42 AM, Bill Roberts b...@swirrl.com wrote: With Fuseki, if I send a SPARQL UPDATE to the 'update' endpoint that contains more than one operation, eg DELETE {…pattern…} WHERE {…} ; INSERT DATA { …some triples…} what is the scope of the transaction? Does it

Re: com.hp.hpl.jena.query.QueryExecution.close()

2012-08-27 Thread Stephen Allen
...@yarcdata.com wrote: On 8/26/12 11:18 AM, Andy Seaborne a...@apache.org wrote: On 24/08/12 18:53, Stephen Allen wrote: Currently it is a). You MUST close the QueryExecution object. Especially in the case that you are using QueryEngineHTTP (if you do not close this, then it leaves a connection

Re: com.hp.hpl.jena.query.QueryExecution.close()

2012-08-27 Thread Stephen Allen
On Mon, Aug 27, 2012 at 10:14 AM, Damian Steer d.st...@bristol.ac.uk wrote: On 27 Aug 2012, at 17:17, Rob Vesse rve...@yarcdata.com wrote: On 8/26/12 11:18 AM, Andy Seaborne a...@apache.org wrote: And on a related note, I wonder if execSelect or even deeper in HttpQuery.exec should read the

Re: Fuseki NOT IN example

2012-09-06 Thread Stephen Allen
) as ?objOccurrences) WHERE { ?s example:pred ?obj1 . } GROUP BY ?obj1 } FILTER (?objOccurrences 100) } } On Thu, Sep 6, 2012 at 5:58 PM, Stephen Allen sal...@apache.org wrote: On Thu, Sep 6, 2012 at 3:21 PM, Rob Stewart robstewar...@gmail.com wrote: Hi

Re: Required Heap size for Fuseki ?

2012-09-14 Thread Stephen Allen
Michael, The log actually is very helpful as the stacktrace seems to be the point where it is using up all the memory (this is not always the case!). From what I see, I am guessing your have a very large number of named graphs in your store. What appears to be happening is that before the

Re: large load errors

2012-11-02 Thread Stephen Allen
Hi Paul, Thanks for the report. This is a known issue in Fuseki (see JENA-309 [1]). I have plans to work on this soon. Also I'm a little surprised that your second attempt after breaking it into chunks failed, I'll take a look at that. I am also working on a related issue (JENA-330 [2]) that

Re: Iswc 2012 Jena meetup.

2012-11-11 Thread Stephen Allen
I am at ISWC for the whole week. I don't know if there are any other Jena folks who are going to be around, but I'd be interested in meeting up during the week. -Stephen On Sun, Nov 11, 2012 at 2:17 PM, Erik Antelman eantel...@gmail.com wrote: Is there a bof or meetup of Jena people at iswc?

Re: Fuseki : loading a custom implementation of com.hp.hpl.jena.graph.impl.GraphBase?

2012-11-13 Thread Stephen Allen
Hi Pierre, Please take a look at [1]. I'm not an expert on the assember, but the directions Andy gave there helped a lot. -Stephen [1] http://mail-archives.apache.org/mod_mbox/jena-dev/201210.mbox/%3c506d90de.3020...@apache.org%3E On Mon, Nov 12, 2012 at 8:34 AM, Pierre LINDENBAUM

Re: Updating a SPARQL endpoint with the content of a Model

2012-11-27 Thread Stephen Allen
Yes! It conforms to SPARQL 1.1 Update, so it should work with any endpoint that implements the spec. -Steve On Tuesday, November 27, 2012, Olivier Rossel wrote: Is it generic for any SPARQL endpoint (4store, fuseki, virtuoso, ...)? On Tue, Nov 27, 2012 at 11:42 PM, Stephen Allen sal

Re: Simplifying the core of Jena - some possible changes

2012-11-28 Thread Stephen Allen
+1 to all the changes. On Wed, Nov 28, 2012 at 2:07 PM, Andy Seaborne a...@apache.org wrote: We're looking at simplifying the core of Jena. There are features in the Graph layer that are not used but do potential add a complexity cost to graph implementations (e.g. storage systems). The

Re: DatasetImpl and Model retrieval

2012-12-04 Thread Stephen Allen
On Tue, Dec 4, 2012 at 3:24 PM, Rob Hall kvjrh...@gmail.com wrote: *tl:dr;* I had to extend DatasetImpl to bypass internal caching in order to be able to retrieve the same models that I added to the Dataset. I believe the only performance hit that I can see will be that the Models which wrap

Re: arq - accept header in remote SPARQL update

2012-12-06 Thread Stephen Allen
On Thu, Dec 6, 2012 at 3:36 PM, Rob Vesse rve...@yarcdata.com wrote: On 12/6/12 12:31 PM, Andy Seaborne a...@apache.org wrote: On 06/12/12 20:03, Martynas Jusevičius wrote: If Jena would be consistent in its HTTP handling and use an established API such as JAX-RS, things could be much easier.

Re: Listeners and weak references

2012-12-12 Thread Stephen Allen
On Wed, Dec 12, 2012 at 1:22 PM, Andy Seaborne a...@apache.org wrote: On 08/12/12 00:03, Claude Warren wrote: I am looking at a case where I need to register a listener to the model. The default implementation then converts that to a graph listener, so my question applies to both. I don't

Re: Feed SDBStore with triples retrieved from a remote SPARQL endpoint

2013-02-05 Thread Stephen Allen
On Tue, Feb 5, 2013 at 11:27 AM, Paul Taylor paul_taylo...@yahoo.com wrote: Hello there, I would like to know whether I can feed an SDBStore (backed by MySQL) with triples that I get from a remote SPARQL endpoint using a federated SERVICE query without loading the entire ResultSet into

Re: ResourceFactory.createPlainLiteral(String, String)

2013-02-06 Thread Stephen Allen
Hi Martynas, This was just noticed and added back in December and is available in 2.10.0-SNAPSHOT. See this thread for more info [1]. -Stephen [1] http://markmail.org/message/w4q5old5makjd2pi On Wed, Feb 6, 2013 at 5:26 PM, Martynas Jusevičius marty...@graphity.org wrote: Hey, seems to me

Re: Jena 2.10.0 : request for pre-release testing

2013-02-18 Thread Stephen Allen
On Sun, Feb 17, 2013 at 7:34 AM, Dick Hannah dandh...@gmail.com wrote: Hi. Sorry this is late. Do you have more details on... * Changes to the way storage subsystems provide SPARQL Update ...please? As we have a heavily modified wrapper around the current code. :-) Hi Dick, The main

Re: transaction and caching

2013-04-30 Thread Stephen Allen
I am not as familiar as Andy is with the transaction subsystem of TDB, but the following is my understanding. If you are interested, the relevant code is in the TransactionManager and Transaction classes. On Tue, Apr 30, 2013 at 11:39 AM, David Jordan david.jor...@sas.com wrote: Questions

Re: Dataset.close()

2013-04-30 Thread Stephen Allen
On Tue, Apr 30, 2013 at 2:40 PM, David Jordan david.jor...@sas.com wrote: I posted a message about transactions and caching earlier today. I have an additional question. If you have a series of calls dataset.begin … dataset.commit … dataset.begin … dataset.commit … Is it the case that

Re: getting list of classes and count of instances

2013-05-08 Thread Stephen Allen
On Wed, May 8, 2013 at 4:24 PM, David Jordan david.jor...@sas.com wrote: I was asked to produce some output with a list of all classes and how many instances there are for each class. Is there any simpler way of doing it in Java than the following? public static void main(String[]

Re: Fuseki log question

2013-05-13 Thread Stephen Allen
I am working towards the point of deploying Fuseki in production, and my plan is to try to use DRBD [1] to mirror TDB's data and journal files to the failover machine. The failover machine will be warm, meaning it won't be running Fuseki during normal operation, but upon failure of the master, a

Re: Constructing a GraphStoreNull using DatasetNullAssembler

2013-10-31 Thread Stephen Allen
You may want to use the transactional version for testing, it will allow streaming for updates through Fuseki (I'm assuming that is what you are testing). I my assembler file looks like: @prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# . @prefix rdfs:

Re: Constructing a GraphStoreNull using DatasetNullAssembler

2013-10-31 Thread Stephen Allen
rdfs:subClassOf ja:RDFDataset . #emptyDataset rdf:typeja:DatasetNull ; ja:transactional true . On Thu, Oct 31, 2013 at 12:12 PM, Stephen Allen sal...@apache.org wrote: You may want to use the transactional version for testing, it will allow streaming for updates through Fuseki (I'm assuming

Re: SPARQL Describe query

2014-06-24 Thread Stephen Allen
Small performance note, you should use a union in the where clause to prevent a Cartesian product: CONSTRUCT { MY_NS://knowledge/my_resource ?p1 ?o1 . ?s2 ?p2 MY_NS://knowledge/my_resource . } WHERE { { MY_NS://knowledge/my_resource ?p1 ?o1 . } union { ?s2 ?p2

Re: tdbupdate vs tdbloader

2014-06-24 Thread Stephen Allen
Hi Ewa, Try using the DELETE DATA query update form instead of DELETE WHERE. The DELETE DATA form is optimized for streaming and can handle many more triples than the WHERE form. The only limit on the number of triples to be deleted is based on the amount of memory used in the heap by TDB's

Re: Unable to enable full text search in Fuseki2 given a working config file previously used in Fuseki1

2015-03-16 Thread Stephen Allen
This looks like a possible combination of two bugs. In TextDocProducerTriples, there is a ThreadLocal called inTransaction that should be subclassing ThreadLocal and overriding the initialValue() method to return false. It is not doing so. This would be OK if the start()/finish() methods were

Re: Unable to enable full text search in Fuseki2 given a working config file previously used in Fuseki1

2015-03-16 Thread Stephen Allen
On Mon, Mar 16, 2015 at 12:21 PM, Andy Seaborne a...@apache.org wrote: On 16/03/15 16:07, Stephen Allen wrote: This looks like a possible combination of two bugs. In TextDocProducerTriples, there is a ThreadLocal called inTransaction that should be subclassing ThreadLocal and overriding

Re: Suggestions on handling Transactions with Fuseki

2015-04-08 Thread Stephen Allen
Trevor, SPARQL Update supports multiple operations in a single update request. The entire request is atomic. So either all operations are applied, or none of them are. You can perform multiple operations by separating them with a semicolon. Example update request string: prefix :

Re: Errors DELETEing large-ish Graph from Fuseki

2015-07-16 Thread Stephen Allen
Hi Ric, You could try setting two properties for your dataset: #yourdatasetname rdf:type tdb:DatasetTDB ; ja:context [ ja:cxtName tdb:transactionJournalWriteBlockMode ; ja:cxtValue mapped ] ; ja:context [ ja:cxtName arq:spillToDiskThreshold ; ja:cxtValue 1 . ] . The first one will use

Re: arq:spillToDiskThreshold issue

2016-03-18 Thread Stephen Allen
On Fri, Mar 18, 2016 at 2:20 PM, Andy Seaborne wrote: > On 18/03/16 09:16, Dominique Vandensteen wrote: > >> Hi, >> I'm having problems handling "big" graphs (50M to 100M triples at current >> stage) in my fuseki servers using sparql. >> The 2 actions I need todo are "DROP GRAPH