[Carbon-dev] Using input parameters with RDF data services
Isuru Suriarachchi
isuru at wso2.com
Tue Feb 21 23:04:04 EST 2012
Hi Amani,
I just tried out the RDF data service at [1]. Sample works fine, but it
looks like the query doesn't use the input parameter. With SQL queries we
can pass input parameters into the query using ":input" notation. How can I
pass input parameters into the following Sparcl query which is used in the
sample?
PREFIX space: <http://purl.org/net/schemas/space/>
PREFIX relevance: <http://a9.com/-/opensearch/extensions/relevance/1.0/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT ?homepage ?name ?alternateName ?internationalDesignator ?mass
?score ?launch ?agency ?description
WHERE {
?craft foaf:homepage ?homepage.
?craft foaf:name ?name.
?craft space:alternateName ?alternateName.
?craft space:internationalDesignator ?internationalDesignator.
?craft space:mass ?mass.
?craft relevance:score ?score.
?craft space:launch ?launch.
?craft space:agency ?agency.
?craft dc:description ?description.
}
Thanks,
~Isuru
[1] http://wso2.org/project/data-services/2.6.3/docs/rdf.html
--
Isuru Suriarachchi
Technical Lead
WSO2 Inc. http://wso2.com
email : isuru at wso2.com
blog : http://isurues.wordpress.com/
lean . enterprise . middleware
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.wso2.org/pipermail/carbon-dev/attachments/20120221/d2164523/attachment.html>
More information about the Carbon-dev
mailing list