Why is schemagen not able to generate java class?

288 Views Asked by At

I want to use the relation ontology in jena . I know it can be imported and tried schemagen for generating Java classes that contain the constants from ontologies and RDF schemas. But unfortunately it gives me an empty file after being created. So , does anyone tell what could be the problem or is there any alternative to it ???

1

There are 1 best solutions below

3
On

Schemagen, at least a I understand it, generates DTD files from .java or .class files. If your are trying to generate java classes, you need another tool. If you have RDF, there are a couple of tools out there: one seems to be rdf2java, but it's hard to say how active it is. That page suggests you look at Tripresso Wiki for more information.