PREFIX st: PREFIX rdf: PREFIX owl: PREFIX dcterms: PREFIX dc: PREFIX fun: PREFIX rdfs: PREFIX skos: PREFIX obo: PREFIX ex: TEMPLATE ( ?term ) { TEMPLATE ( TEMPLATE ( ?term ) . , ?pathToStatic , false ). """

{?prefix}{?localName} ({ TEMPLATE ( ?term ) . })

Defined in {?ontoRef} as:

{ TEMPLATE { ?description } WHERE { ?term rdfs:comment ?description } . }

IRI:
{?term}
{ TEMPLATE { before = "
Is defined by:
"; """{?onto}""" ; separator = "
" ; after="
" } WHERE { ?term rdfs:isDefinedBy ?onto } ORDER BY DESC( ?onto ) . } { TEMPLATE { before = "
Is used by:
"; """{?onto}""" ; separator="
" ; after="
" } WHERE { ?term ex:isUsedBy ?onto } ORDER BY DESC( ?onto ) . }
{ TEMPLATE{ TEMPLATE ( ?term ) . } FROM ?ontoRef WHERE { ?term a owl:Class } . } { TEMPLATE{ TEMPLATE ( ?term ) . } FROM ?ontoRef WHERE { ?term a owl:ObjectProperty } . } { TEMPLATE{ TEMPLATE ( ?term ) . } FROM ?ontoRef WHERE { ?term a owl:DatatypeProperty } . } { TEMPLATE{ TEMPLATE ( ?term ) . } FROM ?ontoRef WHERE { ?term a owl:NamedIndividual } . }
""" TEMPLATE ( ?pathToStatic , false ) . } FROM ?term WHERE { BIND( fun:regex( str(?term), "^https://saref.etsi.org/([a-z4]+)/([^/]+)$", 1 ) AS ?ext ) BIND( IF( ?ext = "core" , "saref:" , "s{SUBSTR(?ext,6)}:" ) AS ?prefix ) BIND( fun:regex( str(?term), "^https://saref.etsi.org/([a-z4]+)/([^/]+)$", 2 ) AS ?localName ) BIND( fun:regex( str(?term), "^(https://saref.etsi.org/[a-z4]+/)[^/]+$", 1 ) AS ?namespace ) BIND( "../static" AS ?static ) ?term rdfs:isDefinedBy ?ontoRef BIND( "../static" AS ?pathToStatic ) } ORDER BY DESC( ?ontoRef ) LIMIT 1