Api Jena - I'm getting a Warn “RDFDefaultErrorHandler”?

The problem is the following line of public void readRDFFile().

The problem is the following line of public void readRDFFile(): onto.model. Read(in," "); You are passing a base URI of " ". Since this doesn't have a scheme designator (e.g. Http:, file:, etc), it is being interpreted as a relative URI, and that's not permitted for the base URI.

I think what you are actually saying is that you don't have a base URI, in which case you should pass null instead: onto.model. Read(in,null); Incidentally, I notice that the previous if statement before that line checks to see if the inputstream in is null. However it will print a warning and go on to use in anyway, which will give you a NullPointerException.

Thank you very much! That's it! I corrected and the warn no longer appears :-) – ARH Aug 15 '11 at 11:01.

You don't say where in your code the exception arises, so it's a bit hard to answer. I guess it happens when reading the RDF file. I'd try using FileManager.

ReadModel(model, filename) instead of opening your own FileInputStream.

Thanks, I'll try that. I'm using Eclipse, it displays the warn in console but it doesn't say where the warn arises. – ARH Aug 15 '11 at 9:21.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions