public void addAnnotation(String variableURL, String property, String annotValue) throws AnnotVariableException{
annotValue = annotValue.replace("_", ":");
String [] annotValArray = annotValue.split(":");
if(annotValArray.length!=2){
throw new AnnotVariableException("Invalid term ID");
}
String miriumURN="";
if(annotValArray[0].equals("RICORDO")){
miriumURN = "urn:miriam:ricordo:RICORDO_"+annotValArray[1];
}
else{
miriumURN= getMiriam(annotValArray[0], annotValue);
if(miriumURN==null){
throw new AnnotVariableException("Invalid MIRIAM URN or no MIRIAM URN returned");
}
}
rdfHandler.insertAnnotString(variableURL, property, miriumURN);
}