Hi Isuru, In SPARQL you dont actually specify input parameters separately in a separate SPARQL notation. You include your parameter in the SPARQL select and where clause and then inside data services you map it as an input parameter.
For more details please refer [1<http://sparkletechthoughts.blogspot.com/2011/09/extracting-rdf-data-using-wso2-data.html>] . Here it takes agency as the input parameter. [1<http://sparkletechthoughts.blogspot.com/2011/09/extracting-rdf-data-using-wso2-data.html>] http://sparkletechthoughts.blogspot.com/2011/09/extracting-rdf-data-using-wso2-data.html Regards, Amani On Wed, Feb 22, 2012 at 9:34 AM, Isuru Suriarachchi <[email protected]> wrote: > 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 : [email protected] > blog : http://isurues.wordpress.com/ > > lean . enterprise . middleware > >
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
