From: Timothy R. <tre...@st...> - 2009-09-29 12:02:13
|
The problem is the fact that you saved in owl/xml format. Protege 3.2 cannot read this format. Save it in RDF/XML format and you will probably succeed. -Timothy On Sep 29, 2009, at 4:15 AM, Adam Funk wrote: > I've developed a program that generates an ontology using the OWL API > and saves it as follows: > > File outputFile; > OWLOntology output; > ... > OWLOntologyFormat format = new OWLXMLOntologyFormat(); > owlManager.saveOntology(output, format, outputFile.toURI()); > > > > My colleagues can open the resulting OWL file in Protégé 4 (which > supports OWL 2) but not in Protégé 3.2, which gives the following > error: > > An error occurred at parsing the OWL ontology > [path to file] > at line 58 and column 9. > Jena parse error message: {E201} The attributes on this property > element, are not permitted with any content; expecting end element > tag. > Exception class com.hp.hpl.jena.rdf.arp.impl.XMLHandler$1. > Message: > {E201} The attributes on this property element, are not permitted with > any content; expecting end element tag. > > Line 58 is this: > <Constant>Libraries</Constant> > and column 9 is where "Constant" starts; this is the first <Constant> > element in the file. > > > We think the problem is that my output is in OWL 2; we'd like it to be > in OWL 1.1 if possible. Is it possible to constrain OWL API to save > the > ontology as OWL 1.1? > > Thanks, > Adam > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer |