main.rqg 979 Bytes
Newer Older
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