Re: fast model copy

2018-01-24 Thread Lorenz Buehmann
Does getBaseModel() [1] not work or is this not what need? Lorenz [1] https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/ontology/OntModel.html#getBaseModel-- On 25.01.2018 06:28, Andrew Hunter wrote: > Hi, > > I have an OntModel using simple RDF reasoning, but I have found tha

Re: Spatial query with 'dynamic' dataset

2018-01-24 Thread Lorenz Buehmann
The spatial index is based on Lucene and at least for the textindex updates to the dataset will be reflected automatically. In your case, as you're removing a whole named graph I don't know whether this makes a difference, but it might be the case. It would probably be helpful for the developers to

fast model copy

2018-01-24 Thread Andrew Hunter
Hi, I have an OntModel using simple RDF reasoning, but I have found that preparing the model and then copying it into a default, non-reasoning model is much faster for querying. My immediate question: Is there an efficient way of copying an OntModel into a default, non-reasoning model without copy

Re: Concurrency with Jena/GSP

2018-01-24 Thread Andy Seaborne
If calling the Jena API, you should put the operations in a transaction, then they are atomic. With Fuseki, each operation is a transaction and is fully safe if TDB or TIM (the in-memory transactional dataset implementation) otherwise it is an MRSW lock so visibility is atomic unless you have some

Re: Fuseki errors with concurrent requests

2018-01-24 Thread Chris Tomlinson
Also, Here's a link to the fuseki config: https://raw.githubusercontent.com/BuddhistDigitalResourceCenter/buda-base/master/conf/fuseki/bdrc-example.ttl Chris > On Jan 24, 2018, at 17:40, Chris Tomlinson > wrote: > > On the latest 3.7.0-Snapshot (master branch) I also saw repeated occurrences

Re: Fuseki errors with concurrent requests

2018-01-24 Thread Chris Tomlinson
On the latest 3.7.0-Snapshot (master branch) I also saw repeated occurrences of this the other day while running some queries from the fuseki browser app and with a database load going on with our own app using: DatasetAccessorFactory.createHTTP(baseUrl+"/data”); with for the first model t

Spatial query with 'dynamic' dataset

2018-01-24 Thread Lalonde Marc
Hello all, I'm trying to execute spatial queries with jena in the following context: an object's position (lat/long) is updated on a regular basis and I run a query ("SELECT ... spatial:withinCircle()...") to verify whether the object is close to a particular point of interest. I simulate the

Re: Fuseki errors with concurrent requests

2018-01-24 Thread Mikael Pesonen
And running the test set with 1 concurrent loop, it was repeated 1 times without errors. So error occurs only with more than one concurrent operations. On 24.1.2018 17:40, ajs6f wrote: Please show your code, including Fuseki config. It's hard to diagnose what is going wrong when we don'

Re: Fuseki errors with concurrent requests

2018-01-24 Thread Mikael Pesonen
Hi, query is posted with curl to :3030/ds This is the error message: SELECT DISTINCT ?s ?p ?o WHERE {   GRAPH {     { ?s dcterms:isFormatOf }     UNION     {

Re: Fuseki errors with concurrent requests

2018-01-24 Thread ajs6f
Please show your code, including Fuseki config. It's hard to diagnose what is going wrong when we don't know what is supposed to happen. ajs6f > On Jan 24, 2018, at 10:26 AM, Mikael Pesonen > wrote: > > > Hi, > > I have a test script running 10 concurrent CRUD operations in a loop. After >

Fuseki errors with concurrent requests

2018-01-24 Thread Mikael Pesonen
Hi, I have a test script running 10 concurrent CRUD operations in a loop. After few operations I get HTTP error 500 and these are in fuseki server output. Am I doing something wrong here? [2018-01-24 17:16:53] BindingTDB ERROR get1(?o) org.apache.jena.tdb.base.file.FileException: ObjectFile

Re: Concurrency with Jena/GSP

2018-01-24 Thread Mikael Pesonen
Sorry meant to ask, if I POST a large dataset, is it possible that reader gets just some of the triplets but not all? On 24.1.2018 15:25, Mikael Pesonen wrote: I'm using Jena directly with HTTP (curl) and GSP. Are all db opetations atomic? If I PUT large JSON-LD data and read old triplet

Concurrency with Jena/GSP

2018-01-24 Thread Mikael Pesonen
I'm using Jena directly with HTTP (curl) and GSP. Are all db opetations atomic? If I PUT large JSON-LD data and read old triplets at the same time, is the PUT atomic, so that I either get all old values or all new values? Thanks -- Lingsoft - 30 years of Leading Language Management www.lin