removing unused queries for inrap

This commit is contained in:
Enrico Ottonello 2022-02-18 15:01:33 +01:00
parent d12d88667d
commit 93d9870e9d
1 changed files with 92 additions and 137 deletions

View File

@ -1,91 +1,20 @@
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 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::dolia::fieldworkreport> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:has_temporal_coverage <https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> . ?s aocat:was_issued "1987"^^xsd:dateTime .
<https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Temporal_Region> . ?s aocat:was_modified "1987"^^xsd:dateTime .
<https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> rdfs:label "Not provided" .
} }
} }
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport>
WHERE { WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> { ?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> . ?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS { ?s aocat:was_issued ?issued .
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> . ?s aocat:was_modified ?modified .
?s aocat:has_temporal_coverage ?tc .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:has_language <http://lexvo.org/id/iso639-3/und> .
<http://lexvo.org/id/iso639-3/und> skos:prefLabel "und" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
?s aocat:has_language ?ns .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:was_modified "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
?s aocat:was_modified ?d .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:was_issued "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
?s aocat:was_issued ?d .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:has_access_rights "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
?s aocat:has_access_rights ?ar .
}
} }
}; };
@ -112,98 +41,126 @@ WHERE {
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#>
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#>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:has_language <http://lexvo.org/id/iso639-3/und> . ?s aocat:has_contributor <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
<http://lexvo.org/id/iso639-3/und> skos:prefLabel "und" . <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::dolia::fieldworkreport> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
?s aocat:has_language ?ns .
} }
} }
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:has_contributor ?contributor .
}
}
}; };
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:was_modified "Not provided" . ?s aocat:was_modified ?issued .
} }
} }
WHERE { WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> . ?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:was_issued ?issued .
MINUS { MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> . ?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:was_modified ?d . ?s aocat:was_modified ?modified .
} }
} }
}; };
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:was_issued "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
?s aocat:was_issued ?d .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s aocat:has_access_rights "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
?s aocat:has_access_rights ?ar .
}
}
};
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#>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?record aocat:has_access_rights ?accessRights . ?record aocat:has_access_rights ?accessRights .
?record aocat:has_access_policy ?accessPolicy .
?record aocat:has_ARIADNE_subject ?archeologicalResourceType . ?record aocat:has_ARIADNE_subject ?archeologicalResourceType .
?record aocat:has_owner ?owner .
?record aocat:has_contributor ?contributor .
?record aocat:was_modified ?modified .
} }
} }
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport>
WHERE { WHERE {
?record aocat:is_part_of ?collection . ?record aocat:is_part_of ?collection .
?collection aocat:was_modified ?modified .
?collection aocat:has_contributor ?contributor .
?contributor aocat:has_name ?contrib .
?collection aocat:has_owner ?owner .
?owner aocat:has_name ?own .
?collection aocat:has_access_rights ?accessRights . ?collection aocat:has_access_rights ?accessRights .
?collection aocat:has_access_policy ?accessPolicy .
?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
?archeologicalResourceType skos:prefLabel ?alabel . ?archeologicalResourceType skos:prefLabel ?alabel .
}; };
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::dolia::fieldworkreport> {
?record aocat:has_responsible ?coll_value .
?coll_value rdf:type ?type .
?coll_value rdfs:label ?label .
?coll_value aocat:has_name ?name .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:has_responsible ?coll_value .
?coll_value rdf:type ?type .
?coll_value rdfs:label ?label .
?coll_value aocat:has_name ?name .
MINUS {
?record aocat:has_responsible ?rec_value .
}
};
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::dolia::fieldworkreport> {
?s aocat:has_language <http://lexvo.org/id/iso639-3/und> .
<http://lexvo.org/id/iso639-3/und> skos:prefLabel "und" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:has_language ?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::dolia::fieldworkreport> {
?record aocat:was_issued ?coll_issued_value .
?record aocat:was_modified ?coll_modified_value .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::fieldworkreport>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:was_issued ?coll_issued_value .
?collection aocat:was_modified ?coll_modified_value .
MINUS {
?record aocat:was_issued ?rec_value .
?record aocat:was_modified ?rec_value2 .
}
};
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#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@ -224,8 +181,6 @@ WHERE {
} }
}; };
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#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>