Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[p4-feedback] Dowloading pizza ontology from co-ode.org

Timothy Redmond tredmond at stanford.edu
Wed Apr 21 13:31:08 PDT 2010


Are you useing the v2 Manchester OWL API or the v3 Manchester OWL API?

The problem with message is that I don't know exactly what you did 
here.  When I see the line:

    Ontology(<http://www.co-ode.org/ontologies/pizza/pizza.owl>  [Axioms: 940] [Logical axioms: 712])

I am led to suspect that the OWL api has parsed a pizza.owl ontology and 
that this line is the rendering of the ontology by the owl api.  I also 
tested in Protege 4.1 and was able to load an ontology into Protege 4.1 
from the url

    http://www.co-ode.org/ontologies/pizza/pizza.owl
       

But then right after that it says:

> Could not parse the ontology: Problem parsing file:/K:/NetBeen/OWLAPI_Src/OWLAPI/pizza.owl
Where did this version of the pizza.owl file come from or how did you 
create it?  What are its contents?  Could I see a copy of this one?

I vaguely remember this message
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
from somewhere before.  (Protege 4.0 occasionally generates these when 
it shouldn't.)  Perhaps if I saw the saved pizza.owl file I would know 
what is wrong.

-Timothy


On 04/21/2010 04:22 AM, babar shahzad wrote:
> Hi,
>
>   Is Dowloading pizza ontology only require to copy pizza ontology source from http://www.co-ode.org/ontologies/pizza/pizza.owl and save it as pizza.owl ? I did like this and tried to run 'LoadingOntologies' example of OWL API, following exception occur for local file. Also the pizza ontology page open with information on top, ' This XML file does not appear to have any style information associated with it. The document tree is shown below.
>         '
>
> init:
> deps-jar:
> compile-single:
> run-single:
> Loaded ontology: Ontology(<http://www.co-ode.org/ontologies/pizza/pizza.owl>  [Axioms: 940] [Logical axioms: 712])
> Could not parse the ontology: Problem parsing file:/K:/NetBeen/OWLAPI_Src/OWLAPI/pizza.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.xml.sax.SAXParseException: Content is not allowed in prolog.
>
> --------------------------------------------------------------------------------
> Parser: OWLXMLParser
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
>
> --------------------------------------------------------------------------------
> Parser: OWLFunctionalSyntaxOWLParser
> Encountered "<PN_CHARS>  "- "" at line 1, column 1.
> Was expecting:
>      "Ontology" ...
>       (Line 0)
>
> --------------------------------------------------------------------------------
> Parser: TurtleOntologyParser
> uk.ac.manchester.cs.owl.owlapi.turtle.parser.ParseException: Encountered "" at line 1, column 1.
> Was expecting one of:
>
>
> --------------------------------------------------------------------------------
> Parser: OWLOBOParser
> org.coode.owlapi.obo.parser.ParseException: Encountered "</owl" at line 8, column 1.
> Was expecting:
>      "\n" ...
>       (Line 7)
>
> --------------------------------------------------------------------------------
> Parser: KRSS2OWLParser
> de.uulm.ecs.ai.owlapi.krssparser.ParseException: Encountered "<NAME>  "- "" at line 1, column 1.
> Was expecting:
>      <EOF>
>
>
> --------------------------------------------------------------------------------
> Parser: ManchesterOWLSyntaxOntologyParser
> Encountered '-<rdf:RDF xml:base="http://www.co-ode.org/ontologies/pizza/pizza.owl">' at line 1 column 1.  Expected either 'Ontology:' or 'Prefix:' (Line 1)
>
> Tried to parse the ontology with the RDFXMLParser parser
> Failed because: org.xml.sax.SAXParseException: Content is not allowed in prolog.
> Tried to parse the ontology with the OWLXMLParser parser
> Failed because: org.xml.sax.SAXParseException: Content is not allowed in prolog.
> Tried to parse the ontology with the OWLFunctionalSyntaxOWLParser parser
> Failed because: Encountered "<PN_CHARS>  "- "" at line 1, column 1.
> Was expecting:
>      "Ontology" ...
>       (Line 0)
> Tried to parse the ontology with the TurtleOntologyParser parser
> Failed because: uk.ac.manchester.cs.owl.owlapi.turtle.parser.ParseException: Encountered "" at line 1, column 1.
> Was expecting one of:
>
> Tried to parse the ontology with the OWLOBOParser parser
> Failed because: org.coode.owlapi.obo.parser.ParseException: Encountered "</owl" at line 8, column 1.
> Was expecting:
>      "\n" ...
>       (Line 7)
> Tried to parse the ontology with the KRSS2OWLParser parser
> Failed because: de.uulm.ecs.ai.owlapi.krssparser.ParseException: Encountered "<NAME>  "- "" at line 1, column 1.
> Was expecting:
>      <EOF>
>
> Tried to parse the ontology with the ManchesterOWLSyntaxOntologyParser parser
> Failed because: Encountered '-<rdf:RDF xml:base="http://www.co-ode.org/ontologies/pizza/pizza.owl">' at line 1 column 1.  Expected either 'Ontology:' or 'Prefix:' (Line 1)
> BUILD SUCCESSFUL (total time: 1 second)
>
> BR,
>
>
> Babar Shahzad Chaudary,
> +358466197288
> Deptt of Information Processing
> Science,
> University of Oulu, Finland.
>
>
>
>
>
> _______________________________________________
> p4-feedback mailing list
> p4-feedback at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/p4-feedback
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/p4-feedback/attachments/20100421/67f58f7b/attachment.html>


More information about the p4-feedback mailing list