Draft query for ADS coflein

This commit is contained in:
Alessia Bardi 2023-09-05 14:16:47 +02:00
parent c130d05a19
commit 217b0c0a7f
1 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,118 @@
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:is_part_of <https://ariadne-infrastructure.eu/aocat/Collection/ADS/8D520B07-78F5-3A8E-AD61-580FCFF7218E>. } }
WHERE { ?record rdf:type aocat:AO_Individual_Data_Resource. };
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> {
?s aocat:has_native_subject <https://ariadne-infrastructure.eu/aocat/Concept/ADS/NOT_PROVIDED>.
<https://ariadne-infrastructure.eu/aocat/Concept/ADS/NOT_PROVIDED> skos:prefLabel "Not provided".
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> {
?s rdf:type aocat:AO_Individual_Data_Resource.
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource;
aocat:has_native_subject ?ns.
}
}
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?s aocat:has_title "Title not provided". } }
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> {
?s rdf:type aocat:AO_Individual_Data_Resource.
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource;
aocat:has_title ?title.
}
}
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:was_modified ?date. } }
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:was_modified ?date.
MINUS { ?record aocat:was_modified ?x. }
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:was_issued ?date. } }
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:was_issued ?date.
MINUS { ?record aocat:was_issued ?x. }
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:has_contributor ?agent. } }
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_contributor ?agent.
MINUS { ?record aocat:has_contributor ?x. }
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:has_responsible ?agent. } }
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_responsible ?agent.
MINUS { ?record aocat:has_responsible ?x. }
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:has_owner ?agent. } }
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_owner ?agent.
MINUS { ?record aocat:has_owner ?x. }
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:has_publisher ?agent. } }
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_publisher ?agent.
MINUS { ?record aocat:has_publisher ?x. }
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:has_access_rights ?ar. } }
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_access_rights ?ar.
MINUS { ?record aocat:has_access_rights ?x. }
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> { ?record aocat:has_access_policy ?ar. } }
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_access_rights ?ar.
MINUS { ?record aocat:has_access_policy ?x. }
};
INSERT { GRAPH <https://ariadne-infrastructure.eu/ariadneplus::ads::aatplus> { ?record aocat:has_derived_subject ?aat. } }
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.
}
};
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::ads::periodoplus> {
?temporal aocat:has_period ?periodO.
?temporal aocat:from ?temporalFrom.
?temporal aocat:until ?temporalUntil.
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::coflein> {
?temporal aocat:has_native_period ?native_period.
?native_period skos:prefLabel ?native_label.
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::ads::periodo> {
?periodO skos:altLabel ?native_label;
skos:inScheme <http://n2t.net/ark:/99152/p0kh9ds>;
time:intervalStartedBy ?intervalStartedBy.
?intervalStartedBy skos:prefLabel ?temporalFrom.
?periodO time:intervalFinishedBy ?intervalFinishedBy.
?intervalFinishedBy skos:prefLabel ?temporalUntil.
}
}
}