enrichment query for CARARE to fix data

This commit is contained in:
Alessia Bardi 2022-12-07 17:14:11 +01:00
parent db8b089a34
commit fe991f550a
1 changed files with 22 additions and 35 deletions

View File

@ -1,21 +1,22 @@
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/> 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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
?s aocat:has_temporal_coverage <https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> . ?record aocat:was_issued ?created .
<https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Temporal_Region> .
<https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> rdfs:label "Not provided" .
} }
} }
WHERE { WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> . ?record rdf:type aocat:AO_Collection .
MINUS { ?record aocat:was_created_on ?created .
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> . MINUS{
?s aocat:has_temporal_coverage ?tc . ?record aocat:was_issued ?issued .
} }
} }
}; };
@ -82,24 +83,6 @@ WHERE {
} }
}; };
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::test> {
?record aocat:was_issued ?created .
}
}
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
WHERE {
?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 aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
@ -145,16 +128,18 @@ PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
?record aocat:was_modified ?XXXX . ?record aocat:was_modified ?collMod .
} }
} }
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
WHERE { WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
?record rdf:type aocat:AO_Individual_Data_Resource . ?record rdf:type aocat:AO_Individual_Data_Resource .
?record ?XXXXXXXXX ?record aocat:is_part_of ?coll .
?coll aocat:was_modified ?collMod .
MINUS{ MINUS{
?record aocat:was_modified ?mod . ?record aocat:was_modified ?mod .
} }
}
}; };
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/> PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
@ -163,15 +148,17 @@ PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
?record aocat:was_issued ?XXXX . ?record aocat:was_issued ?collIss .
} }
} }
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
WHERE { WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::carare::test> {
?record rdf:type aocat:AO_Individual_Data_Resource . ?record rdf:type aocat:AO_Individual_Data_Resource .
?record ?XXXXXXXXX ?record aocat:is_part_of ?coll .
?coll aocat:was_issued ?collIss .
MINUS{ MINUS{
?record aocat:was_issued ?mod . ?record aocat:was_issued ?iss .
}
} }
}; };