enrichment queries for carare and INP
This commit is contained in:
parent
14e56b63a8
commit
5cb929d2be
|
@ -0,0 +1,258 @@
|
||||||
|
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/>
|
||||||
|
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?record aocat:was_issued ?created .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?record rdf:type aocat:AO_Collection .
|
||||||
|
?record aocat:was_created_on ?created .
|
||||||
|
MINUS{
|
||||||
|
?record aocat:was_issued ?issued .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s aocat:has_creator <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Agent> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdfs:label "Not provided" .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> aocat:has_name "Not provided" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s rdf:type aocat:AO_Collection .
|
||||||
|
MINUS {
|
||||||
|
?s rdf:type aocat:AO_Collection .
|
||||||
|
?s aocat:has_creator ?agent .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s aocat:has_contributor <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Agent> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdfs:label "Not provided" .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> aocat:has_name "Not provided" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s rdf:type aocat:AO_Collection .
|
||||||
|
MINUS {
|
||||||
|
?s rdf:type aocat:AO_Collection .
|
||||||
|
?s aocat:has_contributor ?agent .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s aocat:has_responsible <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Agent> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdfs:label "Not provided" .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> aocat:has_name "Not provided" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s rdf:type aocat:AO_Collection .
|
||||||
|
MINUS {
|
||||||
|
?s rdf:type aocat:AO_Collection .
|
||||||
|
?s aocat:has_responsible ?agent .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
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/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> skos:prefLabel "provided record" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
MINUS {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s aocat:has_native_subject <https://ariadne-infrastructure.eu/aocat/Concept/CARARE/NOT_PROVIDED> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Concept/CARARE/NOT_PROVIDED> skos:prefLabel "Not provided" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
MINUS {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
?s aocat:has_native_subject ?ns .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
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 {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?record aocat:was_modified ?collMod .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?record rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
?record aocat:is_part_of ?coll .
|
||||||
|
?coll aocat:was_modified ?collMod .
|
||||||
|
MINUS{
|
||||||
|
?record aocat:was_modified ?mod .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
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 {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?record aocat:was_issued ?collIss .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?record rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
?record aocat:is_part_of ?coll .
|
||||||
|
?coll aocat:was_issued ?collIss .
|
||||||
|
MINUS{
|
||||||
|
?record aocat:was_issued ?iss .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s aocat:has_contributor <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Agent> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdfs:label "Not provided" .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> aocat:has_name "Not provided" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
MINUS {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
?s aocat:has_contributor ?agent .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s aocat:has_responsible <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Agent> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdfs:label "Not provided" .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> aocat:has_name "Not provided" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
MINUS {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
?s aocat:has_responsible ?agent .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s aocat:has_owner <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Agent> .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdfs:label "Not provided" .
|
||||||
|
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> aocat:has_name "Not provided" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full> {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
MINUS {
|
||||||
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||||
|
?s aocat:has_owner ?agent .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
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::carare::aatplus> {
|
||||||
|
?record aocat:has_derived_subject ?aat .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::aat>
|
||||||
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::full>
|
||||||
|
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 .
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,54 @@
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::inp_cronica::periodoplus> {
|
||||||
|
?temporal aocat:has_period ?periodOURI .
|
||||||
|
?temporal aocat:from ?temporalFrom .
|
||||||
|
?temporal aocat:until ?temporalUntil .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::inp_cronica::cronica> {
|
||||||
|
?temporal aocat:has_period ?periodOURI .
|
||||||
|
?temporal aocat:from ?temporalFrom .
|
||||||
|
?temporal aocat:until ?temporalUntil .
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::inp_cronica::periodo> {
|
||||||
|
?periodOURI skos:prefLabel ?periodLabel .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::inp_cronica::cronica> {
|
||||||
|
?temporal aocat:has_period ?periodOURI .
|
||||||
|
?periodOURI skos:prefLabel ?periodLabel .
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::inp_cronica::aatplus> {
|
||||||
|
?s aocat:has_derived_subject ?derivedSubject .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::inp_cronica::cronica> {
|
||||||
|
?s aocat:has_derived_subject ?derivedSubject .
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::inp_cronica::aat> {
|
||||||
|
?derivedSubject skos:prefLabel ?prefLabel .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::inp_cronica::cronica> {
|
||||||
|
?s aocat:has_derived_subject ?derivedSubject .
|
||||||
|
?derivedSubject skos:prefLabel ?prefLabel .
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue