Merge branch 'master' into thanados

This commit is contained in:
Enrico Ottonello 2022-05-06 11:03:51 +02:00
commit 10df6d7c83
2 changed files with 56 additions and 36 deletions

View File

@ -133,27 +133,37 @@ WHERE {
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/> PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX time: <http://www.w3.org/2006/time#> PREFIX time: <http://www.w3.org/2006/time#>
PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::bmpas::periodoplus> { GRAPH <https://ariadne-infrastructure.eu/ariadneplus::bmpas::periodoplus> {
?temporal aocat:has_period ?periodO . ?temporal aocat:has_period ?native_period .
?temporal aocat:from ?temporalFrom . ?temporal aocat:from ?from .
?temporal aocat:until ?temporalUntil . ?temporal aocat:until ?until .
} }
} }
WHERE { WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::bmpas::artefacts> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::bmpas::artefacts> {
?temporal aocat:has_native_period ?native_period . ?temporal aocat:has_native_period ?native_period .
?native_period skos:prefLabel ?t_label . ?native_period rdfs:label|skos:prefLabel ?native_label .
optional { ?temporal aocat:from ?from .
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::bmpas::periodo> { ?temporal aocat:until ?until .
?periodO skos:altLabel ?p_label . }
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . };
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
} PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
} PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
bind(ucase(?t_label) as ?u_t_label) PREFIX time: <http://www.w3.org/2006/time#>
bind(ucase(?p_label) as ?u_p_label) PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
filter(?u_t_label=?u_p_label) INSERT {
} GRAPH <https://ariadne-infrastructure.eu/ariadneplus::bmpas::periodo> {
}; ?native_period skos:prefLabel ?native_label .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::bmpas::artefacts> {
?temporal aocat:has_native_period ?native_period .
?native_period rdfs:label|skos:prefLabel ?native_label .
?temporal aocat:from ?from .
?temporal aocat:until ?until .
}
};

View File

@ -133,27 +133,37 @@ WHERE {
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/> PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX time: <http://www.w3.org/2006/time#> PREFIX time: <http://www.w3.org/2006/time#>
PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::bmpas::periodoplus> { GRAPH <https://ariadne-infrastructure.eu/ariadneplus::bmpas::periodoplus> {
?temporal aocat:has_period ?periodO . ?temporal aocat:has_period ?native_period .
?temporal aocat:from ?temporalFrom . ?temporal aocat:from ?from .
?temporal aocat:until ?temporalUntil . ?temporal aocat:until ?until .
} }
} }
WHERE { WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::bmpas::coins> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::bmpas::coins> {
?temporal aocat:has_native_period ?native_period . ?temporal aocat:has_native_period ?native_period .
?native_period skos:prefLabel ?t_label . ?native_period rdfs:label|skos:prefLabel ?native_label .
optional { ?temporal aocat:from ?from .
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::bmpas::periodo> { ?temporal aocat:until ?until .
?periodO skos:altLabel ?p_label . }
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . };
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
} PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
} PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
bind(ucase(?t_label) as ?u_t_label) PREFIX time: <http://www.w3.org/2006/time#>
bind(ucase(?p_label) as ?u_p_label) PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
filter(?u_t_label=?u_p_label) INSERT {
} GRAPH <https://ariadne-infrastructure.eu/ariadneplus::bmpas::periodo> {
}; ?native_period skos:prefLabel ?native_label .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::bmpas::coins> {
?temporal aocat:has_native_period ?native_period .
?native_period rdfs:label|skos:prefLabel ?native_label .
?temporal aocat:from ?from .
?temporal aocat:until ?until .
}
};