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 ?native_label . optional { GRAPH { ?periodO skos:altLabel ?native_label . ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . } } } }; PREFIX skos: PREFIX aocat: PREFIX rdf: PREFIX rdfs: PREFIX dcterms: PREFIX dc: PREFIX ariadneplus: PREFIX xsd: insert { GRAPH { ?s aocat:was_issued ?year . } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:was_issued ?o . FILTER(contains(str(?o), ".")) BIND( strdt( strafter(strafter(str(?o),"."),".") , xsd:datetime) AS ?year) } }; PREFIX skos: PREFIX aocat: PREFIX rdf: PREFIX rdfs: PREFIX dcterms: PREFIX dc: PREFIX ariadneplus: PREFIX xsd: delete { GRAPH { ?s aocat:was_issued ?o . } } where { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:was_issued ?o . FILTER(contains(str(?o), ".")) } }; PREFIX skos: PREFIX aocat: PREFIX rdf: PREFIX rdfs: PREFIX dcterms: PREFIX dc: PREFIX ariadneplus: PREFIX xsd: insert { GRAPH { ?s aocat:was_modified ?year . } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:was_modified ?o . FILTER(contains(str(?o), ".")) BIND( strdt( strafter(strafter(str(?o),"."),".") , xsd:datetime) AS ?year) } }; PREFIX skos: PREFIX aocat: PREFIX rdf: PREFIX rdfs: PREFIX dcterms: PREFIX dc: PREFIX ariadneplus: PREFIX xsd: delete { GRAPH { ?s aocat:was_modified ?o . } } where { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:was_modified ?o . FILTER(contains(str(?o), ".")) } };