Setting error handler for WriterGraph/DatasetRIOT

2016-07-25 Thread Martynas Jusevičius
Hey, I was planning to set an ErrorHandler on WriterGraphRIOT instance, but it turns such setter does not exist. My ErrorHandler allows invalid URIs to be read without throwing exceptions. However model.write() throws BadURIException when writing them. So round-tripping such Model currently does

Re: Jena generic rules

2016-07-25 Thread Dave Reynolds
On 25/07/16 19:33, javed khan wrote: I have a Student class (Phd students) and Teacher class, having instances. There are some students which are also Teacher (teaching to junior classes). ?x rdf:type ont:Student ?y rdf:type ont:Teacher --> ? This will give us Students and teachers instances.

Re: Setting (strict) error handler before before reading Model (Jena 2.11.0)

2016-07-25 Thread Martynas Jusevičius
OK nevermind, that was a bad idea. Throwing an exception (after the parse errors are collected) solves this. On Mon, Jul 25, 2016 at 7:43 PM, Martynas Jusevičius wrote: > Isn't there a way to do this uniformly, for any Reader? That would be > much preferred. > > I think I

RE: TDB triple storage

2016-07-25 Thread Chao Wang
Hi Dave, As you suggested, I have computed the closure in memory, totaling over 4 millions triples. trying to serialize it. Is there a direct API to serialize the whole model into TDB? Tried to serialize into file, keep getting memory issue. What's the typical resource need for this size of

Re: Setting (strict) error handler before before reading Model (Jena 2.11.0)

2016-07-25 Thread Martynas Jusevičius
Isn't there a way to do this uniformly, for any Reader? That would be much preferred. I think I might be able to do what I need with a custom ErrorHandler. The downside is that it exposes only error message, and not the raw URI value. Couldn't the violations be passed to Model and then exposed

Re: Concurrent access to a shared (Ont)Model

2016-07-25 Thread Martynas Jusevičius
Dave, I was doing OntModel ontModel = OntDocumentManager.getInstance().getOntology(ontologyURI, ontModelSpec); ... OntModel clonedModel = ModelFactory.createOntologyModel(ontModelSpec); where ontModelSpec was new OntModelSpec(OntModelSpec.OWL_MEM) with GenericRuleReasoner set. I guess I

Re: Web UI of Fuseki doesn't start

2016-07-25 Thread Andy Seaborne
On 25/07/16 09:47, Stian Soiland-Reyes wrote: I could replicate this. stain@biggiebuntu:~/Downloads$ java -jar /var/www/fuseki/fuseki-server.jar --update --mem /ds 09:45:20 INFO Dataset: in-memory 09:45:20 WARN No such directory for static content: /home/stain/Downloads/. 09:45:20 WARN You

Re: Web UI of Fuseki doesn't start

2016-07-25 Thread Stian Soiland-Reyes
I could replicate this. stain@biggiebuntu:~/Downloads$ java -jar /var/www/fuseki/fuseki-server.jar --update --mem /ds 09:45:20 INFO Dataset: in-memory 09:45:20 WARN No such directory for static content: /home/stain/Downloads/. 09:45:20 WARN You may need to set the --pages or --home option to

Re: Web UI of Fuseki doesn't start

2016-07-25 Thread Andy Seaborne
It's the wrong URL in some way. Andy On 25/07/16 08:39, Sandor Kopacsi wrote: Does anybody have any idea, what can be the problem, and how can I solve it? I started Fuseki successfully, and wanted to open its web UI, as usual on port 3030, but I have received the error message: "Error

Re: Web UI of Fuseki doesn't start

2016-07-25 Thread Sandor Kopacsi
Does anybody have any idea, what can be the problem, and how can I solve it? I started Fuseki successfully, and wanted to open its web UI, as usual on port 3030, but I have received the error message: "Error 404: Not Found Fuseki - version 1.4.0 (Build date: 2016-05-10T11:59:39+)"