ODM2 / YODA-File

The YAML Observation Data Archive & exchange (YODA) File Format
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Switched CV's from "name" to "term" #21

Closed SRGDamia1 closed 9 years ago

SRGDamia1 commented 9 years ago

I switched over the implementation of all of the controlled vocabularies in the templates to require a controlled term instead of the term's name. Will this make problems with parsing? @jmeline will this cause problems for you?

horsburgh commented 9 years ago

Any user displays (including the drop down lists in the Excel Templates) of the CV "terms" need to use the human readable "name" and not the URI friendly "term".

SRGDamia1 commented 9 years ago

Ok, I'll switch it back. Will the name always be the second column of every downloadable csv? I pulled the term because I assumed it would always be the first column.

horsburgh commented 9 years ago

Are you using the SKOS or the CSV? Either way it would be best to reference the element/column by name and not by an index/column number. It's probably safe to assume the format won't change because it is coded in, but, just in case...

SRGDamia1 commented 9 years ago

I'm using the csv; it's much easier for me to import into excel. I can work on the code to find the reference by name, but it was much faster and easier to just pull the column number.

emiliom commented 9 years ago

I also agree that you should reference by column name rather than number/index.

SRGDamia1 commented 9 years ago

Fixed to pull the name instead of the term and to search csv for the column titled "name." Upped the version to 0.2.1-alpha. Note that the new code is dependent on there being a column titled "name" in all lower case.