updated queries for tutorial

This commit is contained in:
Alessia Bardi 2023-04-28 10:42:16 +02:00
parent 6dfdcb806f
commit d055c3a38c
2 changed files with 79 additions and 0 deletions

View File

@ -1,3 +1,15 @@
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::ads::test> {
?record aocat:is_part_of <https://ariadne-infrastructure.eu/aocat/Collection/ADS/8D520B07-78F5-3A8E-AD61-580FCFF7218E>
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test>
WHERE {
?record rdf:type aocat:AO_Individual_Data_Resource .
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test> {

View File

@ -10,6 +10,73 @@ WHERE {
?record rdf:type aocat:AO_Individual_Data_Resource .
};
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 skos: <http://www.w3.org/2004/02/skos/core#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test> {
?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::test> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:has_native_subject ?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::ads::test> {
?s aocat:has_title "Title not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:has_title ?title .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test> {
?record aocat:was_modified ?date .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:was_modified ?date .
MINUS {
?record aocat:was_modified ?x .
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test> {
?record aocat:was_issued ?date .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:was_issued ?date .
MINUS {
?record aocat:was_issued ?x .
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::test> {