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 aocat:
INSERT {
GRAPH {
?temporal aocat:has_period ?nativePeriod .
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
}
WHERE {
GRAPH {
?temporal aocat:has_native_period ?nativePeriod .
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
};
PREFIX aocat:
PREFIX rdfs:
PREFIX skos:
INSERT {
GRAPH {
?nativePeriod skos:prefLabel ?periodLabel .
}
}
WHERE {
GRAPH {
?temporal aocat:has_native_period ?nativePeriod .
?nativePeriod rdfs:label ?periodLabel .
}
};
PREFIX aocat:
PREFIX skos:
PREFIX rdf:
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 .
}
};