{"action":"created","issue":{"url":"https://api.github.com/repos/mmisw/mmiorr/issues/214","labels_url":"https://api.github.com/repos/mmisw/mmiorr/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/mmisw/mmiorr/issues/214/comments","events_url":"https://api.github.com/repos/mmisw/mmiorr/issues/214/events","html_url":"https://github.com/mmisw/mmiorr/issues/214","id":55182254,"number":214,"title":"Direct registration of ontology ","user":{"login":"mmisw","id":4140922,"avatar_url":"https://avatars.githubusercontent.com/u/4140922?v=3","gravatar_id":"","url":"https://api.github.com/users/mmisw","html_url":"https://github.com/mmisw","followers_url":"https://api.github.com/users/mmisw/followers","following_url":"https://api.github.com/users/mmisw/following{/other_user}","gists_url":"https://api.github.com/users/mmisw/gists{/gist_id}","starred_url":"https://api.github.com/users/mmisw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmisw/subscriptions","organizations_url":"https://api.github.com/users/mmisw/orgs","repos_url":"https://api.github.com/users/mmisw/repos","events_url":"https://api.github.com/users/mmisw/events{/privacy}","received_events_url":"https://api.github.com/users/mmisw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mmisw/mmiorr/labels/1+star","name":"1 star","color":"FFFFFF"},{"url":"https://api.github.com/repos/mmisw/mmiorr/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mmisw/mmiorr/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/mmisw/mmiorr/labels/ooici","name":"ooici","color":"FFFFFF"},{"url":"https://api.github.com/repos/mmisw/mmiorr/labels/portal","name":"portal","color":"FFFFFF"},{"url":"https://api.github.com/repos/mmisw/mmiorr/labels/Priority-Critical","name":"Priority-Critical","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-22T17:23:27Z","updated_at":"2015-01-22T17:23:40Z","closed_at":null,"body":"_From [caru...@gmail.com](https://code.google.com/u/113886747689301365533/) on November 09, 2009 10:22:53_\n\nWhat capability do you want added or improved? Direct mechanism (as opposed to the portal interface) to register an\r\nontology so a client can simply specify the desired ontology (ideally\r\ncontaining the recommended metadata--see below) and a few required fields\r\nincluding username and password. Where do you want this capability to be accessible? In the main ORR service. What sort of input/command mechanism do you want? A simple HTTP POST call where I specify the ontology file,\r\nusername/password and other relevant information (to be determined). What is the desired output (content, format, location)? A textual response (perhaps in XML) indicating the result of the operation:\r\ni) success, confirming the registered ontology URI; ii) error, including\r\nthe reason of the error. Other details of your desired capability? 0) The ontology is to registered in \"re-hosted\" mode. (We can later add the\r\nability to register in \"fully hosted\" mode.)\r\n\r\n1) An HTML form should be included to illustrate the required information\r\n(and demonstrate the functionality). \r\n\r\n2) A programmatic example (in java) showing how to use the service.\r\n\r\n3) The submitted ontology should include metadata as recommended by MMI.\r\nInitially, this can be relaxed while testing is performed. For now, the\r\nsubmitted ontology can include the following prefixes:\r\n\r\n    xmlns:omvmmi=\" http://mmisw.org/ont/mmi/20081020/ontologyMetadata/ \"\r\n    xmlns:omv=\" http://omv.ontoware.org/2005/05/ontology# \"\r\n\r\nand define the following properties associated with the ontology resource:\r\n\r\n        \\<omv:name> THE TITLE OF THE ONTOLOGY \\</omv:name>\r\n\r\n        \\<omv:acronym> A SHORT NAME BY WHICH THE ONTOLOGY IS KNOWN\r\n\\</omv:acronym>\r\n\r\n\r\n\r\n        \\<omv:hasCreator> AUTHOR/CREATOR OF THE ONTOLOGY CONTENTS\r\n\\</omv:hasCreator>\r\n\r\n\r\n        \\<omv:description> DESCRIPTION OF THE ONTOLOGY \\</omv:description>\n\n_Original issue: http://code.google.com/p/mmisw/issues/detail?id=214_"},"comment":{"url":"https://api.github.com/repos/mmisw/mmiorr/issues/comments/71059617","html_url":"https://github.com/mmisw/mmiorr/issues/214#issuecomment-71059617","issue_url":"https://api.github.com/repos/mmisw/mmiorr/issues/214","id":71059617,"user":{"login":"mmisw","id":4140922,"avatar_url":"https://avatars.githubusercontent.com/u/4140922?v=3","gravatar_id":"","url":"https://api.github.com/users/mmisw","html_url":"https://github.com/mmisw","followers_url":"https://api.github.com/users/mmisw/followers","following_url":"https://api.github.com/users/mmisw/following{/other_user}","gists_url":"https://api.github.com/users/mmisw/gists{/gist_id}","starred_url":"https://api.github.com/users/mmisw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmisw/subscriptions","organizations_url":"https://api.github.com/users/mmisw/orgs","repos_url":"https://api.github.com/users/mmisw/repos","events_url":"https://api.github.com/users/mmisw/events{/privacy}","received_events_url":"https://api.github.com/users/mmisw/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T17:23:40Z","updated_at":"2015-01-22T17:23:40Z","body":"_From [caru...@gmail.com](https://code.google.com/u/113886747689301365533/) on November 10, 2009 15:59:20_\n\nI did changes to accept any (valid) RDF file and prepare to indicate desired model\r\ngraph in the back-end.\r\n\r\nPlease note: \r\n\r\n1) the Ontology URI field is required as the identification of the registered entry.\r\nNo information (base URI or any other) is extracted from the contents of the file. \r\nThe URI given in the form is what will be used as ID.\r\n\r\n2) The form now includes a graphId parameter.  This is intended to identify a\r\nparticular model graph in the MMI repository.  It has two options: \"ooici\" and\r\n\"main\".  At time of writing, this is NOT yet fully implemented in the back-end (that\r\nis, the RDF contents always go to the main ORR graph) but I will work on that later.\r\n\r\nI tested these changes with the inf-all-ooi.rdf file and the following parameters in\r\nthe form:\r\n\r\nOntology URI: http://mmisw.org/ont/ooi-ci/all-TEST graphId: ooici\r\n\r\nNote, I added -TEST for the URI in this test because I will be removing that entry\r\nshortly.  Please do your test with the desired URI ( http://mmisw.org/ont/ooi-ci/all ).\r\n\r\n\r\nThe response to the test was:\r\n\r\n\\<success>\r\n  \\<ontologyUri> http://mmisw.org/ont/ooi-ci/all-TEST</ontologyUri> \\<graphId>ooici</graphId>\r\n  \\<msg>New ontology registered</msg>\r\n\\</success>"}}