- From: Henry Story <henry.story@bblfish.net>
- Date: Wed, 6 Jun 2007 14:23:40 -0700
- To: Semantic Web <semantic-web@w3.org>
Just a thought, and a lot of handwaving. Could one describe restful
web service with SPARQL?
1. FORMS and SPARQL
-------------------
Notice how one can look at query interfaces as simplified SPARQL
statements
Look at the query:
http://www.altavista.com/web/results?
itag=ody&pg=aq&aqmode=s&aqa=house&nbq=15&stq=20
this can be easily mapped to a SPARQL query:
CONSTRUCT { ?webpage dc:title ?title;
dc:summary ?summary . }
WHERE {
?webpage :contains ??aqa ;
dc:title ?title;
dc:summary ?summary .
}
OFFSET ??stq
LIMIT ??nbq
I have added ??var variable with two questionmarks for variables that
are bound by the altavista param=value pairs
These are replaced first in the query. The result is what would be
returned if AltaVista returned a SPARQL result.
Let me call this metaSPARQL.
2. RESFUL web services
----------------------
So with this type of vocabulary, we would then be able to describe
semantic web forms using metaSPARQL. So perhaps we have something to
describe
http://amazon.com/buy/{??pid}/{??transactionid}
CONSTRUCT { ?product soldto ?person }
WHERE {
?person amzon:id ??pid .
?product amazon:id ??prodid .
}
Somehow we have to specify that the ??transacitonid is created by the
post action.
I am feeling my way around this problem in the dark, but I have a
feeling there is a light switch around here...
Henry
Home page: http://bblfish.net/
Sun Blog: http://blogs.sun.com/bblfish/
Foaf name: http://bblfish.net/people/henry/card#me
Received on Wednesday, 6 June 2007 21:23:38 UTC