{"action":"closed","issue":{"url":"https://api.github.com/repos/mmisw/mmiorr/issues/349","labels_url":"https://api.github.com/repos/mmisw/mmiorr/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/mmisw/mmiorr/issues/349/comments","events_url":"https://api.github.com/repos/mmisw/mmiorr/issues/349/events","html_url":"https://github.com/mmisw/mmiorr/issues/349","id":69734070,"number":349,"title":"support OWL/XML format in upload operation (was: errors uploading ice-of-land-origin ontology)","user":{"login":"carueda","id":556505,"avatar_url":"https://avatars.githubusercontent.com/u/556505?v=3","gravatar_id":"","url":"https://api.github.com/users/carueda","html_url":"https://github.com/carueda","followers_url":"https://api.github.com/users/carueda/followers","following_url":"https://api.github.com/users/carueda/following{/other_user}","gists_url":"https://api.github.com/users/carueda/gists{/gist_id}","starred_url":"https://api.github.com/users/carueda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carueda/subscriptions","organizations_url":"https://api.github.com/users/carueda/orgs","repos_url":"https://api.github.com/users/carueda/repos","events_url":"https://api.github.com/users/carueda/events{/privacy}","received_events_url":"https://api.github.com/users/carueda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mmisw/mmiorr/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mmisw/mmiorr/labels/xdomes","name":"xdomes","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"graybeal","id":1266896,"avatar_url":"https://avatars.githubusercontent.com/u/1266896?v=3","gravatar_id":"","url":"https://api.github.com/users/graybeal","html_url":"https://github.com/graybeal","followers_url":"https://api.github.com/users/graybeal/followers","following_url":"https://api.github.com/users/graybeal/following{/other_user}","gists_url":"https://api.github.com/users/graybeal/gists{/gist_id}","starred_url":"https://api.github.com/users/graybeal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graybeal/subscriptions","organizations_url":"https://api.github.com/users/graybeal/orgs","repos_url":"https://api.github.com/users/graybeal/repos","events_url":"https://api.github.com/users/graybeal/events{/privacy}","received_events_url":"https://api.github.com/users/graybeal/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-04-21T03:29:23Z","updated_at":"2015-11-24T07:07:32Z","closed_at":"2015-11-24T07:07:32Z","body":"Reported by @graybeal .\r\n\r\nOriginal file: from https://ssiii.googlecode.com/svn/trunk/ontology/ice-of-land-origin.owl\r\n\r\nI reproduced the errors locally while monitoring the log file:\r\n\r\n- Use Upload option in the ORR\r\n- indicate the file and click upload\r\n- the log file shows errors like the following\r\n```\r\n2015-04-20 20:16:28,246 ERROR [com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler] - file:/Users/Shared/mmiregistry/ontmd/preuploads/ontmd_EC208D05E92089E85F9818D874A10951_3536197894802071235.tmp(line 35 column 50): {E201} Multiple children of property element\r\n2015-04-20 20:16:28,246 ERROR [com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler] - file:/Users/Shared/mmiregistry/ontmd/preuploads/ontmd_EC208D05E92089E85F9818D874A10951_3536197894802071235.tmp(line 35 column 99): {E202} Expecting XML start or end element(s). String data \"http://creativecommons.org/publicdomain/zero/1.0/\" not allowed. Maybe there should be an rdf:parseType='Literal' for embedding mixed XML content in RDF. Maybe a striping error.\r\n2015-04-20 20:16:28,247 ERROR [com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler] - file:/Users/Shared/mmiregistry/ontmd/preuploads/ontmd_EC208D05E92089E85F9818D874A10951_3536197894802071235.tmp(line 39 column 50): {E201} Multiple children of property element\r\n2015-04-20 20:16:28,247 ERROR [com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler] - file:/Users/Shared/mmiregistry/ontmd/preuploads/ontmd_EC208D05E92089E85F9818D874A10951_3536197894802071235.tmp(line 39 column 53): {E202} Expecting XML start or end element(s). String data \"1.0\" not allowed. Maybe there should be an rdf:parseType='Literal' for embedding mixed XML content in RDF. Maybe a striping error.\r\n2015-04-20 20:16:28,247 ERROR [com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler] - file:/Users/Shared/mmiregistry/ontmd/preuploads/ontmd_EC208D05E92089E85F9818D874A10951_3536197894802071235.tmp(line 43 column 14): {E201} Multiple children of property element\r\n2015-04-20 20:16:28,247 ERROR [com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler] - file:/Users/Shared/mmiregistry/ontmd/preuploads/ontmd_EC208D05E92089E85F9818D874A10951_3536197894802071235.tmp(line 43 column 97): {E202} Expecting XML start or end element(s). String data \"http://dataportal.ucar.edu/schemas/gcmd.owl#cryosphere_glaciers_ice_sheets_glaciers\" not allowed. Maybe there should be an rdf:parseType='Literal' for embedding mixed XML content in RDF. Maybe a striping error.\r\n...\r\n2015-04-20 20:16:28,278 ERROR [com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler] - file:/Users/Shared/mmiregistry/ontmd/preuploads/ontmd_EC208D05E92089E85F9818D874A10951_3536197894802071235.tmp(line 440 column 50): {E201} Multiple children of property element\r\n2015-04-20 20:16:28,278 ERROR [com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler] - file:/Users/Shared/mmiregistry/ontmd/preuploads/ontmd_EC208D05E92089E85F9818D874A10951_3536197894802071235.tmp(line 440 column 62): {E202} Expecting XML start or end element(s). String data \"Tabular berg\" not allowed. Maybe there should be an rdf:parseType='Literal' for embedding mixed XML content in RDF. Maybe a striping error.\r\n\r\n2015-04-20 20:23:27,544 DEBUG [org.mmisw.orrclient.core.OrrClientImpl] - _getOntologyContents(TempOntologyInfo): getting metadata\r\n2015-04-20 20:23:27,544 DEBUG [org.mmisw.orrclient.core.MetadataExtractor] - prepareOntologyMetadata: ontologyUri=http://www.w3.org/2002/07/owl\r\n\r\n2015-04-20 20:23:27,546 DEBUG [org.mmisw.orrclient.core.OrrClientImpl] - _getOntologyContents(TempOntologyInfo): getting entities\r\n2015-04-20 20:23:27,551 DEBUG [org.mmisw.orrclient.core.util.ontinfo.OntInfo] - subjects=0 individuals=0 classes=0 properties=0\r\n2015-04-20 20:23:27,551 DEBUG [org.mmisw.orrclient.core.util.ontype.OntTypeUtil] - determineType: ontUri=(ont is null) ontologyUri=http://www.w3.org/2002/07/owl --> other\r\n```\r\n\r\nThe last few lines above seem to indicate the file does not have a proper URI for the ontology itself defined, but somehow the tool takes `http://www.w3.org/2002/07/owl` as that URI..\r\n\r\n- the UI does not give any indication of errors so far\r\n- continue upload sequence (choosing \"re-hosted\" as hosting mode) and click finish.  Error Alert occurs: \r\n![image](https://cloud.githubusercontent.com/assets/556505/7245099/7155f68e-e79a-11e4-95b3-6c278f771d17.png)\r\n- and log file shows similar errors as in initial file upload, and also:\r\n```\r\n2015-04-20 20:16:28,280 DEBUG [org.mmisw.ont.JenaUtil2] - Returning Ontology with URI: null\r\n2015-04-20 20:16:28,281 DEBUG [org.mmisw.ont.JenaUtil2] - Returning Ontology with URI: null\r\n2015-04-20 20:16:28,281 INFO  [org.mmisw.orrclient.core.OrrClientImpl] - createOntologyReHosted: original namespace: null\r\n2015-04-20 20:16:28,281 DEBUG [org.mmisw.orrclient.core.OrrClientImpl] - Getting pre-existing properties from Ontology: null\r\n2015-04-20 20:16:28,282 DEBUG [org.mmisw.orrclient.core.ontmodel.OntModelUtil] - New ontology created with namespace http://www.w3.org/2002/07/owl/ base http://www.w3.org/2002/07/owl\r\n2015-04-20 20:16:28,282 DEBUG [org.mmisw.ont.JenaUtil2] - WARNING: more than one Ontology resource in OntModel. Second one found (but ignored): null\r\n2015-04-20 20:16:28,282 DEBUG [org.mmisw.ont.JenaUtil2] - Returning Ontology with URI: http://www.w3.org/2002/07/owl\r\n2015-04-20 20:16:28,283 DEBUG [org.mmisw.orrclient.core.OrrClientImpl] - New ontology created with namespace http://www.w3.org/2002/07/owl/ base http://www.w3.org/2002/07/owl\r\n```"}}