added aat collection clause

This commit is contained in:
Enrico Ottonello 2020-02-18 16:05:51 +01:00
parent a6b5a80984
commit f12eb7eb52
1 changed files with 20 additions and 9 deletions

View File

@ -17,9 +17,11 @@ CONSTRUCT {
?record mine:issued ?issued . ?record mine:issued ?issued .
?record mine:resourceType ?resourceType . ?record mine:resourceType ?resourceType .
?record mine:modified ?modified . ?record mine:modified ?modified .
?record mine:nativeSubject ?ns . ?record mine:nativeSubject ?natSub .
?ns a mine:NativeSubject . ?natSub a mine:NativeSubject .
?ns mine:prefLabel ?nativeSbj . ?natSub mine:prefLabel ?nativeSbj .
?natSub mine:aat ?aat .
?aat mine:aatLabel ?aatLabel .
?spatial a mine:Spatial . ?spatial a mine:Spatial .
?record mine:spatial ?spatial . ?record mine:spatial ?spatial .
?spatial mine:placeName ?spatialPlaceName . ?spatial mine:placeName ?spatialPlaceName .
@ -44,13 +46,12 @@ CONSTRUCT {
?t mine:from ?from . ?t mine:from ?from .
?t mine:until ?until . ?t mine:until ?until .
?record mine:language ?language . ?record mine:language ?language .
?record mine:partOf ?collection . ?record mine:partOf ?collection .
} }
from named <api_________::ariadne_plus::ads::aat>
from named <api_________::ariadne_plus::ads::idCollection>
#from onto:explain #from onto:explain
where { where {
graph ?g { graph ?g {
#mandatory statements in our model, to be added in all datasources #mandatory statements in our model, to be added in all datasources
#?record aocat:has_title ?title ; #?record aocat:has_title ?title ;
@ -67,7 +68,8 @@ where {
} }
union union
{ {
?record aocat:has_native_subject / skos:prefLabel ?nativeSbj . ?record aocat:has_native_subject ?natSub .
?natSub skos:prefLabel ?nativeSbj .
} }
union union
{ {
@ -167,9 +169,18 @@ where {
} }
} }
} }
} }
BIND("organization" as ?contributorType) . BIND("organization" as ?contributorType) .
BIND("organization" as ?publisherType) . BIND("organization" as ?publisherType) .
filter (contains(str(?g),"ads::idCollection"))
} }
graph <api_________::ariadne_plus::ads::aat> {
optional {
?natSub skos:exactMatch ?aat .
?aat skos:prefLabel ?aatLabel
}
}
} }