diff options
| author | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-02-16 09:21:41 +0100 |
|---|---|---|
| committer | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-02-16 09:21:41 +0100 |
| commit | 376213ffcdd6b65acd104ddaa34b272ae8656823 (patch) | |
| tree | fa0cd7e4af50c3e48ecef53640a30f5096bdb1c5 | |
| parent | b12f72811ef9501ebabe832d197b6215170e0c70 (diff) | |
| download | rdflib-issue714.tar.gz | |
fixed expandTriples for nested bnodesissue714
| -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? |
