protegeproject / webprotege

The webprotege code base
Other
631 stars 253 forks source link

Temp entity IRIs are sometimes not resolved #298

Open csnyulas opened 9 years ago

csnyulas commented 9 years ago

I downloaded an ontology, and tried to upload it again (with a different project name), and I got this message:

org.semanticweb.owlapi.io.UnparsableOntologyException: Problem parsing file:/tmp/tmp-9b918865-66ba-4909-9dc0-8887030ca1f8/protege-shopping-express-test-ontologies-owl-REVISION-9223372036854775807/root-ontology.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) BinaryOWLOntologyDocumentParser 2) RDFXMLParser 3) OWLXMLParser 4) OWLFunctionalSyntaxOWLParser 5) TurtleOntologyParser 6) KRSS2OWLParser 7) ManchesterOWLSyntaxOntologyParser 8) OBOFormatOWLAPIParser Detailed logs: -------------------------------------------------------------------------------- Parser: BinaryOWLOntologyDocumentParser Corrupt file or not a binary OWL format (Magic Number Not Present) -------------------------------------------------------------------------------- Parser: RDFXMLParser org.semanticweb.owlapi.rdf.syntax.RDFParserException: [line=1071:column=103] IRI 'wptmp:entity#Pepperidge Farm Tahoe White Chocolate Macademia Cookies' cannot be resolved against current base IRI http://webprotege.stanford.edu/project/8YWcOXM5IadicizA87JdwX reason is: Illegal character in fragment at index 23: wptmp:entity#Pepperidge Farm Tahoe White Chocolate Macademia Cookies -------------------------------------------------------------------------------- Parser: OWLXMLParser Attribute not found: IRI (Line 25) -------------------------------------------------------------------------------- Parser: OWLFunctionalSyntaxOWLParser Encountered " "< "" 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: 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: OBOFormatOWLAPIParser LINENO: 1 - Could not find tag separator ':' in line. LINE:

matthewhorridge commented 8 years ago

Changed the issue title to reflect what the actual problem is.