Re: Loading RDF XML while Fuseki is running

2016-03-29 Thread Andy Seaborne
On 29/03/16 16:10, A. Soroka wrote: RDF/XML pretty much has to be loaded all together to be processed (because any given assertion in the XML depends on a lot of context which could be from elsewhere in the document), so when Fuseki receives the stream of XML, it's got to assemble a complete grap

Re: Loading RDF XML while Fuseki is running

2016-03-29 Thread A. Soroka
RDF/XML pretty much has to be loaded all together to be processed (because any given assertion in the XML depends on a lot of context which could be from elsewhere in the document), so when Fuseki receives the stream of XML, it's got to assemble a complete graph before it can act on the data. Yo

Re: Loading RDF XML while Fuseki is running

2016-03-29 Thread Mikael Pesonen
Hi Osma! does thin mean that Fuseki loads the entire data into memory first? Dataset is bigger than installed memory on the server. Tried 3Gb which got it further but not to the finish line so trying bigger value tomorrow. Br, Mikael On 24.3.2016 17:19, Osma Suominen wrote: Hi Mikael! Pl

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread Andy Seaborne
On 24/03/16 14:23, A. Soroka wrote: Right, I'm suggesting that perhaps it should at least try to parse the file when it ends in .xml, as well. I'm not addressing the question of file size. --- A. Soroka The University of Virginia Library s-* are just convenience wrappers around HTTP operation

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread Osma Suominen
Hi Mikael! Please check the Fuseki log, you're likely to find the problem over there. s-put/SOH is just reporting that the connection to Fuseki was broken for some reason. One probable cause is that Fuseki has run out of memory while processing the upload. In that case you will need to incre

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread Mikael Pesonen
Sorry. Agree with you on that. RDF XML is likely to be the format. Br, Mikael On 24.3.2016 16:23, A. Soroka wrote: Right, I'm suggesting that perhaps it should at least try to parse the file when it ends in .xml, as well. I'm not addressing the question of file size. --- A. Soroka The Unive

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread A. Soroka
Right, I'm suggesting that perhaps it should at least try to parse the file when it ends in .xml, as well. I'm not addressing the question of file size. --- A. Soroka The University of Virginia Library > On Mar 24, 2016, at 10:16 AM, Mikael Pesonen > wrote: > > > Hi, > > s-put succeeds with

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread Mikael Pesonen
Hi, s-put succeeds with smaller file when .xml renamed to .rdf. Tested with a subset of ~1 million triplets. Entire file is ~100 million triplets. Br, Mikael On 24.3.2016 15:41, A. Soroka wrote: I seem to remember that the list has received a question like this before. Perhaps s-put shoul

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread A. Soroka
I seem to remember that the list has received a question like this before. Perhaps s-put should try to parse *.xml files as RDF/XML, and only fail if that can't be done? --- A. Soroka The University of Virginia Library > On Mar 24, 2016, at 7:41 AM, Mikael Pesonen > wrote: > > > Hi Osma! >

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread Mikael Pesonen
Hi again! I got now further, but at some point when loading a fairly lage XML file I get this: /usr/lib/ruby/1.9.1/net/protocol.rb:199:in `write': Broken pipe (Errno::EPIPE) from /usr/lib/ruby/1.9.1/net/protocol.rb:199:in `write0' from /usr/lib/ruby/1.9.1/net/protocol.rb:173

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread Mikael Pesonen
Hi Osma! Well that was an easy solution that worked. Thanks! Mikael On 24.3.2016 13:25, Osma Suominen wrote: Hi Mikael! Try renaming the file to .rdf instead of .xml. It's likely that s-put doesn't recognize the file extension .xml - after all, it could be any kind of XML, not just RDF/XM

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread Osma Suominen
Hi Mikael! Try renaming the file to .rdf instead of .xml. It's likely that s-put doesn't recognize the file extension .xml - after all, it could be any kind of XML, not just RDF/XML. -Osma On 24/03/16 11:31, Mikael Pesonen wrote: Hi, sorry for missing info. So I'm trying to: /apache-jena

Re: Loading RDF XML while Fuseki is running

2016-03-24 Thread Mikael Pesonen
Hi, sorry for missing info. So I'm trying to: /apache-jena-fuseki-2.3.1$ bin/s-put http://localhost:3030/ds/data http://www.lingsoft.fi/geonames/ ./tmp.xml tmp.xml is a geonames entry: http://creativecommons.org/ns#"; xmlns:dcterms="http://purl.org/dc/terms/"; xmlns:foaf="http://xmlns.c

Re: Loading RDF XML while Fuseki is running

2016-03-19 Thread Andy Seaborne
> No idea? I need to update data to either running database or make > a new db. (to a message 3 days ago ...) "this does not work" is a bit minimal. What does work? Other s-* commands? Other files? I'd guess that ".xml" is not recognized as RDF. It's not the right file extension. The MIME ty

Re: Loading RDF XML while Fuseki is running

2016-03-18 Thread Mikael Pesonen
No idea? I need to update data to either running database or make a new db. When trying to start another server to port 3031 server complains org.apache.jena.tdb.TDBException: Can't open database at location /home/text/tools/apache-jena-fuseki-2.3.1/run/system/ Mikael On 15.3.2016 13:40, M

Re: Loading RDF XML while Fuseki is running

2016-03-15 Thread Mikael Pesonen
Hi, okay thats good to know. I tried with s-put apache-jena-fuseki-2.3.1$ bin/s-put http://localhost:3030/ds/data http://www.lingsoft.fi/geonames/ tmp.xml /usr/lib/ruby/1.9.1/net/http.rb:1436:in `block in initialize_http_header': undefined method `strip' for nil:NilClass (NoMethodError)

Re: Loading RDF XML while Fuseki is running

2016-03-15 Thread Andy Seaborne
On 15/03/16 10:40, Mikael Pesonen wrote: Hi, is it possible to add content to graph from RDF XML with command line tools? s-put requires SPARQL and tdbloader says org.apache.jena.tdb.TDBException: Can't open database at location /home/text/tools/apache-jena-3.0.1/DB/ as it is already locked by

Loading RDF XML while Fuseki is running

2016-03-15 Thread Mikael Pesonen
Hi, is it possible to add content to graph from RDF XML with command line tools? s-put requires SPARQL and tdbloader says org.apache.jena.tdb.TDBException: Can't open database at location /home/text/tools/apache-jena-3.0.1/DB/ as it is already locked by the process with PID 7672. TDB datab