Class: Marc2LinkedData::Isni

Inherits:
Resource show all
Defined in:
lib/marc2linkeddata/isni.rb

Constant Summary collapse

PREFIX =

Interesting slide presentation about ISNI www.slideshare.net/JaniferGatenby/viaf-and-isni-ifla-2014-0815

'http://www.isni.org/isni/'

Instance Attribute Summary

Attributes inherited from Resource

#iri

Instance Method Summary collapse

Methods inherited from Resource

#get_rdf, #id, #initialize, #iri_types, #rdf_find_object, #rdf_find_subject, #rdf_uri, #rdf_valid?, #resolve_external_auth, #same_as, #same_as_array

Constructor Details

This class inherits a constructor from Marc2LinkedData::Resource

Instance Method Details

#rdfObject



12
13
14
15
16
17
18
# File 'lib/marc2linkeddata/isni.rb', line 12

def rdf
  # e.g. 'http://www.isni.org/isni/0000000109311081'
  return nil if @iri.nil?
  return @rdf unless @rdf.nil?
  uri4rdf = @iri.to_s + '.rdf'
  @rdf = get_rdf(uri4rdf)
end