ruby-rdf / rdf-vocab

Common RDF Vocabularies
The Unlicense
50 stars 29 forks source link

RDF::Vocab::IANA['first'] no longer works #32

Closed jcoyne closed 8 years ago

jcoyne commented 8 years ago
/home/travis/build/projecthydra-labs/curation_concerns/vendor/bundle/ruby/2.2.0/gems/rdf-1.99.0/lib/rdf/vocabulary.rb:739:in `rescue in []': first not found in vocabulary RDF::Vocab::IANA (KeyError)

    from /home/travis/build/projecthydra-labs/curation_concerns/vendor/bundle/ruby/2.2.0/gems/rdf-1.99.0/lib/rdf/vocabulary.rb:737:in `[]'

    from /home/travis/build/projecthydra-labs/curation_concerns/vendor/bundle/ruby/2.2.0/gems/activefedora-aggregation-0.6.0/lib/active_fedora/orders/builder.rb:27:in `block in build'

    from /home/travis/build/projecthydra-labs/curation_concerns/vendor/bundle/ruby/2.2.0/gems/activefedora-aggregation-0.6.0/lib/active_fedora/orders/builder.rb:26:in `tap'

    from /home/travis/build/projecthydra-labs/curation_concerns/vendor/bundle/ruby/2.2.0/gems/activefedora-aggregation-0.6.0/lib/active_fedora/orders/builder.rb:26:in `build'

    from /home/travis/build/projecthydra-labs/curation_concerns/vendor/bundle/ruby/2.2.0/gems/active-fedora-9.6.1/lib/active_fedora/associations/builder/association.rb:13:in `build'

    from /home/travis/build/projecthydra-labs/curation_concerns/vendor/bundle/ruby/2.2.0/gems/activefedora-aggregation-0.6.0/lib/active_fedora/aggregation/base_extension.rb:58:in `orders'
jcoyne commented 8 years ago
irb(main):001:0> RDF::Vocab::IANA['first']
=> #<RDF::Vocabulary::Term:0x3fef0b95c600 URI:http://www.iana.org/assignments/link-relations/first>
$ bundle show rdf-vocab
/Users/justin/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rdf-vocab-0.8.6

Error occurs when upgrading rdf-vocab to 0.8.7

RDF::Vocab::IANA['first']
KeyError: first not found in vocabulary RDF::Vocab::IANA
acoburn commented 8 years ago

I believe this issue is described here: #31

jcoyne commented 8 years ago

@acoburn No problem with the URI's changing, but I don't have a way to get the first term.

gkellogg commented 8 years ago

Sorry, something else must have been messed up; I'll check and fix/release later today. AFK right now

jcoyne commented 8 years ago

@gkellogg Ok. Thanks.

jcoyne commented 8 years ago

Looks like all the properties went away actually.

acoburn commented 8 years ago

@jcoyne yes exactly: https://github.com/ruby-rdf/rdf-vocab/blob/develop/lib/rdf/vocab/iana.rb is now empty

grosscol commented 8 years ago

I don't see why the properties file vocab/iana.rb wasn't properly generated from the .ttl file. Is there a url mismatch?

https://github.com/ruby-rdf/rdf-vocab/commit/2314c1302e93c04d2cff4e93d4ceb7d0e591d430

grosscol commented 8 years ago

Looks like the vocab-fetch was looking for the wrong url, or at least that's why I assume given the ouput.

# Vocabulary for <http://www.iana.org/assignments/link-relations/>

gkellogg commented 8 years ago

That's probably it, updates the source file, but not the vocabulary def.

gkellogg commented 8 years ago

Fixed in d443106bd8fad69cf51f9af0187d883b84586663 and released in 0.8.7.1.