Created
August 3, 2015 22:21
-
-
Save anarchivist/a305c02f7485ea63c409 to your computer and use it in GitHub Desktop.
Testing language enrichment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb(main):259:0> lang = DPLA::MAP::Controlled::Language.new | |
| => #<DPLA::MAP::Controlled::Language:0x3fc041867220(default)> | |
| irb(main):260:0> lang.providedLabel = 'eng' | |
| => "eng" | |
| irb(main):262:0> puts iso.enrich_value(lang).first.dump :ttl | |
| <http://lexvo.org/id/iso639-3/eng> a <http://www.w3.org/2004/02/skos/core#Concept> . | |
| [ | |
| a <http://www.w3.org/2004/02/skos/core#Concept>; | |
| <http://dp.la/about/map/providedLabel> "eng"; | |
| <http://www.w3.org/2004/02/skos/core#exactMatch> <http://lexvo.org/id/iso639-3/eng>; | |
| <http://www.w3.org/2004/02/skos/core#prefLabel> "English" | |
| ] . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment