diff --git a/lib/src/sparql/parser.rs b/lib/src/sparql/parser.rs index d2c7b74f..6deb11b8 100644 --- a/lib/src/sparql/parser.rs +++ b/lib/src/sparql/parser.rs @@ -264,7 +264,7 @@ mod grammar { pv.extend(p.visible_variables().into_iter().cloned()) //TODO: is it really useful to do a projection? } } - let mut m = GraphPattern::from(p); + let mut m = p; //ORDER BY if let Some(order) = order_by { diff --git a/lib/src/sparql/sparql_grammar.rustpeg b/lib/src/sparql/sparql_grammar.rustpeg index ac68711d..65cc44a4 100644 --- a/lib/src/sparql/sparql_grammar.rustpeg +++ b/lib/src/sparql/sparql_grammar.rustpeg @@ -46,7 +46,7 @@ SelectQuery -> Query = s:SelectClause _ d:DatasetClauses _ w:WhereClause _ g:Gro //[8] SubSelect -> GraphPattern = s:SelectClause _ w:WhereClause _ g:GroupClause? _ h:HavingClause? _ o:OrderClause? _ l:LimitOffsetClauses? _ v:ValuesClause { //TODO: Modifiers - build_select(s, w, g, h, o, l, v, state).into() + build_select(s, w, g, h, o, l, v, state) } //[9] @@ -308,7 +308,7 @@ InlineData -> PartialGraphPattern = "VALUES"i _ p:DataBlock { PartialGraphPatter //[62] DataBlock -> GraphPattern = l:(InlineDataOneVar / InlineDataFull) { - GraphPattern::Data(l).into() + GraphPattern::Data(l) } //[63]