added missing . for thandos enrichment queries

master
Alessia Bardi 2 years ago
parent d7bc8ecfae
commit 5526edf1d2

@ -396,7 +396,7 @@ USING <https://ariadne-infrastructure.eu/ariadne/periodo>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::api>
WHERE {
?temporal aocat:has_native_period ?np .
?np skos:prefLabel ?y
?np skos:prefLabel ?y .
?periodO_URI skos:prefLabel ?l .
?periodO_URI time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
?periodO_URI time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .

@ -127,8 +127,8 @@ INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::test> {
?s aocat:has_spatial_coverage <https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> .
<https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Spatial_Region> .
<https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> rdfs:label "Name not provided" .
<https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> aocat:has_place_name "Name not provided" .
<https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> rdfs:label "Place not provided" .
<https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> aocat:has_place_name "Place not provided" .
}
}
WHERE {
@ -317,6 +317,98 @@ INSERT {
}
};
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::thanados::aatplus> {
?s aocat:has_derived_subject ?aat .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::aat>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::test>
WHERE {
{
?s aocat:has_native_subject ?native_subject .
?aatmatch owl:sameAs ?vocuri .
?aatmatch skos:exactMatch ?aat .
bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt)
filter(?vocuri=?vocuribuilt)
}
union
{
?s aocat:has_native_subject ?native_subject .
?aatmatch owl:sameAs ?vocuri .
?aatmatch skos:broadMatch ?aat .
bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt)
filter(?vocuri=?vocuribuilt)
}
union
{
?s aocat:has_native_subject ?native_subject .
?aatmatch owl:sameAs ?vocuri .
?aatmatch skos:closeMatch ?aat .
bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt)
filter(?vocuri=?vocuribuilt)
}
union
{
?s aocat:has_native_subject ?native_subject .
?aatmatch owl:sameAs ?vocuri .
?aatmatch skos:narrowMatch ?aat .
bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt)
filter(?vocuri=?vocuribuilt)
}
};
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX time: <http://www.w3.org/2006/time#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::thanados::periodoplus> {
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
}
USING <https://ariadne-infrastructure.eu/ariadne/periodo>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::test>
WHERE {
?temporal aocat:has_period ?periodO_URI .
?periodO_URI time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
?periodO_URI 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/>
PREFIX time: <http://www.w3.org/2006/time#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::thanados::periodoplus> {
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
}
USING <https://ariadne-infrastructure.eu/ariadne/periodo>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::test>
WHERE {
?temporal aocat:has_native_period ?np .
?np skos:prefLabel ?y .
?periodO_URI skos:prefLabel ?l .
?periodO_URI time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
?periodO_URI time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
};

Loading…
Cancel
Save