https://jena.apache.org/documentation/notes/typed-literals.html#user-defined-non-xsd-data-types Public Boolean isEqual(LiteralLabel value1, LiteralLabel value2) { should be public boolean isEqual(LiteralLabel value1, LiteralLabel value2) { (notice the uppercase keywords)