First enrichment query for niwrecks2
This commit is contained in:
parent
6ece056a53
commit
d06ec9fa9c
|
@ -0,0 +1,121 @@
|
|||
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::niwrecks2> {
|
||||
<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::niwrecks2> { ?record aocat:has_ARIADNE_subject ?as. } }
|
||||
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::niwrecks2> { ?record aocat:was_modified ?modified. } }
|
||||
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::niwrecks2> { ?record aocat:was_issued ?date. } }
|
||||
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::niwrecks2> { ?record aocat:has_contributor ?agent. } }
|
||||
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::niwrecks2> { ?contributor aocat:has_name ?name. } }
|
||||
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::niwrecks2> { ?record aocat:has_responsible ?agent. } }
|
||||
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::niwrecks2> { ?record aocat:has_owner ?agent. } }
|
||||
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::niwrecks2> { ?record aocat:has_publisher ?agent. } }
|
||||
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::niwrecks2> { ?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. }
|
||||
};
|
||||
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. } }
|
||||
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::niwrecks2> {
|
||||
?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.
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue