OWLLiteral literal = null;
if(argument1 instanceof TypedLiteralAtom){
TypedLiteralAtom typedLiteralAtom = (TypedLiteralAtom) argument1;
URIResource xsdType = typedLiteralAtom.getXsdType();
if(xsdType.getURI().equals(XSD.xboolean)){
literal = factory.getOWLLiteral(Boolean.valueOf(argument1.toString()).booleanValue());
}
else if(xsdType.getURI().equals(XSD.xdouble)){
literal = factory.getOWLLiteral(Double.valueOf(argument1.toString()).doubleValue());
}
else if(xsdType.getURI().equals(XSD.xfloat)){
literal = factory.getOWLLiteral(Float.valueOf(argument1.toString()).floatValue());
}
else if(xsdType.getURI().equals(XSD.xint)){
literal = factory.getOWLLiteral(Integer.valueOf(argument1.toString()).intValue());
}
else{
literal = factory.getOWLLiteral(argument1.toString());
}
}
else{
literal = factory.getOWLLiteral(argument1.toString());
}
swrldArgument1 = factory.getSWRLLiteralArgument(literal);
}
SWRLDArgument swrldArgument2 = null;
if(argument2.toString().startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
swrldArgument2 = factory.getSWRLVariable(IRI.create(argument2.toString()));
}
else{
OWLLiteral literal = null;
if(argument2 instanceof TypedLiteralAtom){
TypedLiteralAtom typedLiteralAtom = (TypedLiteralAtom) argument2;
URIResource xsdType = typedLiteralAtom.getXsdType();
if(xsdType.getURI().equals(XSD.xboolean)){
literal = factory.getOWLLiteral(Boolean.valueOf(argument2.toString()).booleanValue());
}
else if(xsdType.getURI().equals(XSD.xdouble)){
literal = factory.getOWLLiteral(Double.valueOf(argument2.toString()).doubleValue());
}
else if(xsdType.getURI().equals(XSD.xfloat)){
literal = factory.getOWLLiteral(Float.valueOf(argument2.toString()).floatValue());
}
else if(xsdType.getURI().equals(XSD.xint)){
literal = factory.getOWLLiteral(Integer.valueOf(argument2.toString()).intValue());
}
else{
literal = factory.getOWLLiteral(argument2.toString());