alessio-uni-bologna / linked-data-api

Automatically exported from code.google.com/p/linked-data-api
0 stars 0 forks source link

Using api:template on a Viewer does not allow the use of "SERVICE" keyword to fetch external data #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In section "Viewing Resources/Specialised viewers" it says :

"The graph can be constructed explicitly using SPARQL syntax (specifically 
ConstructTriples) within:

    the _template request parameter or
    the api:template property on the viewer"

This allows to specify a chunk of SPARQL that will basically be wrapped around 
a CONSTRUCT { ... }. However if local data contains links to external data, 
such as with owl:sameAs, then it is desirable to be able to fetch properties on 
the external data and returned by the viewer. In that case I would like to be 
able to write the entire SPARQL query rather than just the CONSTRUCT { ... } 
part so that I can use the SERVICE keyword and so that I am to be able to 
return properties stored elsewhere on the linked data cloud.
Using SERVICE keyword works fine on the "Selector" part by the way.

Or is there another way to achieve this ?

Original issue reported on code.google.com by thomas.f...@sparna.fr on 8 Feb 2013 at 3:46