lib/marc2linkeddata/resource.rb
# This method is often overloaded in subclasses because
# RDF services use variations in the URL 'extension' patterns; e.g.
# see Loc#rdf and Viaf#rdf
This method is often overloaded in subclasses because
RDF services use variations in the URL 'extension' patterns; e.g.
see Loc#rdf and Viaf#rdf
This method is often overloaded in subclasses because RDF services use variations in the URL ' extension ' patterns ; e . g . see Loc#rdf and Viaf#rdf
def rdf
      return @rdf unless @rdf.nil?
      @rdf = get_rdf(@iri.to_s)
    end
def rdf return @rdf unless @rdf . nil? @rdf = get_rdf ( @iri . to_s ) end
This method is often overloaded in subclasses because
RDF services use variations in the URL 'extension' patterns; e.g.
This method is often overloaded in subclasses because RDF services use variations in the URL ' extension ' patterns ; e . g .
# TODO: try to retrieve the rdf from a local triple store # TODO: if local triple store fails, try remote source(s) # TODO: if retrieved from a remote source, save the rdf to a local triple store