diff options
Diffstat (limited to 'rdflib/plugins/sparql/parser.py')
-rw-r--r-- | rdflib/plugins/sparql/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rdflib/plugins/sparql/parser.py b/rdflib/plugins/sparql/parser.py index a8a4426b..eda40bf2 100644 --- a/rdflib/plugins/sparql/parser.py +++ b/rdflib/plugins/sparql/parser.py @@ -58,7 +58,7 @@ def expandTriples(terms): elif t == ';': if i+1 == len(terms) or terms[i+1] == ";" or terms[i+1] == ".": continue # this semicolon is spurious - res.append(res[-3]) + res.append(res[0]) elif isinstance(t, list): # BlankNodePropertyList # is this bnode the object of previous triples? |