Updated ARCHE query for periods
This commit is contained in:
parent
f09e4ab822
commit
39c6f5da81
|
@ -117,28 +117,81 @@ 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/>
|
||||||
INSERT {
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::arche::periodoplus> {
|
|
||||||
?temporal aocat:has_period ?period .
|
|
||||||
?temporal aocat:from ?temporalFrom .
|
|
||||||
?temporal aocat:until ?temporalUntil .
|
|
||||||
}
|
|
||||||
}
|
|
||||||
WHERE {
|
|
||||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::arche::oai> {
|
|
||||||
?temporal aocat:has_period ?period .
|
|
||||||
?temporal aocat:from ?temporalFrom .
|
|
||||||
?temporal aocat:until ?temporalUntil .
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
|
||||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
||||||
WITH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::arche::oai>
|
WITH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::arche::oai>
|
||||||
DELETE { ?period skos:prefLabel ?label}
|
DELETE { ?period skos:prefLabel ?label}
|
||||||
WHERE {
|
WHERE {
|
||||||
?temporal aocat:has_period ?period .
|
?temporal aocat:has_period ?period .
|
||||||
?period skos:prefLabel ?label
|
?period skos:prefLabel ?label
|
||||||
}
|
};
|
||||||
|
|
||||||
|
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::arche::periodo> {
|
||||||
|
?nativePeriod skos:prefLabel ?periodLabel .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::arche::oai> {
|
||||||
|
?temporal aocat:has_native_period ?nativePeriod .
|
||||||
|
?nativePeriod skos:prefLabel ?periodLabel .
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX time: <http://www.w3.org/2006/time#>
|
||||||
|
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::arche::periodoplus> {
|
||||||
|
?temporal aocat:has_period ?periodOURI .
|
||||||
|
?temporal aocat:from ?temporalFrom .
|
||||||
|
?temporal aocat:until ?temporalUntil .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::arche::oai>
|
||||||
|
USING <https://ariadne-infrastructure.eu/ariadneplus::arche::periodo>
|
||||||
|
WHERE {
|
||||||
|
?temporal aocat:has_period ?periodOURI .
|
||||||
|
?periodOURI time:intervalStartedBy ?intervalStartedBy .
|
||||||
|
?intervalStartedBy time:hasDateTimeDescription ?startDescr .
|
||||||
|
?startDescr time:year ?temporalFrom .
|
||||||
|
?periodOURI time:intervalFinishedBy ?intervalFinishedBy .
|
||||||
|
?intervalFinishedBy time:hasDateTimeDescription ?finishDescr .
|
||||||
|
?finishDescr time:year ?temporalUntil
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::arche::periodoplus> {
|
||||||
|
?temporal aocat:has_period ?nativePeriod .
|
||||||
|
?temporal aocat:from ?temporalFrom .
|
||||||
|
?temporal aocat:until ?temporalUntil .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::arche::oai> {
|
||||||
|
?temporal aocat:has_native_period ?nativePeriod .
|
||||||
|
?temporal aocat:from ?temporalFrom .
|
||||||
|
?temporal aocat:until ?temporalUntil .
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
|
WITH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::arche::oai>
|
||||||
|
DELETE { ?lang skos:prefLabel ?label}
|
||||||
|
WHERE {
|
||||||
|
?s aocat:has_language ?lang .
|
||||||
|
?lang skos:prefLabel ?label
|
||||||
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
|
INSERT DATA {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::arche::oai> {
|
||||||
|
<http://lexvo.org/id/iso639-2/en> skos:prefLabel "en" .
|
||||||
|
<http://lexvo.org/id/iso639-2/de> skos:prefLabel "de" .
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue