W3C home > Mailing lists > Public > semantic-web@w3.org > June 2007

Re: SPARQL query JSON/XML source formats

From: Joshua Tauberer <jt@occams.info>
Date: Fri, 15 Jun 2007 08:12:32 -0400
Message-ID: <46728230.9030904@occams.info>
To: Richard Newman <r.newman@reading.ac.uk>
CC: carmen <_@whats-your.name>, semantic-web@w3.org

Richard Newman wrote:
>> I've always wondered why SPARQL or other RDF queries were not 
>> represented in RDF.....
> ... because RDF isn't particularly human-writable, syntax helps a lot of 
> people when they're writing, and SPARQL wouldn't benefit a great deal 
> from extensibility*.

Okay, and I agree that having an easy-to-write syntax (and even an 
SQL-ish syntax) is important, but given that N3 has variables and 
formulas, your example query "SELECT * { ?x a ?y } " could easily have 
been written:

   ?x a ?y.

Or at least:

:query a sparql:Query ;
    sparql:hasBGP { ?x a ? y }.

- Josh Tauberer


"Yields falsehood when preceded by its quotation!  Yields
falsehood when preceded by its quotation!" Achilles to
Tortoise (in "Gödel, Escher, Bach" by Douglas Hofstadter)
Received on Friday, 15 June 2007 12:16:26 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 08:45:01 UTC