0

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 ???

Joshua Taylor
  • 84,998
  • 9
  • 154
  • 353
riya
  • 29
  • 4
  • "the relation ontology" What relation ontology? – Joshua Taylor Feb 19 '16 at 15:00
  • How are you trying to generate it? What arguments/options are you passing to schemagen? We can't help you debug a problem that we can't see. – Joshua Taylor Feb 19 '16 at 15:01
  • I am invoking schemagen from command line. For that the script (with arguments specified) is : "sh schemagen.sh -i relation.owl" this script should convert the .owl file into .java file , which it does but with no content. Relation ontology file I want to use is available at this link:" https://raw.githubusercontent.com/oborel/obo-relations/master/ro.owl" – riya Feb 22 '16 at 11:12
  • you may want to look at the documentation from schemagen; I don't think you're providing all the flags that you should. – Joshua Taylor Feb 22 '16 at 12:27

1 Answers1

-1

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.

K.Nicholas
  • 10,956
  • 4
  • 46
  • 66