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.

Ian


--
____________________________________________________________
Ian Dickinson                   Epimorphics Ltd, Bristol, UK
mailto:[email protected]        http://www.epimorphics.com
cell: +44-7786-850536              landline: +44-1275-399069
------------------------------------------------------------
Epimorphics Ltd.  is a limited company registered in England
(no. 7016688). Registered address: Court Lodge, 105 High St,
              Portishead, Bristol BS20 6PT, UK

Reply via email to