summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Aastrand Grimnes <gromgull@gmail.com>2017-02-15 12:12:13 +0100
committerGunnar Aastrand Grimnes <gromgull@gmail.com>2017-02-15 14:08:40 +0100
commitb12f72811ef9501ebabe832d197b6215170e0c70 (patch)
treef88e047e07d501e2f738dd433d92725918988d6a
parenta412a5bedd3d7278e9b3225f39b64cbdb3eb6de3 (diff)
downloadrdflib-b12f72811ef9501ebabe832d197b6215170e0c70.tar.gz
SPARQL Parser: allow ObjectListPath for repeat properties
https://www.w3.org/2013/sparql-errata#errata-query-3
-rw-r--r--rdflib/plugins/sparql/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdflib/plugins/sparql/parser.py b/rdflib/plugins/sparql/parser.py
index 6c56b72d..a8a4426b 100644
--- a/rdflib/plugins/sparql/parser.py
+++ b/rdflib/plugins/sparql/parser.py
@@ -498,7 +498,7 @@ ObjectList = Object + ZeroOrMore(',' + Object)
# [83] PropertyListPathNotEmpty ::= ( VerbPath | VerbSimple ) ObjectListPath ( ';' ( ( VerbPath | VerbSimple ) ObjectList )? )*
PropertyListPathNotEmpty = (VerbPath | VerbSimple) + ObjectListPath + ZeroOrMore(
- ';' + Optional((VerbPath | VerbSimple) + ObjectList))
+ ';' + Optional((VerbPath | VerbSimple) + ObjectListPath))
# [82] PropertyListPath ::= Optional(PropertyListPathNotEmpty)
PropertyListPath = Optional(PropertyListPathNotEmpty)