DELETE WHERE { GRAPH { ?p ?o . ?s ?x } }; 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 "Inscription"@en . skos:prefLabel "Artefact"@en . skos:prefLabel "collection" . aocat:has_type . rdf:type . skos:prefLabel "collection" } }; 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:is_part_of ?collection } } WHERE { GRAPH { ?collection rdf:type . ?collection aocat:has_part ?s } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_contributor . rdf:type . rdfs:label "Not provided" . aocat:has_name "Not provided" . } } WHERE { GRAPH { ?s rdf:type . MINUS { ?s rdf:type . ?s aocat:has_contributor ?c } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_creator . rdf:type . rdfs:label "Not provided" . aocat:has_name "Not provided" . } } WHERE { GRAPH { ?s rdf:type . MINUS { ?s rdf:type . ?s aocat:has_creator ?c } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_responsible . rdf:type . rdfs:label "Not provided" . aocat:has_name "Not provided" . } } WHERE { GRAPH { ?s rdf:type . MINUS { ?s rdf:type . ?s aocat:has_responsible ?c } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_access_rights "Information unavailable" . } } WHERE { GRAPH { ?s rdf:type . MINUS { ?s rdf:type . ?s aocat:has_access_rights ?c } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: PREFIX skos: INSERT { GRAPH { ?s aocat:has_native_subject . rdf:type aocat:AO_Concept . rdfs:label "Native subject not provided" . skos:prefLabel "Native subject not provided" . } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . MINUS { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:has_native_subject ?ns . } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: PREFIX skos: INSERT { GRAPH { ?t aocat:has_native_period . rdf:type aocat:AO_Concept . rdfs:label "Native period not provided" . skos:prefLabel "Native period not provided" . } } WHERE { GRAPH { ?s aocat:has_temporal_coverage ?t . MINUS { ?s aocat:has_temporal_coverage ?t . ?t aocat:has_native_period ?np . } } }; 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 . } };