enrich query for ADS Isle of Man
This commit is contained in:
parent
985dbad239
commit
b46184c2fa
dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS
|
@ -0,0 +1,206 @@
|
|||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
|
||||
INSERT DATA{
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Subject/Site/monument> skos:prefLabel "Site/monument"@en .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Subject/Maritime> skos:prefLabel "Maritime"@en .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?record aocat:has_ARIADNE_subject ?as .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_ARIADNE_subject ?as .
|
||||
MINUS {
|
||||
?record aocat:has_ARIADNE_subject ?theas .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?record aocat:was_modified ?modified .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:was_modified ?modified .
|
||||
MINUS {
|
||||
?record aocat:was_modified ?mod .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?record aocat:was_issued ?date .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:was_issued ?date .
|
||||
MINUS {
|
||||
?record aocat:was_issued ?thedate .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?record aocat:has_contributor ?agent .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_contributor ?agent .
|
||||
MINUS {
|
||||
?record aocat:has_contributor ?x .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?contributor aocat:has_name ?name .
|
||||
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:has_contributor ?contributor .
|
||||
?contributor rdfs:label ?name.
|
||||
MINUS {
|
||||
?contributor aocat:has_name ?cname .
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?record aocat:has_responsible ?agent .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_responsible ?agent .
|
||||
MINUS {
|
||||
?record aocat:has_responsible ?x .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?record aocat:has_owner ?agent .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_owner ?agent .
|
||||
MINUS {
|
||||
?record aocat:has_owner ?x .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?record aocat:has_publisher ?agent .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_publisher ?agent .
|
||||
MINUS {
|
||||
?record aocat:has_publisher ?x .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman> {
|
||||
?record aocat:has_access_rights ?ar .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_access_rights ?ar .
|
||||
MINUS {
|
||||
?record aocat:has_access_rights ?x .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::ads::aatplus> {
|
||||
?record aocat:has_derived_subject ?aat .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::aat>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::isleofman>
|
||||
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 skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX time: <http://www.w3.org/2006/time#>
|
||||
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::isleofman> {
|
||||
?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 .
|
||||
?periodO skos:inScheme <http://n2t.net/ark:/99152/p0kh9ds> .
|
||||
?periodO time:intervalStartedBy ?intervalStartedBy .
|
||||
?intervalStartedBy skos:prefLabel ?temporalFrom .
|
||||
?periodO time:intervalFinishedBy ?intervalFinishedBy .
|
||||
?intervalFinishedBy skos:prefLabel ?temporalUntil .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue