File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Jena: Error in saving ontology model to a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jena: Error in saving ontology model to a file" Watch "Jena: Error in saving ontology model to a file" New topic
Author

Jena: Error in saving ontology model to a file

Nada Bajnaid
Ranch Hand

Joined: Aug 14, 2011
Posts: 45
In my servlet I read an ontology model OntModel access some info then I create some new properties between existing instances (individuals) and save the ontology to a file. I use the follwoing code



Then I got the following error:

com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute URIrefs can be included in RDF/XML output: <C> Code: 57/REQUIRED_COMPONENT_MISSING in SCHEME: A component that is required by the scheme is missing.Any help is appreciated
Nada Bajnaid
Ranch Hand

Joined: Aug 14, 2011
Posts: 45
I changed the language argument to N-TRIPLE and got no error. But the created file can not be opened with Protege.

Eventhough the type of the file is OWL. it shows the logo of IE !!

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jena: Error in saving ontology model to a file
 
Similar Threads
how to create ontology
Problem with FileWrite and Regular Expression
Problem with file and writing UTF-8 information into file
close() for I/O objects
I/O code exception