Method: RDF::Reader#prefixes

Defined in:
lib/rdf/reader.rb

#prefixesHash{Symbol => RDF::URI}

Returns the URI prefixes currently defined for this reader.

Examples:

reader.prefixes[:dc]  #=> RDF::URI('http://purl.org/dc/terms/')

Returns:

Since:

  • 0.3.0



367
368
369
# File 'lib/rdf/reader.rb', line 367

def prefixes
  @options[:prefixes] ||= {}
end