updated enrichment queries for SEAD UMEA
This commit is contained in:
parent
1d425e97ee
commit
cd76bbbd9e
|
@ -1,3 +1,70 @@
|
|||
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::sead::coll> {
|
||||
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Concept> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> skos:prefLabel "collection"
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll> {
|
||||
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
|
||||
MINUS {
|
||||
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
|
||||
?s aocat:has_type ?t .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll> {
|
||||
?s aocat:has_creator <https://ariadne-infrastructure.eu/aocat/Agent/SEAD/NOT_PROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Agent/SEAD/NOT_PROVIDED> aocat:has_name "Not provided" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll> {
|
||||
?s rdf:type aocat:AO_Collection .
|
||||
MINUS {
|
||||
?s aocat:has_creator ?creator .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll> {
|
||||
?record aocat:was_modified "2023-04-13"^^xsd:date
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record rdf:type aocat:AO_Collection .
|
||||
MINUS{
|
||||
?record aocat:was_modified ?date
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll> {
|
||||
?record aocat:was_issued "2023-04-13"^^xsd:date
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record rdf:type aocat:AO_Collection .
|
||||
MINUS{
|
||||
?record aocat:was_issued ?date
|
||||
}
|
||||
};
|
||||
|
||||
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#>
|
||||
|
@ -27,4 +94,5 @@ INSERT {
|
|||
?coll aocat:has_derived_subject ?derivedSubject .
|
||||
?derivedSubject skos:prefLabel ?prefLabel .
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#inherit from the collection the publisher, contributor, owner, responsible, ARIADNEsubject, native subject, derived_subject (it is in the mapping),
|
||||
#access policy and access rights
|
||||
|
||||
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#>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/provided%20record> .
|
||||
|
@ -16,38 +13,169 @@ WHERE {
|
|||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:was_issued ?x .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:was_issued ?x .
|
||||
MINUS{
|
||||
?record aocat:was_issued ?date
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:was_modified ?x .
|
||||
}
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_native_subject ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:was_modified ?x .
|
||||
MINUS{
|
||||
?record aocat:was_modified ?date
|
||||
}
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_native_subject ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_native_subject ?ns
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_publisher ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_publisher ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_publisher ?p
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_contributor ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_contributor ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_contributor ?p
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_owner ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_owner ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_owner ?p
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_creator ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_creator ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_creator ?p
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?s aocat:has_creator <https://ariadne-infrastructure.eu/aocat/Agent/SEAD/NOT_PROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Agent/SEAD/NOT_PROVIDED> aocat:has_name "Not provided" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?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/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_responsible ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_responsible ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_responsible ?p
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_ARIADNE_subject ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_ARIADNE_subject ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_ARIADNE_subject ?as
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_native_subject ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_native_subject ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_native_subject ?as
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
|
@ -64,30 +192,53 @@ WHERE {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX time: <http://www.w3.org/2006/time#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:has_access_policy ?x .
|
||||
?x ?p ?o .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_access_policy ?x .
|
||||
?x ?p ?o .
|
||||
MINUS{
|
||||
?record aocat:has_access_policy ?ap
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::sead::periodoplus> {
|
||||
?temporal aocat:has_period ?aat .
|
||||
?temporal aocat:has_period ?nativePeriod .
|
||||
?temporal aocat:from ?temporalFrom .
|
||||
?temporal aocat:until ?temporalUntil .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/ariadneplus::sead::periodo>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?temporal aocat:has_native_period ?nativePeriod .
|
||||
?nativePeriod skos:prefLabel ?nativeLabel .
|
||||
?aat skos:inScheme <http://n2t.net/ark:/99152/p04h98q> .
|
||||
?aat skos:altLabel ?nativeLabel .
|
||||
?aat time:intervalStartedBy ?intervalStartedBy .
|
||||
?intervalStartedBy time:hasDateTimeDescription ?sdesc .
|
||||
?sdesc time:year ?temporalFrom .
|
||||
?aat time:intervalFinishedBy ?intervalFinishedBy .
|
||||
?intervalFinishedBy time:hasDateTimeDescription ?fdesc .
|
||||
?fdesc time:year ?temporalUntil
|
||||
?temporal aocat:from ?temporalFrom .
|
||||
?temporal aocat:until ?temporalUntil .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
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/ariadneplus::sead::periodo> {
|
||||
?nativePeriod skos:prefLabel ?periodLabel .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?temporal aocat:has_native_period ?nativePeriod .
|
||||
?nativePeriod rdfs:label ?periodLabel .
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
@ -99,34 +250,39 @@ PREFIX time: <http://www.w3.org/2006/time#>
|
|||
?record aocat:has_derived_subject ?aat_subject .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::aat>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::coll>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::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/sead/", ucase(strafter(str(?native_subject),"UO/")))) 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/sead/", ucase(strafter(str(?native_subject),"UO/")))) 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/sead/", ucase(strafter(str(?native_subject),"UO/")))) 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/sead/", ucase(strafter(str(?native_subject),"UO/")))) as ?uppercase_native_subject)
|
||||
filter(?uppercase_native_subject=?aat_native_subject)
|
||||
}
|
||||
};
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_derived_subject ?x .
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:was_issued "2023-04-13"^^xsd:date
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
WHERE {
|
||||
?record rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS{
|
||||
?record aocat:was_issued ?date
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites> {
|
||||
?record aocat:was_modified "2023-04-13"^^xsd:date
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::sead::sites>
|
||||
WHERE {
|
||||
?record rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS{
|
||||
?record aocat:was_modified ?date
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue