sparql insert for snd rockart
This commit is contained in:
parent
4878d2131e
commit
811cd03fdc
|
@ -0,0 +1,268 @@
|
|||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?record aocat:has_access_rights ?coll_value .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockartCollectionInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_access_rights ?coll_value .
|
||||
MINUS {
|
||||
?record aocat:has_access_rights ?rec_value .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?record aocat:was_issued ?coll_issued_value .
|
||||
?record aocat:was_modified ?coll_modified_value .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockartCollectionInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:was_issued ?coll_issued_value .
|
||||
?collection aocat:was_modified ?coll_modified_value .
|
||||
MINUS {
|
||||
?record aocat:was_issued ?rec_value .
|
||||
?record aocat:was_modified ?rec_value2 .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?record aocat:has_publisher ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockartCollectionInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_publisher ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
MINUS {
|
||||
?record aocat:has_publisher ?rec_value .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?s aocat:has_contributor <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::snd::rockart> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:has_contributor ?contributor .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?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::snd::rockart> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:has_language ?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::snd::rockart> {
|
||||
?s aocat:has_title "Title not provided" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?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/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?record aocat:has_owner ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockartCollectionInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_owner ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
MINUS {
|
||||
?record aocat:has_owner ?rec_value .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?record aocat:has_responsible ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockartCollectionInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_responsible ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
MINUS {
|
||||
?record aocat:has_responsible ?rec_value .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?s aocat:has_creator <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::snd::rockart> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:has_creator ?creator .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Concept> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> skos:prefLabel "provided record"
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:has_type ?t .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?s aocat:has_native_subject <https://ariadne-infrastructure.eu/aocat/Concept/snd/NOT_PROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/snd/NOT_PROVIDED> skos:prefLabel "Not provided" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:has_native_subject ?ns .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::snd::aatplus> {
|
||||
?record aocat:has_derived_subject ?aat .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::aat>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::snd::rockart>
|
||||
WHERE {
|
||||
{
|
||||
?record aocat:has_native_subject ?native_subject .
|
||||
?native_subject skos:exactMatch ?aat .
|
||||
}
|
||||
union
|
||||
{
|
||||
?record aocat:has_native_subject ?native_subject .
|
||||
?native_subject skos:broadMatch ?aat .
|
||||
}
|
||||
union
|
||||
{
|
||||
?record aocat:has_native_subject ?native_subject .
|
||||
?native_subject skos:closeMatch ?aat .
|
||||
}
|
||||
union
|
||||
{
|
||||
?record aocat:has_native_subject ?native_subject .
|
||||
?native_subject skos:narrowMatch ?aat .
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue