PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:is_part_of ?collection } } WHERE { GRAPH { ?collection rdf:type . ?collection aocat:has_part ?s } }; PREFIX aocat: PREFIX rdf: PREFIX skos: INSERT DATA{ GRAPH { skos:prefLabel "eng" . skos:prefLabel "fre" . skos:prefLabel "Fieldwork"@en . skos:prefLabel "Fieldwork archive"@en . skos:prefLabel "Fieldwork report"@en . skos:prefLabel "Site/monument"@en . skos:prefLabel "collection" . } }; 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: PREFIX skos: INSERT { GRAPH { ?s aocat:has_type . skos:prefLabel "provided record" . } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . MINUS { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:has_type . } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_spatial_coverage . rdf:type . rdfs:label "Place not provided" . aocat:has_place_name "Place not provided" . } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . MINUS { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:has_spatial_coverage ?spatialRegion . } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?spatialRegion rdfs:label "Place name not provided" . ?spatialRegion aocat:has_place_name "Place name not provided" . } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:has_spatial_coverage ?spatialRegion . MINUS { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:has_spatial_coverage ?spatialRegion . ?spatialRegion aocat:has_place_name ?placeName . } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: PREFIX skos: INSERT { GRAPH { ?ns skos:prefLabel ?nstitle . } } WHERE { GRAPH { ?s aocat:has_native_subject ?ns . ?ns aocat:has_title ?nstitle } }; PREFIX aocat: PREFIX rdf: INSERT { GRAPH { ?x aocat:has_name "Name not provided" . } } WHERE { GRAPH { ?s rdf:type . ?s aocat:has_responsible ?x . MINUS{ ?s rdf:type . ?s aocat:has_responsible ?x . ?x aocat:has_name ?legalResponsibleName . } } }; PREFIX skos: PREFIX aocat: INSERT { GRAPH { ?s aocat:has_derived_subject ?aat . } } USING USING WHERE { { ?s aocat:has_native_subject ?native_subject . ?concept owl:sameAs ?native_subject . ?concept skos:exactMatch ?aat . } union { ?s aocat:has_native_subject ?native_subject . ?concept owl:sameAs ?native_subject . ?concept skos:broadMatch ?aat . } union { ?s aocat:has_native_subject ?native_subject . ?concept owl:sameAs ?native_subject . ?concept skos:closeMatch ?aat . } union { ?s aocat:has_native_subject ?native_subject . ?concept owl:sameAs ?native_subject . ?concept skos:narrowMatch ?aat . } };