PREFIX aocat: PREFIX rdf: PREFIX skos: INSERT { GRAPH { ?s aocat:has_type . rdf:type . skos:prefLabel "collection" } } WHERE { GRAPH { ?s rdf:type . MINUS { ?s rdf:type . ?s aocat:has_type ?t . } } }; PREFIX aocat: DELETE WHERE { GRAPH { ?x aocat:from "" . } }; PREFIX aocat: DELETE WHERE { GRAPH { ?x aocat:until "" . } }; PREFIX aocat: PREFIX skos: PREFIX ariadneplus: INSERT { GRAPH { ?record aocat:has_derived_subject ?aat . } } USING USING WHERE { { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:prefLabel ?native_label . ?match skos:prefLabel ?matchLabel . ?match skos:exactMatch ?aat . FILTER(str(?matchLabel) = ?native_label) } union { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:prefLabel ?native_label . ?match skos:prefLabel ?matchLabel . ?match skos:broadMatch ?aat . FILTER(str(?matchLabel) = ?native_label) } union { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:prefLabel ?native_label . ?match skos:prefLabel ?matchLabel . ?match skos:closeMatch ?aat . FILTER(str(?matchLabel) = ?native_label) } union { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:prefLabel ?native_label . ?match skos:prefLabel ?matchLabel . ?match skos:narrowMatch ?aat . FILTER(str(?matchLabel) = ?native_label) } };