On Fri, Sep 20, 2013 at 1:37 PM, Joshua TAYLOR <[email protected]> wrote:
>> Try the "sparql" command:
>>
>> sparql --strict --data empty.n3 "select * where { ?s <p>{2} ?o }"
>>
>> "arq" implies the extended language and "--strict" really refers to
>> execution semantics. "arq --strict" could be made to be (strict) SPARQL
>> 1.1.
>
> sparql doesn't choke on <p>{2} either:
>
> $ sparql --data empty.n3 "select * where { ?s <p>{2} ?o }"
> ---------
> | s | o |
> =========
> ---------
I misread that, and didn't include --strict when I did it. However,
it doesn't reject the query with --strict, either:
$ sparql --strict --data empty.n3 "select * where { ?s <p>{2} ?o }"
---------
| s | o |
=========
---------
However, I figured out the right --syntax argument to use:
$ sparql --syntax SPARQL_11 --data empty.n3 "select * where { ?s <p>{2} ?o }"
Encountered " "{" "{ "" at line 1, column 24.
…
Sure enough, that works with arq, as well:
$ arq --syntax SPARQL_11 --data empty.n3 "select * where { ?s <p>{2} ?o }"
Encountered " "{" "{ "" at line 1, column 24.
…
--
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/