updated query
This commit is contained in:
parent
57b8eecbe2
commit
74b06293e3
|
@ -178,20 +178,42 @@ INSERT {
|
|||
}
|
||||
};
|
||||
|
||||
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#>
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
INSERT DATA {
|
||||
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 .
|
||||
FILTER (?lang IN (<http://lexvo.org/id/iso639-3/deu>, <http://lexvo.org/id/iso639-3/eng>))
|
||||
FILTER (?label NOT IN ("de", "en"))
|
||||
};
|
||||
|
||||
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::arche::oai> {
|
||||
<http://lexvo.org/id/iso639-2/en> skos:prefLabel "en" .
|
||||
<http://lexvo.org/id/iso639-2/de> skos:prefLabel "de" .
|
||||
<http://lexvo.org/id/iso639-3/deu> skos:prefLabel "de" .
|
||||
}
|
||||
};
|
||||
}
|
||||
WHERE {
|
||||
?s aocat:has_language <http://lexvo.org/id/iso639-3/deu> .
|
||||
OPTIONAL { <http://lexvo.org/id/iso639-3/deu> skos:prefLabel ?label }
|
||||
FILTER (!BOUND(?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/api_________::ariadne_plus::arche::oai> {
|
||||
<http://lexvo.org/id/iso639-3/eng> skos:prefLabel "en" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
?s aocat:has_language <http://lexvo.org/id/iso639-3/eng> .
|
||||
OPTIONAL { <http://lexvo.org/id/iso639-3/eng> skos:prefLabel ?label }
|
||||
FILTER (!BOUND(?label))
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue