Sha256: 6887a050ee8ce0132de7c9359c46fdf2352a0e8df873410852cd36bbe4cccfda
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
#!/usr/bin/env ruby require_relative '_base' require 'reality' titles = ARGV.dup source = Reality::Describers::Wikidata.new titles.each do |t| #observations = t =~ /^Q\d+$/ ? source.id(t) : source.get(t) #observations.each { |name, val| puts '%s: %p' % [name, val] } entity = source.get(t) puts "#{t}\n" + "="*t.length + "\n" #observations.each(&method(:puts)) puts entity.describe end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reality-0.1.0.alpha2 | test/wikidata.rb |
reality-0.1.0.alpha | test/wikidata.rb |