243 lines
8.9 KiB
SPARQL
243 lines
8.9 KiB
SPARQL
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::fi::isleif_sites> {
|
|
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> .
|
|
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> skos:prefLabel "provided record" .
|
|
}
|
|
}
|
|
WHERE {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites> {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
MINUS {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> .
|
|
}
|
|
}
|
|
};
|
|
|
|
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::fi::isleif_sites> {
|
|
?s aocat:has_title "Title not provided" .
|
|
}
|
|
}
|
|
WHERE {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites> {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
MINUS {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:has_title ?title .
|
|
}
|
|
}
|
|
};
|
|
|
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
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#>
|
|
INSERT {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites> {
|
|
?s aocat:has_native_subject <https://ariadne-infrastructure.eu/aocat/Concept/FI_ISLEIF/NOT_PROVIDED> .
|
|
<https://ariadne-infrastructure.eu/aocat/Concept/FI_ISLEIF/NOT_PROVIDED> skos:prefLabel "Not provided" .
|
|
}
|
|
}
|
|
WHERE {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites> {
|
|
?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/>
|
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
INSERT {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites> {
|
|
?s ?rel ?agent .
|
|
?agent ?p ?o .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif>
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites>
|
|
WHERE {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:is_part_of ?coll .
|
|
?coll ?rel ?agent .
|
|
?agent rdf:type aocat:AO_Agent .
|
|
?agent ?p ?o .
|
|
MINUS {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s ?rel ?relAgent .
|
|
}
|
|
};
|
|
|
|
|
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
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::fi::isleif_sites> {
|
|
?s aocat:has_language ?lang .
|
|
?lang skos:prefLabel ?label .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif>
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites>
|
|
WHERE {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:is_part_of ?coll .
|
|
?coll aocat:has_language ?lang .
|
|
?lang skos:prefLabel ?label .
|
|
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 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::fi::isleif_sites> {
|
|
?s aocat:was_modified "2022"^^xsd:dateTime .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites>
|
|
WHERE {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
MINUS {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:was_modified ?modified .
|
|
}
|
|
};
|
|
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::fi::isleif_sites> {
|
|
?s aocat:was_issued "2022"^^xsd:dateTime .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites>
|
|
WHERE {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
MINUS {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:was_issued ?modified .
|
|
}
|
|
};
|
|
|
|
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::fi::isleif_sites> {
|
|
?s aocat:has_access_rights ?ar .
|
|
}
|
|
}
|
|
WHERE {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites> {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:is_part_of ?c .
|
|
MINUS {
|
|
?s aocat:has_access_rights ?x
|
|
}
|
|
}
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif> {
|
|
?c aocat:has_access_rights ?ar.
|
|
}
|
|
|
|
};
|
|
|
|
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::fi::isleif_sites> {
|
|
?s aocat:has_access_policy ?ap .
|
|
?ap ?p ?o .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif>
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites>
|
|
WHERE {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:is_part_of ?coll .
|
|
?coll aocat:has_access_policy ?ap .
|
|
?ap ?p ?o .
|
|
MINUS {
|
|
?s rdf:type aocat:AO_Individual_Data_Resource .
|
|
?s aocat:has_access_policy ?thePolicy .
|
|
}
|
|
};
|
|
|
|
|
|
|
|
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
INSERT {
|
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::fi::aatplus> {
|
|
?record aocat:has_derived_subject ?aat .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::aat>
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites>
|
|
WHERE {
|
|
{
|
|
?record aocat:has_native_subject ?concept .
|
|
?concept skos:exactMatch ?aat .
|
|
}
|
|
union
|
|
{
|
|
?record aocat:has_native_subject ?concept .
|
|
?concept skos:broadMatch ?aat .
|
|
}
|
|
union
|
|
{
|
|
?record aocat:has_native_subject ?concept .
|
|
?concept skos:closeMatch ?aat .
|
|
}
|
|
union
|
|
{
|
|
?record aocat:has_native_subject ?concept .
|
|
?concept skos:narrowMatch ?aat .
|
|
}
|
|
};
|
|
|
|
|
|
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#>
|
|
INSERT {
|
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::fi::periodoplus> {
|
|
?temporal aocat:has_period ?periodO .
|
|
?temporal aocat:from ?temporalFrom .
|
|
?temporal aocat:until ?temporalUntil .
|
|
}
|
|
}
|
|
WHERE {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fi::isleif_sites> {
|
|
?temporal aocat:has_native_period ?native_period .
|
|
?native_period skos:prefLabel ?native_label .
|
|
optional {
|
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::fi::periodo> {
|
|
?periodO skos:altLabel ?native_label .
|
|
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
|
|
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
|
|
}
|
|
}
|
|
}
|
|
};
|