Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PREFIX st: <http://ns.inria.fr/sparql-template/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX fun: <http://w3id.org/sparql-generate/fn/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX ex: <http://example.org/>
TEMPLATE <example/main.rqg>( ?example ) {
TEMPLATE <header.rqg>( TEMPLATE <term/label.rqg>( ?example ) . , ?pathToStatic , false ).
"""
<header id="g-header">
This is an example { ?example }
</header>
"""
TEMPLATE {
?s " " ?p " " ?o " ."
; separator = "\n"
} WHERE {
?s ?p ?o .
} .
TEMPLATE <footer.rqg>( ?pathToStatic , false ) .
}
FROM ?example
WHERE {
BIND( "../../../static" AS ?pathToStatic )
}
ORDER BY DESC( ?ontoRef )
LIMIT 1