retrieved contributor on collection sub-select
This commit is contained in:
parent
7d65ba2a0c
commit
7bd85b6946
|
@ -6,29 +6,35 @@ PREFIX mine: <http://www.myprefix/>
|
||||||
PREFIX onto: <http://www.ontotext.com/>
|
PREFIX onto: <http://www.ontotext.com/>
|
||||||
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
||||||
|
|
||||||
|
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||||
CONSTRUCT {
|
CONSTRUCT {
|
||||||
?record mine:resourcetype "AriadneCatalogEntry" .
|
?record mine:resourcetype "AriadneCatalogEntry" .
|
||||||
?record mine:identifier ?record .
|
?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 .
|
||||||
?record mine:publisher ?x .
|
?record mine:publisher ?x .
|
||||||
?x a mine:AgentInfo .
|
|
||||||
?x mine:name ?publisherName .
|
?x mine:name ?publisherName .
|
||||||
?x mine:type ?publisherType .
|
?x mine:type ?publisherType .
|
||||||
?archeologicalResourceType a mine:archeologicalResourceType .
|
|
||||||
?record mine:archeologicalResourceType ?archeologicalResourceType .
|
?record mine:archeologicalResourceType ?archeologicalResourceType .
|
||||||
?archeologicalResourceType mine:name ?archeologicalResourceTypeName .
|
?archeologicalResourceType mine:name ?archeologicalResourceTypeName .
|
||||||
?record mine:issued ?issued .
|
|
||||||
?record mine:resourceType ?resourceType .
|
?record mine:resourceType ?resourceType .
|
||||||
?record mine:modified ?modified .
|
?record mine:modified ?modified .
|
||||||
?record mine:nativeSubject ?natSub .
|
?record mine:nativeSubject ?natSub .
|
||||||
?natSub a mine:NativeSubject .
|
|
||||||
?natSub mine:prefLabel ?nativeSbj .
|
?natSub mine:prefLabel ?nativeSbj .
|
||||||
?natSub mine:aatId ?aatId .
|
?natSub mine:aatId ?aatId .
|
||||||
?natSub mine:aatHeritageData ?aatHeritageData .
|
?natSub mine:aatHeritageData ?aatHeritageData .
|
||||||
#?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 .
|
||||||
?blocation a mine:AriadneGeoPoint .
|
|
||||||
?blocation mine:lat ?spatialLocationLat .
|
?blocation mine:lat ?spatialLocationLat .
|
||||||
?blocation mine:lon ?spatialLocationLon .
|
?blocation mine:lon ?spatialLocationLon .
|
||||||
?record mine:accessPolicy ?accessPolicy .
|
?record mine:accessPolicy ?accessPolicy .
|
||||||
|
@ -36,19 +42,11 @@ CONSTRUCT {
|
||||||
?record mine:title ?title .
|
?record mine:title ?title .
|
||||||
?record mine:accessRights ?accessRights .
|
?record mine:accessRights ?accessRights .
|
||||||
?record mine:description ?description .
|
?record mine:description ?description .
|
||||||
?record mine:contributor ?contributor .
|
|
||||||
?contributor a mine:AgentInfo .
|
|
||||||
?contributor mine:name ?contributorName .
|
|
||||||
?contributor mine:email ?contributorEmail .
|
|
||||||
?contributor mine:type ?contributorType .
|
|
||||||
?record mine:originalId ?originalId .
|
|
||||||
?record mine:temporal ?t .
|
?record mine:temporal ?t .
|
||||||
?t a mine:AriadneTemporal .
|
|
||||||
?t mine:periodName ?temporalPeriodName .
|
?t mine:periodName ?temporalPeriodName .
|
||||||
?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 .
|
|
||||||
}
|
}
|
||||||
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::271>
|
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::271>
|
||||||
|
@ -69,13 +67,13 @@ where {
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
?record aocat:has_native_subject ?natSub .
|
?record aocat:has_native_subject ?natSub .
|
||||||
?natSub skos:closeMatch ?aatId .
|
?natSub skos:exactMatch ?aatId .
|
||||||
?natSub owl:sameAs ?aatHeritageData .
|
?natSub owl:sameAs ?aatHeritageData .
|
||||||
?natSub skos:prefLabel ?nativeSbj .
|
?natSub skos:prefLabel ?nativeSbj .
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
?record aocat:has_creator / aocat:has_name ?contributorName .
|
?record aocat:has_creator / aocat:has_name ?creatorName .
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
@ -83,7 +81,7 @@ where {
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
?record aocat:has_creator / aocat:has_email ?contributorEmail .
|
?record aocat:has_creator / aocat:has_email ?creatorEmail .
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
@ -126,7 +124,12 @@ where {
|
||||||
# aocat:has_type / skos:prefLabel ?type .
|
# aocat:has_type / skos:prefLabel ?type .
|
||||||
?record aocat:is_part_of ?collection .
|
?record aocat:is_part_of ?collection .
|
||||||
?collection aocat:was_issued ?issued .
|
?collection aocat:was_issued ?issued .
|
||||||
|
?collection aocat:was_modified ?modified .
|
||||||
|
?collection aocat:has_contributor / aocat:has_name ?contributorName .
|
||||||
optional {
|
optional {
|
||||||
|
{
|
||||||
|
?collection aocat:has_contributor / aocat:has_email ?contributorEmail .
|
||||||
|
}
|
||||||
{
|
{
|
||||||
?collection aocat:has_publisher / rdfs:label ?publisherName .
|
?collection aocat:has_publisher / rdfs:label ?publisherName .
|
||||||
}
|
}
|
||||||
|
@ -167,4 +170,3 @@ BIND("organization" as ?contributorType) .
|
||||||
BIND("organization" as ?publisherType) .
|
BIND("organization" as ?publisherType) .
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue