matching with aat and fix spatial coverage
This commit is contained in:
parent
7f93ce6358
commit
7d65ba2a0c
|
@ -21,10 +21,10 @@ CONSTRUCT {
|
||||||
?record mine:modified ?modified .
|
?record mine:modified ?modified .
|
||||||
?record mine:nativeSubject ?natSub .
|
?record mine:nativeSubject ?natSub .
|
||||||
?natSub a mine:NativeSubject .
|
?natSub a mine:NativeSubject .
|
||||||
#?natSub mine:prefLabel ?nativeSbj .
|
?natSub mine:prefLabel ?nativeSbj .
|
||||||
?natSub mine:aat ?aat .
|
?natSub mine:aatId ?aatId .
|
||||||
?aat mine:aatLabel ?aatLabel .
|
?natSub mine:aatHeritageData ?aatHeritageData .
|
||||||
?spatial a mine:Spatial .
|
#?spatial a mine:Spatial .
|
||||||
?record mine:spatial ?spatial .
|
?record mine:spatial ?spatial .
|
||||||
?spatial mine:placeName ?spatialPlaceName .
|
?spatial mine:placeName ?spatialPlaceName .
|
||||||
?spatial mine:location ?blocation .
|
?spatial mine:location ?blocation .
|
||||||
|
@ -51,30 +51,27 @@ CONSTRUCT {
|
||||||
?record mine:partOf ?collection .
|
?record mine:partOf ?collection .
|
||||||
}
|
}
|
||||||
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::aat>
|
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::aat>
|
||||||
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::collectionId>
|
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::271>
|
||||||
#from onto:explain
|
#from onto:explain
|
||||||
where {
|
where {
|
||||||
#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 ;
|
||||||
# aocat:has_access_rights ?accessRights ;
|
# aocat:has_access_rights ?accessRights ;
|
||||||
# aocat:has_creator / aocat:has_name ?contributorName ;
|
# aocat:has_creator / aocat:has_name ?contributorName ;
|
||||||
# aocat:has_creator / aocat:has_email ?contributorEmail ;
|
# aocat:has_creator / aocat:has_email ?contributorEmail ;
|
||||||
# aocat:has_native_subject / skos:prefLabel ?nativeSbj ;
|
# aocat:has_native_subject / skos:prefLabel ?nativeSbj ;
|
||||||
# aocat:has_original_id ?originalId ;
|
# aocat:has_original_id ?originalId ;
|
||||||
?record aocat:has_spatial_coverage ?spatial ;
|
?record aocat:has_language / skos:prefLabel ?language .
|
||||||
aocat:has_language / skos:prefLabel ?language .
|
|
||||||
optional {
|
optional {
|
||||||
{
|
{
|
||||||
?record aocat:has_original_id ?originalId .
|
?record aocat:has_original_id ?originalId .
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
?record aocat:has_native_subject ?natSub .
|
?record aocat:has_native_subject ?natSub .
|
||||||
?natSub skos:prefLabel ?nativeSbj .
|
?natSub skos:closeMatch ?aatId .
|
||||||
}
|
?natSub owl:sameAs ?aatHeritageData .
|
||||||
union {
|
?natSub skos:prefLabel ?nativeSbj .
|
||||||
?natSub owl:sameAs ?aat .
|
|
||||||
?aat skos:prefLabel ?aatLabel
|
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
@ -106,10 +103,6 @@ where {
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
?record aocat:is_part_of ?collection .
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_temporal_coverage ?t .
|
?record aocat:has_temporal_coverage ?t .
|
||||||
?t aocat:has_period / skos:prefLabel ?temporalPeriodName .
|
?t aocat:has_period / skos:prefLabel ?temporalPeriodName .
|
||||||
}
|
}
|
||||||
|
@ -131,6 +124,7 @@ where {
|
||||||
#?collection aocat:has_publisher / rdfs:label ?publisherName ;
|
#?collection aocat:has_publisher / rdfs:label ?publisherName ;
|
||||||
# aocat:has_ARIADNE_subject ?archeologicalResourceType ;
|
# aocat:has_ARIADNE_subject ?archeologicalResourceType ;
|
||||||
# aocat:has_type / skos:prefLabel ?type .
|
# aocat:has_type / skos:prefLabel ?type .
|
||||||
|
?record aocat:is_part_of ?collection .
|
||||||
?collection aocat:was_issued ?issued .
|
?collection aocat:was_issued ?issued .
|
||||||
optional {
|
optional {
|
||||||
{
|
{
|
||||||
|
@ -149,25 +143,18 @@ where {
|
||||||
#?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName .
|
#?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName .
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
union
|
||||||
{
|
{
|
||||||
select *
|
select *
|
||||||
where {
|
where {
|
||||||
?spatial aocat:has_place_name ?spatialPlaceName .
|
|
||||||
optional {
|
optional {
|
||||||
{
|
{
|
||||||
?spatial aocat:has_place_name ?spatialPlaceName .
|
?record aocat:has_spatial_coverage ?spatial .
|
||||||
?spatial aocat:has_latitude ?spatialLocationLat .
|
?spatial aocat:has_place_name ?spatialPlaceName .
|
||||||
BIND(uri(concat('http://www.myprefix/location/', md5(str(?spatialLocationLat)))) as ?blocation)
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?spatial aocat:has_place_name ?spatialPlaceName .
|
|
||||||
?spatial aocat:has_longitude ?spatialLocationLon .
|
|
||||||
BIND(uri(concat('http://www.myprefix/location/', md5(str(?spatialLocationLon)))) as ?blocation)
|
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
?record aocat:has_spatial_coverage ?spatial .
|
||||||
?spatial aocat:has_latitude ?spatialLocationLat ;
|
?spatial aocat:has_latitude ?spatialLocationLat ;
|
||||||
aocat:has_longitude ?spatialLocationLon .
|
aocat:has_longitude ?spatialLocationLon .
|
||||||
BIND(uri(concat('http://www.myprefix/location/', md5(concat(str(?spatialLocationLat), str(?spatialLocationLon))))) as ?blocation)
|
BIND(uri(concat('http://www.myprefix/location/', md5(concat(str(?spatialLocationLat), str(?spatialLocationLon))))) as ?blocation)
|
||||||
|
@ -178,6 +165,6 @@ where {
|
||||||
|
|
||||||
BIND("organization" as ?contributorType) .
|
BIND("organization" as ?contributorType) .
|
||||||
BIND("organization" as ?publisherType) .
|
BIND("organization" as ?publisherType) .
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue