PREFIX aocat: DELETE DATA { GRAPH { aocat:was_issued "9921-10-31"^^xsd:dateTime . } }; PREFIX aocat: INSERT DATA { GRAPH { aocat:was_issued "1992-10-31"^^xsd:dateTime . } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_title "Title not provided". } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . MINUS { ?s aocat:has_title ?t . } } }; PREFIX aocat: PREFIX skos: PREFIX ariadneplus: INSERT { GRAPH { ?record aocat:has_creator ?creator . } } USING WHERE { ?record aocat:is_part_of ?collection . ?collection aocat:has_creator ?creator . MINUS { ?record aocat:is_part_of ?collection . ?record aocat:has_creator ?x . } }; PREFIX aocat: PREFIX skos: PREFIX ariadneplus: INSERT { GRAPH { ?record aocat:was_issued ?issued . } } USING WHERE { ?record aocat:is_part_of ?collection . ?collection aocat:was_issued ?issued . MINUS { ?record aocat:is_part_of ?collection . ?record aocat:was_issued ?x . } }; PREFIX aocat: PREFIX skos: PREFIX ariadneplus: INSERT { GRAPH { ?record aocat:has_ARIADNE_subject ?subj . } } USING WHERE { ?record aocat:is_part_of ?collection . ?collection aocat:has_ARIADNE_subject ?subj . MINUS { ?record aocat:is_part_of ?collection . ?record aocat:has_ARIADNE_subject ?x . } }; PREFIX aocat: PREFIX skos: PREFIX rdf: INSERT { GRAPH { ?s aocat:has_native_subject . skos:prefLabel "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 skos: INSERT { GRAPH { ?record aocat:has_derived_subject ?aat . } } USING USING WHERE { { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:exactMatch ?aat . } union { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:broadMatch ?aat . } union { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:closeMatch ?aat . } union { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:narrowMatch ?aat . } }; PREFIX dcterms: INSERT { GRAPH { ?periodO ?pred ?o . ?o ?pred2 ?o2 . ?o2 ?pred3 ?o3 . } } WHERE { GRAPH { ?periodO dcterms:spatial . ?periodO ?pred ?o . optional { ?o ?pred2 ?o2 . optional { ?o2 ?pred3 ?o3 . } } } }; PREFIX skos: PREFIX aocat: PREFIX time: PREFIX dcterms: INSERT { GRAPH { ?temporal aocat:has_period ?periodO . ?temporal aocat:from ?temporalFrom . ?temporal aocat:until ?temporalUntil . } } WHERE { GRAPH { ?temporal aocat:has_native_period ?native_period . ?native_period skos:prefLabel ?t_label . optional { GRAPH { ?periodO skos:altLabel ?p_label . ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . } } bind(ucase(?t_label) as ?u_t_label) bind(ucase(?p_label) as ?u_p_label) filter(?u_t_label=?u_p_label) } };