From: Ignazio P. <ign...@gm...> - 2009-05-20 10:25:09
|
Jayan wrote: > am attaching the file along with this. i gave the physical URI as > file:///home/jayan/ontology/PERSONAL.owl. i got an example showing the class > hierarchy. that example works ine with this ontology. but i cant do any > other function due to the errors i specified earlier. Do you get the same errors as before with this file? I tried opening it with TextEdit (Mac OS) and it gave me an error saying the encoding is Western Latin 1, while the XML has no encoding specified. Opened it with another editor, checked the encoding to UTF-8, saved again - now it opens correctly. The file is valid RDF, so just try specifying the encoding in the file. I. > On Wed, May 20, 2009 at 1:30 PM, Ignazio Palmisano < > ign...@go...> wrote: > >> Jayan wrote: >>> i changed the permission of the owl file. i also changed the encoding to >>> UTF-8. still the same errors are coming. is it something in specifying >> the >>> URI ? >>> >> I don't think so. Show us the file (if the content is not reserved). >> I. >> >>> On Tue, May 19, 2009 at 9:14 PM, Wynne, Robert (NIH/NCI) [C] < >>> wy...@ma...> wrote: >>> >>>> You may also want to check the permissions on the OWL file. If these >>>> are not set correctly, the parser cannot access the contents of the >>>> file. >>>> >>>> % chmod a+r /home/jayan/ontology/district.owl >>>> >>>> Rob >>>> >>>> -----Original Message----- >>>> From: Ignazio Palmisano [mailto:ign...@gm...] >>>> Sent: Tuesday, May 19, 2009 11:39 AM >>>> To: owl...@li... >>>> Subject: Re: [OWLAPI-developer] running in linux >>>> >>>> Jayan wrote: >>>>> Hello, >>>>> >>>>> i am able to run a java code that loads an ontology from a physical >>>> location >>>>> like file:///C:/district.owl. it runs smoothly in windows. but when i >>>> run >>>>> the same code in linux the following error appears. i tried to load >>>> the >>>>> ontology from file:///home/jayan/ontology/district.owl. >>>>> >>>>> file:///home/jayan/ontology/district.owl >>>>> Could not load the given ontology: Problem parsing >>>> This seems to mean that the operating system is not the reason. Check >>>> that the file is correct, i.e. it contains what you think it contains, >>>> and that the encoding is explicitly set to the correct one (Windows has >>>> a default encoding that may vary while most Linuxes I have used have >>>> UTF-8 as default; if your XML does not have an explicit encoding it >>>> might be picking up the wrong default). >>>> Also, you may use some online validation service to verify your file is >>>> correct RDF. >>>> HTH, >>>> I. >>>> >>>>> file:///home/jayan/ontology/district.owl >>>>> Could not parse ontology. Either a suitable parser could not be >>>> found, or >>>>> parsing failed. See parser logs below for explanation. >>>>> The following parsers were tried: >>>>> 1) RDFXMLParser >>>>> 2) OWLXMLParser >>>>> 3) OWLFunctionalSyntaxOWLParser >>>>> 4) TurtleOntologyParser >>>>> 5) OWLOBOParser >>>>> 6) KRSS2OWLParser >>>>> 7) ManchesterOWLSyntaxOntologyParser >>>>> >>>>> >>>>> Detailed logs: >>>>> >>>> ------------------------------------------------------------------------ >>>> -------- >>>>> Parser: RDFXMLParser >>>>> org.semanticweb.owl.model.OWLOntology.isEmpty()Z >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> -------- >>>>> Parser: OWLXMLParser >>>>> org.semanticweb.owl.model.OWLOntology.isEmpty()Z >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> -------- >>>>> Parser: OWLFunctionalSyntaxOWLParser >>>>> org.semanticweb.owl.model.OWLOntology.isEmpty()Z >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> -------- >>>>> Parser: TurtleOntologyParser >>>>> org.semanticweb.owl.model.OWLOntology.isEmpty()Z >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> -------- >>>>> Parser: OWLOBOParser >>>>> org.semanticweb.owl.model.OWLOntology.isEmpty()Z >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> -------- >>>>> Parser: KRSS2OWLParser >>>>> org.semanticweb.owl.model.OWLOntology.isEmpty()Z >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> -------- >>>>> Parser: ManchesterOWLSyntaxOntologyParser >>>>> org.semanticweb.owl.model.OWLOntology.isEmpty()Z >>>>> >>>>> can anyone point ooout what the error is? >>>>> >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>> ------------------------------------------------------------------------ >>>> ------ >>>>> Crystal Reports - New Free Runtime and 30 Day Trial >>>>> Check out the new simplified licensing option that enables >>>>> unlimited royalty-free distribution of the report engine >>>>> for externally facing server and web deployment. >>>>> http://p.sf.net/sfu/businessobjects >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------ >>>>> _______________________________________________ >>>>> Owlapi-developer mailing list >>>>> Owl...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >>>> ------------------------------------------------------------------------ >>>> ------ >>>> Crystal Reports - New Free Runtime and 30 Day Trial >>>> Check out the new simplified licensing option that enables >>>> unlimited royalty-free distribution of the report engine >>>> for externally facing server and web deployment. >>>> http://p.sf.net/sfu/businessobjects >>>> _______________________________________________ >>>> Owlapi-developer mailing list >>>> Owl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> Crystal Reports - New Free Runtime and 30 Day Trial >>>> Check out the new simplified licensing option that enables >>>> unlimited royalty-free distribution of the report engine >>>> for externally facing server and web deployment. >>>> http://p.sf.net/sfu/businessobjects >>>> _______________________________________________ >>>> Owlapi-developer mailing list >>>> Owl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >>>> >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >> ------------------------------------------------------------------------------ >>> Crystal Reports - New Free Runtime and 30 Day Trial >>> Check out the new simplified licensing option that enables >>> unlimited royalty-free distribution of the report engine >>> for externally facing server and web deployment. >>> http://p.sf.net/sfu/businessobjects >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Owlapi-developer mailing list >>> Owl...@li... >>> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables >> unlimited royalty-free distribution of the report engine >> for externally facing server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Owlapi-developer mailing list >> Owl...@li... >> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > > > ------------------------------------------------------------------------ > > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer |