lib/reality/describers/wikidata/sparql.rb in reality-0.1.0.alpha vs lib/reality/describers/wikidata/sparql.rb in reality-0.1.0.alpha2
- old
+ new
@@ -27,10 +27,9 @@
def initialize(log: nil)
@log = log || Logger.new(nil)
end
def query(predicates)
- p predicates
predicates_query = predicates.map { |name, datatype, value|
'%<predicate>s %<value>s' % {predicate: name, value: recode_value(value, datatype)}
}.join('; ')
query = FIND_BY_PROPERTY % {predicates: predicates_query}
log.debug "Wikidata SPARQL: #{query}"