On 24/08/11 21:03, Ian Dickinson wrote:
Hi Monika,
On 24/08/11 20:21, Monika Solanki wrote:
Is it possible to check if the incoming data is legal RDF before reading
into the model?
I don't think so. Well, I suppose you could just call ARP and use a
triple sink that just threw the triples away, but then you would have
to repeat the work when reading the model "for real".
I do not want my program to throw an error via
RDFDefaultErrorHandler if the incoming data is illegal RDF. I only want
a warning to be issued and the program should continue execution.
In that case, I would read the incoming data into a separate memory
model, then, if the load is successful, call Model.add(Model) to add
the new data to the main store.
This is the URI
String uri="http://webenemasuno.linkeddata.es/metadata"
from where I am trying to read into a model using
Model m = FileManager.get().loadModel(uri);
I have tried several other ways of loading the model as well, nothing
seems to work. They all throw
ERROR [main] (RDFDefaultErrorHandler.java:44) -
http://webenemasuno.linkeddata.es/metadata(line 1 column 55): White
spaces are required between publicId and systemId.
and program stops execution, which is what I do not want. What am I missing?
Thanks,
Monika
Ian