Module: PubliSci::Vocabulary

Included in:
Prov::DSL, Prov::Element
Defined in:
lib/bio-publisci/mixins/vocabulary.rb

Instance Method Summary collapse

Instance Method Details

#vocabulary(url) ⇒ Object



3
4
5
6
# File 'lib/bio-publisci/mixins/vocabulary.rb', line 3

def vocabulary(url)
  raise "InvalidVocabulary: #{url} is not a valid URI" unless RDF::Resource(url).valid?
  RDF::Vocabulary.new(url)
end