PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX voaf: <http://purl.org/vocommons/voaf#>
PREFIX dc:   <http://purl.org/dc/terms/>
PREFIX vann: <http://purl.org/vocab/vann/>
PREFIX st: <http://ns.inria.fr/sparql-template/>
PREFIX doc: <https://w3id.org/seas/documentation/html/loweringRule#>
BASE <https://saref.etsi.org/documentation/>

TEMPLATE doc:date (?ontology, ?predicate, ?term){
    "- **" str(?term) ":** " str(?date) 
    st:call-template(doc:moredates, ?ontology, ?predicate)
    "\n"
} WHERE { 
    ?ontology ?predicate ?date .
} ORDER BY DESC (?date) LIMIT 1