PREFIX aocat: PREFIX rdf: PREFIX rdfs: 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: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_publisher ?publisher . ?publisher aocat:has_email ?email . ?publisher aocat:has_homepage ?homepage . ?publisher aocat:has_name ?name . ?publisher rdfs:label ?label . ?publisher rdf:type } } WHERE { GRAPH { ?s rdf:type . ?s aocat:has_publisher ?publisher . ?publisher aocat:has_email ?email . ?publisher aocat:has_homepage ?homepage . ?publisher aocat:has_name ?name . ?publisher rdfs:label ?label . } }; PREFIX aocat: PREFIX skos: INSERT { GRAPH { ?record aocat:has_derived_subject ?aat . } } WHERE { GRAPH { ?record aocat:has_native_subject ?ns. GRAPH { { ?ns skos:closeMatch ?aat . } union { ?ns skos:exactMatch ?aat . } union { ?ns skos:narrowMatch ?aat . } union { ?ns skos:broadMatch ?aat . } } } };