Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Martynas Jusevičius
Oh right, this is the code I tried - got the exception both ways: Model parsed = ModelFactory.createDefaultModel(); try (StringReader reader = new StringReader(validRDFPost)) { RDFDataMgr.read(parsed, reader, "http://base";, RDFLanguages.RDFPOST); }

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Martynas Jusevičius
Thanks. I'm trying 3.14.0 for now. Refactored RDFPostReader without much trouble, but now I get java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient at org.apache.jena.riot.RDFParser.create(RDFParser.java:114) because RDFParser now has a field of type HttpClient :/ I guess it didn't

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Andy Seaborne
On 26/03/2020 18:57, Martynas Jusevičius wrote: Need to match SPIN RDF API which is on 3.13.1... https://github.com/spinrdf/spinrdf/blob/master/pom.xml#L73 spinrdf does not have any binary artifacts and is built locally. Changing the version before building would be possible. Andy O

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Martynas Jusevičius
Need to match SPIN RDF API which is on 3.13.1... https://github.com/spinrdf/spinrdf/blob/master/pom.xml#L73 On Thu, 26 Mar 2020 at 17.32, Andy Seaborne wrote: > After 3.14.0, use of "IRI" got wrapped up to limit the places it is used > directly. > > Why 3.13.1 and not 3.14.0? > Or 3.15.0-SNAPSHO

Re: Apache Jena Fuseki with text indexing

2020-03-26 Thread Zhenya Antić
Andy, I think I figured out what the issue is. It seems that I have two datasets with the same name, and one was started with the config file I sent (and has no data in it - and hence it is not indexed), and the other was started without a config file (like this: fuseki-server --port 3030 --loc

Re: Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Andy Seaborne
After 3.14.0, use of "IRI" got wrapped up to limit the places it is used directly. Why 3.13.1 and not 3.14.0? Or 3.15.0-SNAPSHOT because of JENA-1838. On 26/03/2020 13:36, Martynas Jusevičius wrote: Hi, I'm working on a long overdue upgrade of Jena. So far the area where I can see most chan

Re: Apache Jena Fuseki with text indexing

2020-03-26 Thread Chris Tomlinson
Zhenya, Do you see any content in the directory: > text:directory ; like the following partial listing: > fuseki@foo :~/base/lucene-test$ ls -l > total 3608108 > -rw-rw 1 fuseki fuseki 7772 Jan 29 21:15 _19a_5x.liv > -rw-r- 1 fuseki fuseki299 Jan 21 15:53 _19a.cfe > -rw-r

Re: Graceful shutdown of FusekiServer

2020-03-26 Thread Andy Seaborne
Because servers have to survive disgraceful shutdown anyway (crash, DOS, server switched off, casters on the rack broken [1]), there isn't a graceful procedure. "kill -9" TDB has to be able to recover in any circumstances so that it what it does. No graceful shutdown currently. What resourc

Re: Apache Jena Fuseki with text indexing

2020-03-26 Thread Zhenya Antić
@prefix : . @prefix tdb2: . @prefix rdf: . @prefix ja: . @prefix rdfs: . @prefix fuseki:

Re: Apache Jena Fuseki with text indexing

2020-03-26 Thread Zhenya Antić
Hi Andy, Thanks. So I think I have all the lines you listed in the .ttl file (attached). I also checked, the data file contains the relevant data. But I have 0 properties indexed. Thanks, Zhenya On Wed, Mar 25, 2020, at 4:41 AM, Andy Seaborne wrote: > > > On 24/03/2020 15:11, Zhenya Antić

Upgrading 3.0.1 to 3.13.1: ReaderRIOT

2020-03-26 Thread Martynas Jusevičius
Hi, I'm working on a long overdue upgrade of Jena. So far the area where I can see most changes will be needed is the implementation of ReaderRIOT streaming parser for RDF/POST: https://github.com/AtomGraph/Core/blob/master/src/main/java/com/atomgraph/core/riot/lang/RDFPostReader.java Is LangEng

Re: TDB blocked

2020-03-26 Thread Andy Seaborne
Fork - what sort of fork? Java's Fork/join or OS process fork? Doesn't forking (no exec) a JVM bypass all JVM related initialization, e.g. classes. That will break a lot of things, TDB included. I don't know if OS-fork clones everything anyway (e.g. threads and that means ThreadLocal might

Graceful shutdown of FusekiServer

2020-03-26 Thread Nouwt, B. (Barry)
Hi everybody, We are using embedded FusekiServer in our Java project and have extended Jena's DatasetImpl class with additional features that require some cleanup when the FusekiServer shuts down. This dataset is loaded into FusekiServer using a config.ttl file, so we do not have a direct refer

Re: TDB blocked

2020-03-26 Thread Jean-Marc Vanel
Le mer. 25 mars 2020 à 17:17, Andy Seaborne a écrit : > > On 25/03/2020 14:36, Jean-Marc Vanel wrote: > > Le mer. 25 mars 2020 à 13:07, Andy Seaborne a écrit : > > ... > > >> What's the full stack trace? > >> (What's the blocking thread?) > I was looking for the other thread that is blocking