SparqlProtocolDiscussion
What http protocol should we use before the Sparql protocol spec is finished? This question came up in a gargonza discussion
the official hack
Andy Seaborne: Please, please, please use the latest names (as of the latest editors draft:
http://www.w3.org/2001/sw/DataAccess/proto-wd/
Our hack
( basis from SPARQL spec: http://www.w3.org/TR/rdf-sparql-protocol/)
and the draft: http://www.w3.org/2001/sw/DataAccess/proto-wd/
HTTP Query Parameters
Parameter Name | Parameter Value Type | Parameter Semantics |
query | url-encoded querystring | Contains a legal sparql query |
default-graph-uri | string or anyURI | default graph |
named-graph-uri | string or anyURI | more graphs for integrated querying |
The RDF dataset is composed of one default or background RDF graph, identified by one default-graph-uri type; and by zero or more named RDF graphs, identified by zero or more named-graph-uri types. These correspond to the FROM and FROM NAMED keywords in SPARQL, respectively.
Result has to be in RDF/XML by default, see the example
Other current candidates
http://librdf.org/2005/sparqling
cgiParameter |
query |
query-lang |
data |
format |
output-xslt |
limit |
http://www.sparql.org/query.html
- No graph-id => take base URL as target
Parameter |
lang |
query |
graph-id |
stylesheet |
this is from http://www.w3.org/TR/rdf-sparql-protocol/ HTTP Query Parameters
Parameter Name | Parameter Value Type | Parameter Semantics |
query | FIXME | Contains a legal RDF query language ...FIXME... |
query-uri | anyURI | Identifies a legal RDF query language... |
query-lang | anyURI | Identifies the type of RDF query language (FIXME) contained in the query parameter |
graph-id | string or anyURI | Identifies a target graph...SOURCE/FROM (FIXME) |
distinct | boolean | DistinctQueryResults |
limit | integer | LimitQueryResults |