Sha256: 1adc77276a8d04c4649c55b460e5f05ea59a700250dee4444104b8992619800a

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

module RDF::JSON
  ##
  # RDF/JSON parser.
  #
  # @example Obtaining an RDF/JSON reader class
  #   RDF::Reader.for(:json)         #=> RDF::JSON::Reader
  #   RDF::Reader.for("spec/data/test.json")
  #   RDF::Reader.for(:file_name      => "spec/data/test.json")
  #   RDF::Reader.for(:file_extension => "json")
  #   RDF::Reader.for(:content_type   => "application/json") 
  #
  # @example Parsing RDF statements from an RDF/JSON file
  #   RDF::JSON::Reader.open("spec/data/test.json") do |reader|
  #     reader.each_statement do |statement|
  #       puts statement.inspect
  #     end
  #   end
  #
  # @example Parsing RDF statements from an RDF/JSON string
  #   data = StringIO.new(File.read("spec/data/test.json"))
  #   RDF::JSON::Reader.new(data) do |reader|
  #     reader.each_statement do |statement|
  #       puts statement.inspect
  #     end
  #   end
  #
  # @see http://n2.talis.com/wiki/RDF_JSON_Specification
  class Reader < RDF::Reader
    format RDF::JSON::Format

    # TODO
  end # class Reader
end # module RDF::JSON

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdf-json-0.0.2 lib/rdf/json/reader.rb
rdf-json-0.0.1 lib/rdf/json/reader.rb