abstract.rqg 477 Bytes
Newer Older
PREFIX fun: <http://w3id.org/sparql-generate/fn/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dcterms: <http://purl.org/dc/terms/>

BASE <https://saref.etsi.org/documentation/>

TEMPLATE <ontology/abstract.rqg>( ?ontology ) {
  COALESCE( ?html, fun:markdownToHTML(?md), <function/formatText.rqg>(?abstract) )
}
SOURCE <abstract.html> AS ?html
SOURCE <abstract.md> AS ?md
WHERE {
  OPTIONAL { ?ontology dcterms:abstract ?abstract . }
}
LIMIT 1