PREFIX aocat: PREFIX rdf: 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 . } } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_temporal_coverage ?tcov . ?tcov ?p ?o . } } USING USING WHERE { ?s rdf:type . ?s aocat:is_part_of ?coll . ?coll aocat:has_temporal_coverage ?tcov . ?tcov ?p ?o . MINUS { ?s rdf:type . ?s aocat:has_temporal_coverage ?tc . } }; PREFIX aocat: PREFIX skos: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?agent ?p ?o . ?s ?rel ?agent . } } WHERE { GRAPH { ?coll ?rel ?agent . ?agent ?p ?o . ?agent rdf:type aocat:AO_Agent . } GRAPH { {?s rdf:type aocat:AO_Collection .} UNION { ?s rdf:type aocat:AO_Individual_Data_Resource . } } }; PREFIX aocat: PREFIX skos: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:was_issued "2022" } } WHERE { GRAPH { ?s rdf:type . MINUS{ ?s rdf:type . ?s aocat:was_issued ?smt . } } }; PREFIX aocat: PREFIX skos: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_access_rights ?ar . } } WHERE { GRAPH { ?coll rdf:type . ?coll aocat:has_access_rights ?ar . } GRAPH { {?s rdf:type aocat:AO_Collection} UNION {?s rdf:type aocat:AO_Individual_Data_Resource .} } }; PREFIX aocat: PREFIX skos: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { ?s aocat:has_access_policy ?ar . ?ar ?p ?o. } } WHERE { GRAPH { ?coll rdf:type . ?coll aocat:has_access_policy ?ar . ?ar ?p ?o. } GRAPH { {?s rdf:type aocat:AO_Collection} UNION {?s rdf:type aocat:AO_Individual_Data_Resource .} } }; PREFIX aocat: PREFIX rdf: PREFIX rdfs: PREFIX skos: INSERT { GRAPH { ?s aocat:has_type . rdf:type . skos:prefLabel "provided record" } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . } }; PREFIX aocat: PREFIX rdf: INSERT { GRAPH { ?s aocat:has_title "Title not provided" . } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource . MINUS { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:has_title ?title . } } }; PREFIX aocat: PREFIX rdf: INSERT { GRAPH { ?s aocat:was_issued ?cr . } } USING USING WHERE { ?s rdf:type . ?s aocat:is_part_of ?coll . ?coll aocat:was_issued ?cr . MINUS{ ?s rdf:type . ?s aocat:was_issued ?x } }; PREFIX skos: PREFIX aocat: 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 skos: PREFIX aocat: INSERT { GRAPH { ?s aocat:has_derived_subject ?aat . } } USING USING WHERE { { ?s aocat:has_native_subject ?native_subject . ?aatmatch owl:sameAs ?vocuri . ?aatmatch skos:exactMatch ?aat . bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt) filter(?vocuri=?vocuribuilt) } union { ?s aocat:has_native_subject ?native_subject . ?aatmatch owl:sameAs ?vocuri . ?aatmatch skos:broadMatch ?aat . bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt) filter(?vocuri=?vocuribuilt) } union { ?s aocat:has_native_subject ?native_subject . ?aatmatch owl:sameAs ?vocuri . ?aatmatch skos:closeMatch ?aat . bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt) filter(?vocuri=?vocuribuilt) } union { ?s aocat:has_native_subject ?native_subject . ?aatmatch owl:sameAs ?vocuri . ?aatmatch skos:narrowMatch ?aat . bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt) filter(?vocuri=?vocuribuilt) } }; PREFIX skos: PREFIX aocat: PREFIX time: PREFIX dcterms: PREFIX ariadneplus: INSERT { GRAPH { ?temporal aocat:has_period ?periodO_URI . ?temporal aocat:from ?temporalFrom . ?temporal aocat:until ?temporalUntil . } } USING USING WHERE { ?temporal aocat:has_period ?periodO_URI . ?periodO_URI time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . ?periodO_URI time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . };