SPARQL INSERT for HNM

This commit is contained in:
Alessia Bardi 2020-09-07 15:46:07 +02:00
parent 12c80713d7
commit be31a772a1
1 changed files with 15 additions and 4 deletions

View File

@ -6,7 +6,7 @@ INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::hnm::hnmad> {
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> .
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Concept> .
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> skos:prefLabel "collection"
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> skos:prefLabel "Dataset Collection"
}
}
WHERE {
@ -102,6 +102,18 @@ INSERT {
}
}
};
PREFIX dcterms: <http://purl.org/dc/terms/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::hnm::periodo> {
?periodO ?pred ?o .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/ariadne/periodo> {
?periodO dcterms:spatial <http://www.wikidata.org/entity/Q28> .
?periodO ?pred ?o .
}
};
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
@ -119,9 +131,8 @@ INSERT {
?temporal aocat:has_native_period ?native_period .
?native_period skos:prefLabel ?native_label .
optional {
GRAPH <https://ariadne-infrastructure.eu/ariadne/periodo> {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::hnm::periodo> {
?periodO skos:altLabel ?native_label .
?periodO dcterms:spatial <http://www.wikidata.org/entity/Q28> .
?periodO time:intervalStartedBy ?intervalStartedBy .
?intervalStartedBy skos:prefLabel ?temporalFrom .
?periodO time:intervalFinishedBy ?intervalFinishedBy .
@ -129,4 +140,4 @@ INSERT {
}
}
}
};
};