lib/sparql/grammar/parser11.rb in sparql-3.1.4 vs lib/sparql/grammar/parser11.rb in sparql-3.1.5
- old
+ new
@@ -876,13 +876,13 @@
end
# [80] Object ::= GraphNode | EmbTP
production(:Object) do |input, data, callback|
object = data[:GraphNode] || data[:EmbTP]
+ add_prod_datum(:pattern, data[:pattern])
if object
if prod_data[:Verb]
add_pattern(:Object, subject: prod_data[:Subject], predicate: prod_data[:Verb], object: object)
- add_prod_datum(:pattern, data[:pattern])
elsif prod_data[:VerbPath]
add_prod_datum(:path,
SPARQL::Algebra::Expression(:path,
prod_data[:Subject].first,
prod_data[:VerbPath],