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: INSERT { GRAPH { ?record aocat:has_derived_subject ?aat . } } WHERE { GRAPH { ?record aocat:has_derived_subject ?aat } }; PREFIX aocat: PREFIX skos: INSERT { GRAPH { ?aat skos:prefLabel ?label . } } WHERE { GRAPH { ?record aocat:has_derived_subject ?aat . ?aat skos:prefLabel ?label . } };