essepuntato / LODE

Live OWL Documentation Environment, to convert OWL ontologies into HTML human-readable pages.
ISC License
104 stars 55 forks source link

LODE error when using owlapi=true #4

Open jetschni opened 8 years ago

jetschni commented 8 years ago

Hello

i get the following error when using the parameter owlapi=true e.g. localhost:9030/lode/extract?owlapi=true&url=https://localhost/test.rdf)

LODE error
Reason: Could not find an ontology storer which can handle the format: org.semanticweb.owlapi.io.RDFXMLOntologyFormat@1b0bc2f

I followed the steps described in readme.md, the examples are working fine. The rdf file is fine as well, tested with http://www.essepuntato.it/lode/owlapi/http://domain.com/test.rdf

essepuntato commented 8 years ago

Hi Jonas, would you please provide me with the original source file you used for that, so as to be sure to reproduce your issue locally?

jetschni commented 8 years ago

Hey Silvio, thank you very much for your answer. Of course: https://bmake.th-brandenburg.de/services/odoc/ITCat/SchemaGraph.rdf

For the hosted version it's working fine: http://www.essepuntato.it/lode/owlapi/https://bmake.th-brandenburg.de/services/odoc/ITCat/SchemaGraph.rdf

jetschni commented 8 years ago

Hey Silvio,

could you figure out where the problem is?

essepuntato commented 8 years ago

Hi @jetschni,

I've investigated a bit few days ago, and it seems that the version of the OWLAPI that is used (by means of running the mvn command) is the last one – which would be dinamically downloaded by maven. However, I have to change this behaviour so as to constrain the use of a specific version, that is the one adopted by the online version of the tool available at http://www.essepuntato.it/lode.

However, I honestly don't have any time in the following days to investigate it further. If you think you can help me with this, just give me a shout!

Have a nice day :-)

S.

billyk18278 commented 8 years ago

FYI Tried almost all 3.4 and 3.5 versions of

net.sourceforge.owlapi
                    <artifactId>owlapi-distribution</artifactId>
                    <version>3.4</version>

still the same problem. Using version 4.x i get exception java.lang.AbstractMethodError at org.semanticweb.owlapi.io.OWLParserFactoryRegistry.getKey(OWLParserFactoryRegistry.java:176) any ideas?

DieterDePaepe commented 7 years ago

Encountering the same problem:

When using the example listed in the README.md: http://localhost:8080/lode/extract?owlapi=true&url=http://www.loa.istc.cnr.it/ontologies/DOLCE-Lite.owl

gives the following error:

LODE error

Reason: Problem parsing http://www.loa.istc.cnr.it/ontologies/DOLCE-Lite.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) KRSSOWLParser 2) OWLFunctionalSyntaxOWLParser 3) KRSS2OWLParser 4) ManchesterOWLSyntaxOntologyParser 5) OWLXMLParser 6) OWLOBOParser Detailed logs: -------------------------------------------------------------------------------- Parser: KRSSOWLParser Encountered " ">" " "" at line 1, column 1. Was expecting: (Line 0) -------------------------------------------------------------------------------- Parser: OWLFunctionalSyntaxOWLParser Encountered " "< "" at line 1, column 1. Was expecting: "Ontology" ... (Line 0) -------------------------------------------------------------------------------- Parser: KRSS2OWLParser de.uulm.ecs.ai.owlapi.krssparser.ParseException: Encountered " ">" " "" at line 1, column 1. Was expecting: -------------------------------------------------------------------------------- Parser: ManchesterOWLSyntaxOntologyParser Encountered '' at line 1 column 1. Expected either 'Ontology:' or 'Prefix:' (Line 1) -------------------------------------------------------------------------------- Parser: OWLXMLParser Attribute not found: IRI (Line 40) -------------------------------------------------------------------------------- Parser: OWLOBOParser org.coode.owlapi.obo.parser.TokenMgrError: Lexical error at line 1, column 22. Encountered: "\n" (10), after : ""

@essepuntato : you mention that maven selects the latest library. That's not true, versions of all libraries are hardcoded in the pom.xml file. If you know which versions are used by the online tool, it's as simply as replacing those versions.