sparql inserts for ADS 836

This commit is contained in:
Alessia Bardi 2020-08-07 14:53:21 +02:00
parent 2c282d31b2
commit 587887abd6
1 changed files with 48 additions and 12 deletions

View File

@ -5,9 +5,45 @@ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX time: <http://www.w3.org/2006/time#>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
#INSERT DEFAULTS FOR COLLECTION
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?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::ads::836> {
?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_owner ?agent .
}
}
};
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?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::ads::836> {
?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_responsible ?agent .
}
}
};
# INHERIT FROM COLLECTION
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?record aocat:was_issued ?issued .
?record aocat:was_modified ?modified .
?record aocat:has_contributor ?contributor .
@ -18,7 +54,7 @@ INSERT {
?record aocat:has_ARIADNE_subject ?archeologicalResourceType .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:was_issued ?issued .
@ -29,18 +65,18 @@ WHERE {
?collection aocat:has_publisher ?publisher .
?collection aocat:has_access_rights ?accessRights .
?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
}
};
# INSERT DEFAULTS FOR RECORDS
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?s aocat:has_native_subject <https://ariadne-infrastructure.eu/aocat/Concept/ADS/NOT_PROVIDED> .
<https://ariadne-infrastructure.eu/aocat/Concept/ADS/NOT_PROVIDED> skos:prefLabel "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@ -49,13 +85,13 @@ WHERE {
}
};
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?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::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@ -64,13 +100,13 @@ WHERE {
}
};
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?s aocat:has_creator <https://ariadne-infrastructure.eu/aocat/Agent/ADS/NOT_PROVIDED> .
<https://ariadne-infrastructure.eu/aocat/Agent/ADS/NOT_PROVIDED> aocat:has_name "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@ -80,12 +116,12 @@ WHERE {
};
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?s aocat:has_title "Title not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273> {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@ -102,7 +138,7 @@ INSERT {
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::aat>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::273>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::836>
WHERE {
{
?record aocat:has_native_subject ?native_subject .