org.nlp2rdf.core
Class ErrorHandling

java.lang.Object
  extended by org.nlp2rdf.core.ErrorHandling

public class ErrorHandling
extends Object

Author:
Sebastian Hellmann Date: 11/18/11

Constructor Summary
ErrorHandling()
           
 
Method Summary
static Error createError(boolean fatal, String prefix, String message, com.hp.hpl.jena.ontology.OntModel model)
          writes an error into the model with the given message source is not added, please add it yourself Note that the error is already written to model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandling

public ErrorHandling()
Method Detail

createError

public static Error createError(boolean fatal,
                                String prefix,
                                String message,
                                com.hp.hpl.jena.ontology.OntModel model)
writes an error into the model with the given message source is not added, please add it yourself Note that the error is already written to model. The URI was generated by prefix+"error"+counter where counter is increased everytime the method is called.

Parameters:
fatal - if true the :fatal "1"^^xsd:boolean is added else "0"
prefix - used to create the URI
message -
model -
Returns:
the error object


Copyright © 2011. All Rights Reserved.