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 ?t . } } }; PREFIX skos: PREFIX aocat: PREFIX time: INSERT { GRAPH { ?temporal aocat:has_period ?period . ?temporal aocat:from ?from . ?temporal aocat:until ?until . } } WHERE { GRAPH { ?temporal aocat:has_native_period ?native_period . ?native_period rdfs:label ?native_label . ?temporal aocat:from ?from . ?temporal aocat:until ?until . ?temporal aocat:has_period ?period . } }; PREFIX skos: PREFIX aocat: PREFIX time: INSERT { GRAPH { ?native_period skos:prefLabel ?native_label . } } WHERE { GRAPH { ?temporal aocat:has_native_period ?native_period . ?native_period rdfs:label ?native_label . ?temporal aocat:from ?from . ?temporal aocat:until ?until . ?temporal aocat:has_period ?period . } }; PREFIX aocat: PREFIX skos: INSERT { GRAPH { ?record aocat:has_derived_subject ?aat_subject . } } USING USING WHERE { { ?record aocat:has_native_subject ?native_subject . ?aat_native_subject skos:exactMatch ?aat_subject . bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/TDAR/", ucase(strafter(str(?native_subject),"tDAR/")))) as ?uppercase_native_subject) filter(?uppercase_native_subject=?aat_native_subject) } union { ?record aocat:has_native_subject ?native_subject . ?aat_native_subject skos:broadMatch ?aat_subject . bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/TDAR/", ucase(strafter(str(?native_subject),"tDAR/")))) as ?uppercase_native_subject) filter(?uppercase_native_subject=?aat_native_subject) } union { ?record aocat:has_native_subject ?native_subject . ?aat_native_subject skos:closeMatch ?aat_subject . bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/TDAR/", ucase(strafter(str(?native_subject),"tDAR/")))) as ?uppercase_native_subject) filter(?uppercase_native_subject=?aat_native_subject) } union { ?record aocat:has_native_subject ?native_subject . ?aat_native_subject skos:narrowMatch ?aat_subject . bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/TDAR/", ucase(strafter(str(?native_subject),"tDAR/")))) as ?uppercase_native_subject) filter(?uppercase_native_subject=?aat_native_subject) } };