@base . @prefix : <#> . @prefix rdf: . @prefix rdfs: . @prefix xsd: . @prefix owl: . @prefix ldt: . @prefix ct: . @prefix dh: . @prefix sd: . @prefix sp: . @prefix dct: . @prefix vann: . @prefix sioc: . @prefix foaf: . : a ldt:Ontology, owl:Ontology ; owl:imports ct:, sp: ; owl:versionInfo "1.1.4" ; rdfs:label "Topic hierarchy templates" ; rdfs:comment "Document hierarchy with topic resources" ; dct:created "2016-08-31T21:54:00+02:00"^^xsd:dateTime ; vann:preferredNamespaceUri "https://www.w3.org/ns/ldt/topic-hierarchy/templates#" ; vann:preferredNamespacePrefix "tht"; dct:license . # TEMPLATES :Document a ldt:Template ; ldt:extends ct:Document ; ldt:query :DescribeWithTopic ; ldt:update :DeleteWithTopic ; rdfs:label "Document" ; rdfs:isDefinedBy : . # COMMANDS :DescribeWithTopic a sp:Describe, sp:Query ; sp:text """PREFIX foaf: DESCRIBE ?this ?primaryTopic WHERE { ?this ?p ?o OPTIONAL { ?this foaf:primaryTopic ?primaryTopic } }""" ; rdfs:label "Describe with topic" ; rdfs:isDefinedBy : . :DeleteWithTopic a sp:DeleteWhere, sp:Update ; sp:text """PREFIX foaf: DELETE { ?this ?p ?o . ?primaryTopic ?p ?o . } WHERE { { ?this ?p ?o . } UNION { ?primaryTopic foaf:isPrimaryTopicOf ?this . ?primaryTopic ?p ?o . } }""" ; rdfs:label "Delete with topic" ; rdfs:isDefinedBy : .