mmisw / mmiorr

Unmaintained old MMI ORR system (v2) -- New development at https://github.com/mmisw/orr
2 stars 1 forks source link

Facilitate conversion/registration of the UDUnits vocabulary #238

Closed mmisw closed 9 years ago

mmisw commented 9 years ago

_From steph_wa...@consolidated.net on March 08, 2010 12:51:12_

What capability do you want added or improved? Ability to create an ontology file from a (non-RDF) XML file of a vocabulary. Perhaps this exists, but I can't find it. Example file from UDUnits2 attached. Where do you want this capability to be accessible? from the create an ontology option What sort of input/command mechanism do you want? file import, with capability to edit What is the desired output (content, format, location)? ontology file Other details of your desired capability? What version of the product are you using? Please provide any additional information below (particular ontology/ies, text contents of vocabulary (voc2rdf), operating system, browser/version (Firefox, Safari, Chrome, IE, etc.), screenshot, etc.)

Attachment: udunits2-base.xml

Original issue: http://code.google.com/p/mmisw/issues/detail?id=238

mmisw commented 9 years ago

From caru...@gmail.com on March 24, 2010 15:59:35

Stephanie: No, this function does not exist, and I think is out of the scope of the ORR portal. Main reason is that it would be very complex to provide the UI and underlying capabilities to extract information from any kind of XML files in a generic way. Specific conversion tools would be necessary in these cases such that the output from those tools can either be in a format that ORR can read (ie., the CSV with the associated structure), or be submitted by the tool itself for registration using the programmatic mechanisms provided by ORR.

That said, XSLT can be used to process this file to create a CSV output that can then be submitted to ORR. http://www.w3schools.com/xsl/ includes a handy online conversion which I just used with your XML and the following XSLT:

<?xml version="1.0" encoding="ISO-8859-1"?>

UDUNITS-2

Name Symbol Aliases
This generates an HTML table but it is possible to indicate a text file and then make the changes in the XSLT to create the CSV output. The following is this XSLT: name, symbol, aliases , , I used the command-line tool 'xsltproc' (on my macbook) as follows: $ xsltproc udunits2-base.xslt udunits2-base.xml which generated: name, symbol, aliases meter, m, metre kilogram, kg, second, s, ampere, A, kelvin, K, mole, mol, candela, cd, **Labels:** portal
mmisw commented 9 years ago

_From steph_wa...@consolidated.net on March 24, 2010 20:15:50_

Ok for now. However, if we find that that others have this issue, we should re-consider adding the functionality. To date, the UDUnits2 case is the only one I have encountered. But, there may be more.

Status: WontFix

mmisw commented 9 years ago

From caru...@gmail.com on August 05, 2010 12:29:21

I'm re-opening this request with the idea that particular external tools can be created to facilitate the conversion from particular cases, but not as a functionality to be integrated with the ORR portal in a generic way (which, as I said, would be complex task and outside of the scope of ORR itself).

In this sense, we already have the "watchdog" module [1], which is currently being used to convert the CF XML vocabulary into SKOS. The plan is to incorporate other vocabularies in that module, like the UDUnits.

So, I'm adjusting the title of this issue to make it precise: "Facilitate conversion/registration of the UDUnits vocabulary" -- was: "How to import XML files?"). Also adjusted the labels. Other relevant vocabularies would have their own issue entries.

Summary: Facilitate conversion/registration of the UDUnits vocabulary
Status: Started
Owner: carueda
Cc: jgrayb...@ucsd.edu
Labels: -Priority-Medium -portal Priority-High watchdog Milestone-Beta1

mmisw commented 9 years ago

From caru...@gmail.com on August 17, 2010 12:41:51

Removed "beta1" label per Tech 2010-08-17 meeting.

Labels: -Milestone-Beta1 content

mmisw commented 9 years ago

From jbgrayb...@mindspring.com on August 22, 2014 09:51:09

This issue has been significantly addressed as part of the recent import of udunits. See https://github.com/mmisw/udunits2rdf .

mmisw commented 9 years ago

From caru...@gmail.com on August 22, 2014 11:53:22

"Done" just to mark this closed as we are focusing on the github project for this now. (Re-open if you don't agree.)

Status: Done
Cc: -jgrayb...@ucsd.edu grayb...@marinemetadata.org