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_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 rdfs: INSERT { GRAPH { ?s aocat:has_landing_page ?lpResource . ?lpResource rdfs:label ?url } } WHERE { GRAPH { ?s aocat:has_landing_page ?url . BIND (IRI(?url) as ?lpResource) } }; 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 . } }; PREFIX dcterms: PREFIX aocat: INSERT { GRAPH { ?periodO ?pred ?o . ?o ?pred2 ?o2 . ?o2 ?pred3 ?o3 . } } WHERE { GRAPH { ?temporal aocat:has_period ?periodO . } GRAPH { ?periodO ?pred ?o . optional { ?o ?pred2 ?o2 . optional { ?o2 ?pred3 ?o3 . } } } }; PREFIX skos: PREFIX aocat: PREFIX ariadneplus: PREFIX time: INSERT { GRAPH { ?temporal aocat:has_period ?periodO . ?temporal aocat:from ?temporalFrom . ?temporal aocat:until ?temporalUntil . } } USING USING WHERE { ?temporal aocat:has_period ?periodO . ?periodO time:intervalStartedBy ?intervalStartedBy . ?intervalStartedBy time:hasDateTimeDescription ?startTimeDescr . ?startTimeDescr time:year ?temporalFrom . ?periodO time:intervalFinishedBy ?intervalFinishedBy . ?intervalFinishedBy time:hasDateTimeDescription ?finishedTimeDescr . ?finishedTimeDescr time:year ?temporalUntil . };