195 lines
8.5 KiB
SPARQL
195 lines
8.5 KiB
SPARQL
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::road::sites> {
|
|
?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::road::sites>
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::CollectionInfo>
|
|
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::road::sites> {
|
|
?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::road::sites> {
|
|
?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 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::road::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> 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::road::sites> {
|
|
?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 ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
|
INSERT {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::sites> {
|
|
?record aocat:was_issued ?coll_issued_value .
|
|
?record aocat:was_modified ?coll_modified_value .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::sites>
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::CollectionInfo>
|
|
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/>
|
|
INSERT {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::sites> {
|
|
?record aocat:has_ARIADNE_subject ?coll_value .
|
|
?coll_value skos:prefLabel ?prefLabelValue .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::sites>
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::CollectionInfo>
|
|
WHERE {
|
|
?record aocat:is_part_of ?collection .
|
|
?collection aocat:has_ARIADNE_subject ?coll_value .
|
|
?coll_value skos:prefLabel ?prefLabelValue .
|
|
MINUS {
|
|
?record aocat:has_ARIADNE_subject ?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#>
|
|
INSERT {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::sites> {
|
|
?s aocat:has_native_subject <https://ariadne-infrastructure.eu/aocat/Concept/road/NOT_PROVIDED> .
|
|
<https://ariadne-infrastructure.eu/aocat/Concept/road/NOT_PROVIDED> skos:prefLabel "Not provided" .
|
|
}
|
|
}
|
|
WHERE {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::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 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::road::aatplus> {
|
|
?record aocat:has_derived_subject ?aat_subject .
|
|
}
|
|
}
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::aat>
|
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::sites>
|
|
WHERE {
|
|
{
|
|
?record aocat:has_native_subject ?native_subject .
|
|
?aat_native_subject skos:exactMatch ?aat_subject .
|
|
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/ROAD/", ucase(strafter(str(?native_subject),"ROAD/")))) as ?uppercase_native_subject)
|
|
filter(?uppercase_native_subject=?aat_native_subject)
|
|
}
|
|
union
|
|
{
|
|
?record aocat:has_native_subject ?native_subject .
|
|
?aat_native_subject skos:broadMatch ?aat_subject .
|
|
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/ROAD/", ucase(strafter(str(?native_subject),"ROAD/")))) as ?uppercase_native_subject)
|
|
filter(?uppercase_native_subject=?aat_native_subject)
|
|
}
|
|
union
|
|
{
|
|
?record aocat:has_native_subject ?native_subject .
|
|
?aat_native_subject skos:closeMatch ?aat_subject .
|
|
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/ROAD/", ucase(strafter(str(?native_subject),"ROAD/")))) as ?uppercase_native_subject)
|
|
filter(?uppercase_native_subject=?aat_native_subject)
|
|
}
|
|
union
|
|
{
|
|
?record aocat:has_native_subject ?native_subject .
|
|
?aat_native_subject skos:narrowMatch ?aat_subject .
|
|
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/ROAD/", ucase(strafter(str(?native_subject),"ROAD/")))) as ?uppercase_native_subject)
|
|
filter(?uppercase_native_subject=?aat_native_subject)
|
|
}
|
|
};
|
|
|
|
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 dcterms: <http://purl.org/dc/terms/>
|
|
INSERT {
|
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::road::periodoplus> {
|
|
?temporal aocat:has_period ?periodO .
|
|
?temporal aocat:from ?temporalFrom .
|
|
?temporal aocat:until ?temporalUntil .
|
|
}
|
|
}
|
|
WHERE {
|
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::road::sites> {
|
|
?temporal aocat:has_native_period ?native_period .
|
|
?native_period skos:prefLabel ?native_label .
|
|
optional {
|
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::road::periodo> {
|
|
?periodO skos:altLabel ?native_label .
|
|
?periodO skos:inScheme <http://n2t.net/ark:/99152/p0s2rwk> .
|
|
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
|
|
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
|
|
}
|
|
}
|
|
}
|
|
}; |