Skip to content

Obtaining URLs of the queries used in a component

timrdf edited this page Oct 29, 2012 · 5 revisions

What we will cover

This page describes the template variables that can be used to determine the query URL and the endpoint to which the query was submitted. This can be useful to convey provenance results rendered in the response.

Let's get to it!

Accessing a URL for the query used

To obtain the URLs of the queries used, the form is similar to obtaining data using models (refer to How to use results).

In this case, the format is

{{lodspk.queries[.<endpoint>]*.query}}

Thus, to get the URL of the query named details.query that runs agains the local endpoint, we write

{{lodspk.queries.details}}

To obtain the URL of the query named dbpediaLabels.query that runs agains dbpedia sparql endpoint after all the local queries has been executed, we write

{{lodspk.queries.dbpedia.dbpediaLabels}}

Which endpoint was the query submitted to?

  • models.blah your endpoint was {{conf.ns.local}}
  • models.dbpedia.blah your endpoint was {{conf.ns.dbpedia}}
  • models.logd.blah your endpoint was {{conf.ns.logd}}

What's next?

Clone this wiki locally