how to get SOURCE

Posted by laknath27 on Stack Overflow See other posts from Stack Overflow or by laknath27
Published on 2010-06-09T10:41:34Z Indexed on 2010/06/09 10:42 UTC
Read the original article Hit count: 228

Filed under:

i do some development with jena ontology API.my ontology file in my local machine..when i'm going to read the model.. there is an error.. and i made ontology with protege and tried to read that file.

String SOURCE = "http://www.owl-ontologies.com/Ontology1275995702";(it's XML:base value) //String NS = SOURCE + "#"; //InputStream in = FileManager.get().open("tourism.owl"); OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM); model.read(SOURCE,"RDF/XML");

    OntClass paper = model.getOntClass( SOURCE + "srilanka" );

how can i fix this?

© Stack Overflow or respective owner

Related posts about jena