2020-02-25 16:16:06 +01:00
|
|
|
|
2020-02-07 14:44:26 +01:00
|
|
|
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#>
|
|
|
|
PREFIX mine: <http://www.myprefix/>
|
|
|
|
PREFIX onto: <http://www.ontotext.com/>
|
2020-02-25 16:16:06 +01:00
|
|
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
2020-02-07 14:44:26 +01:00
|
|
|
|
2020-03-03 16:57:07 +01:00
|
|
|
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
2020-02-07 14:44:26 +01:00
|
|
|
CONSTRUCT {
|
2020-02-11 12:04:45 +01:00
|
|
|
?record mine:resourcetype "AriadneCatalogEntry" .
|
2020-03-03 16:57:07 +01:00
|
|
|
?record mine:identifier ?record .
|
|
|
|
?record mine:originalId ?originalId .
|
|
|
|
?record mine:issued ?issued .
|
|
|
|
?record mine:modified ?modified .
|
|
|
|
?record mine:partOf ?collection .
|
|
|
|
?record mine:creator ?creator .
|
|
|
|
?creator mine:name ?creatorName .
|
|
|
|
?creator mine:email ?creatorEmail .
|
|
|
|
?record mine:contributor ?contributor .
|
|
|
|
?contributor mine:name ?contributorName .
|
|
|
|
?contributor mine:email ?contributorEmail .
|
|
|
|
?contributor mine:type ?contributorType .
|
2020-02-11 12:04:45 +01:00
|
|
|
?record mine:publisher ?x .
|
|
|
|
?x mine:name ?publisherName .
|
|
|
|
?x mine:type ?publisherType .
|
2020-02-07 14:44:26 +01:00
|
|
|
?record mine:archeologicalResourceType ?archeologicalResourceType .
|
|
|
|
?archeologicalResourceType mine:name ?archeologicalResourceTypeName .
|
|
|
|
?record mine:resourceType ?resourceType .
|
|
|
|
?record mine:modified ?modified .
|
2020-02-18 16:05:51 +01:00
|
|
|
?record mine:nativeSubject ?natSub .
|
2020-02-27 17:19:12 +01:00
|
|
|
?natSub mine:prefLabel ?nativeSbj .
|
|
|
|
?natSub mine:aatId ?aatId .
|
|
|
|
?natSub mine:aatHeritageData ?aatHeritageData .
|
2020-02-07 14:44:26 +01:00
|
|
|
?record mine:spatial ?spatial .
|
|
|
|
?spatial mine:placeName ?spatialPlaceName .
|
|
|
|
?spatial mine:location ?blocation .
|
|
|
|
?blocation mine:lat ?spatialLocationLat .
|
|
|
|
?blocation mine:lon ?spatialLocationLon .
|
|
|
|
?record mine:accessPolicy ?accessPolicy .
|
|
|
|
?record mine:landingPage ?landingPage .
|
|
|
|
?record mine:title ?title .
|
|
|
|
?record mine:accessRights ?accessRights .
|
2020-03-03 16:57:07 +01:00
|
|
|
?record mine:description ?description .
|
2020-02-11 12:04:45 +01:00
|
|
|
?record mine:temporal ?t .
|
2020-02-07 14:44:26 +01:00
|
|
|
?t mine:periodName ?temporalPeriodName .
|
|
|
|
?t mine:from ?from .
|
|
|
|
?t mine:until ?until .
|
|
|
|
?record mine:language ?language .
|
2020-02-11 12:04:45 +01:00
|
|
|
}
|
2020-02-25 16:16:06 +01:00
|
|
|
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::aat>
|
2020-02-27 17:19:12 +01:00
|
|
|
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::271>
|
2020-02-07 15:31:47 +01:00
|
|
|
#from onto:explain
|
2020-02-07 14:44:26 +01:00
|
|
|
where {
|
2020-02-27 17:19:12 +01:00
|
|
|
#mandatory statements in our model, to be added in all datasources
|
2020-02-11 12:04:45 +01:00
|
|
|
#?record aocat:has_title ?title ;
|
|
|
|
# aocat:has_access_rights ?accessRights ;
|
|
|
|
# aocat:has_creator / aocat:has_name ?contributorName ;
|
|
|
|
# aocat:has_creator / aocat:has_email ?contributorEmail ;
|
|
|
|
# aocat:has_native_subject / skos:prefLabel ?nativeSbj ;
|
2020-02-27 17:19:12 +01:00
|
|
|
# aocat:has_original_id ?originalId ;
|
|
|
|
?record aocat:has_language / skos:prefLabel ?language .
|
2020-02-11 12:04:45 +01:00
|
|
|
optional {
|
|
|
|
{
|
|
|
|
?record aocat:has_original_id ?originalId .
|
|
|
|
}
|
2020-02-27 17:19:12 +01:00
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_native_subject ?natSub .
|
2020-03-03 16:57:07 +01:00
|
|
|
?natSub skos:exactMatch ?aatId .
|
2020-02-27 17:19:12 +01:00
|
|
|
?natSub owl:sameAs ?aatHeritageData .
|
|
|
|
?natSub skos:prefLabel ?nativeSbj .
|
2020-02-25 16:16:06 +01:00
|
|
|
}
|
2020-02-11 12:04:45 +01:00
|
|
|
union
|
|
|
|
{
|
2020-03-03 16:57:07 +01:00
|
|
|
?record aocat:has_creator / aocat:has_name ?creatorName .
|
2020-02-11 12:04:45 +01:00
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_title ?title .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
2020-03-03 16:57:07 +01:00
|
|
|
?record aocat:has_creator / aocat:has_email ?creatorEmail .
|
2020-02-11 12:04:45 +01:00
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_access_rights ?accessRights .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_description ?description .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_access_policy / rdfs:label ?accessPolicy .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_landing_page / rdfs:label ?landingPage .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_temporal_coverage ?t .
|
|
|
|
?t aocat:has_period / skos:prefLabel ?temporalPeriodName .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_temporal_coverage ?t .
|
|
|
|
?t aocat:from ?from .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?record aocat:has_temporal_coverage ?t .
|
|
|
|
?t aocat:until ?until .
|
|
|
|
}
|
2020-02-07 15:31:47 +01:00
|
|
|
}
|
2020-02-07 14:44:26 +01:00
|
|
|
{
|
|
|
|
select *
|
|
|
|
where {
|
2020-02-11 12:04:45 +01:00
|
|
|
#mandatory statements in our model, to be added in all datasources
|
|
|
|
#?collection aocat:has_publisher / rdfs:label ?publisherName ;
|
|
|
|
# aocat:has_ARIADNE_subject ?archeologicalResourceType ;
|
|
|
|
# aocat:has_type / skos:prefLabel ?type .
|
2020-02-27 17:19:12 +01:00
|
|
|
?record aocat:is_part_of ?collection .
|
2020-02-11 12:04:45 +01:00
|
|
|
?collection aocat:was_issued ?issued .
|
2020-03-03 16:57:07 +01:00
|
|
|
?collection aocat:was_modified ?modified .
|
|
|
|
?collection aocat:has_contributor / aocat:has_name ?contributorName .
|
2020-02-11 12:04:45 +01:00
|
|
|
optional {
|
2020-03-03 16:57:07 +01:00
|
|
|
{
|
|
|
|
?collection aocat:has_contributor / aocat:has_email ?contributorEmail .
|
|
|
|
}
|
2020-02-11 12:04:45 +01:00
|
|
|
{
|
|
|
|
?collection aocat:has_publisher / rdfs:label ?publisherName .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
|
|
|
|
?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName .
|
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
|
|
|
?collection aocat:has_type / skos:prefLabel ?type .
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName .
|
2020-02-07 14:44:26 +01:00
|
|
|
}
|
|
|
|
}
|
2020-02-27 17:19:12 +01:00
|
|
|
union
|
2020-02-07 14:44:26 +01:00
|
|
|
{
|
|
|
|
select *
|
|
|
|
where {
|
2020-02-11 12:04:45 +01:00
|
|
|
optional {
|
|
|
|
{
|
2020-02-27 17:19:12 +01:00
|
|
|
?record aocat:has_spatial_coverage ?spatial .
|
|
|
|
?spatial aocat:has_place_name ?spatialPlaceName .
|
2020-02-11 12:04:45 +01:00
|
|
|
}
|
|
|
|
union
|
|
|
|
{
|
2020-02-27 17:19:12 +01:00
|
|
|
?record aocat:has_spatial_coverage ?spatial .
|
2020-02-11 12:04:45 +01:00
|
|
|
?spatial aocat:has_latitude ?spatialLocationLat ;
|
|
|
|
aocat:has_longitude ?spatialLocationLon .
|
|
|
|
BIND(uri(concat('http://www.myprefix/location/', md5(concat(str(?spatialLocationLat), str(?spatialLocationLon))))) as ?blocation)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-02-18 16:05:51 +01:00
|
|
|
}
|
|
|
|
|
2020-02-07 14:44:26 +01:00
|
|
|
BIND("organization" as ?contributorType) .
|
2020-02-07 15:31:47 +01:00
|
|
|
BIND("organization" as ?publisherType) .
|
2020-02-25 16:16:06 +01:00
|
|
|
|
2020-03-03 16:57:07 +01:00
|
|
|
}
|