I can compile the Empire successfully and I have imported the dependency from a Maven project.
However, When I execute an example to generate java code with class BeanGenerator, I got a Exception
The code is the next:
String packageName = "beans";
String ontologyURL = "/home/sabino/owl/ontology.owl";
String rdfFormat = "rdf/xml";
String outputDirectory = "src/main/java";
URL aURL;
if (NetUtils.isURL(ontologyURL)) {
aURL = new URL(ontologyURL);
} else {
aURL = new File(ontologyURL).toURI().toURL();
}
//BeanGenerator bg = new BeanGenerator();
BeanGenerator.generateSourceFiles(packageName, aURL, RDFFormat.valueOf(rdfFormat), new File(outputDirectory));
The exception thorwn is
Exception in thread "main" java.lang.NoSuchMethodError: com.complexible.common.openrdf.repository.Repositories.createInMemoryRepo()Lorg/openrdf/repository/Repository;
at com.clarkparsia.empire.codegen.BeanGenerator.generateSourceFiles(BeanGenerator.java:441)
at CodeGeneratorBeans.main(CodeGeneratorBeans.java:46)
Somebody know how to fix this exception?
Regards