fix periodO from Q219 for niam; enrichment for zrc sazu zbiva
This commit is contained in:
parent
5a68ab07b9
commit
963ce8b048
|
@ -28,8 +28,6 @@ INSERT {
|
|||
?record aocat:was_issued ?issued .
|
||||
?record aocat:was_modified ?modified .
|
||||
?record aocat:has_contributor ?contributor .
|
||||
?record aocat:has_responsible ?legalResponsible .
|
||||
?record aocat:has_owner ?owner .
|
||||
?record aocat:has_publisher ?publisher .
|
||||
?record aocat:has_access_rights ?accessRights .
|
||||
?record aocat:has_ARIADNE_subject ?archeologicalResourceType .
|
||||
|
@ -41,8 +39,6 @@ WHERE {
|
|||
?collection aocat:was_issued ?issued .
|
||||
?collection aocat:was_modified ?modified .
|
||||
?collection aocat:has_contributor ?contributor .
|
||||
?collection aocat:has_responsible ?legalResponsible .
|
||||
?collection aocat:has_owner ?owner .
|
||||
?collection aocat:has_publisher ?publisher .
|
||||
?collection aocat:has_access_rights ?accessRights .
|
||||
?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
|
||||
|
@ -98,10 +94,28 @@ WHERE {
|
|||
}
|
||||
};
|
||||
|
||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::niam::periodo> {
|
||||
?periodO ?pred ?o .
|
||||
?o ?pred2 ?o2 .
|
||||
?o2 ?pred3 ?o3 .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/ariadne/periodo> {
|
||||
?periodO dcterms:spatial <http://www.wikidata.org/entity/Q219> .
|
||||
?periodO ?pred ?o .
|
||||
optional {
|
||||
?o ?pred2 ?o2 .
|
||||
optional {
|
||||
?o2 ?pred3 ?o3 .
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
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 time: <http://www.w3.org/2006/time#>
|
||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||
|
@ -124,4 +138,4 @@ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,74 +1,3 @@
|
|||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_arkas::CollectionInfo> {
|
||||
?s aocat:was_issued ?created_on .
|
||||
?s aocat:was_modified ?created_on .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_arkas::CollectionInfo>
|
||||
WHERE {
|
||||
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
|
||||
?s aocat:was_created_on ?created_on .
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_arkas::CollectionInfo> {
|
||||
?s aocat:has_temporal_coverage <https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Temporal_Region> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Time-Span/NOTPROVIDED> rdfs:label "Not provided" .
|
||||
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_arkas::CollectionInfo> {
|
||||
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
|
||||
MINUS {
|
||||
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
|
||||
?s aocat:has_temporal_coverage ?tc .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_arkas::CollectionInfo> {
|
||||
?s aocat:has_type <https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Concept> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/AO_Type/collection> skos:prefLabel "collection"
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_arkas::CollectionInfo> {
|
||||
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
|
||||
MINUS {
|
||||
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
|
||||
?s aocat:has_type ?t .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?coll ?p ?value
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_arkas::CollectionInfo> {
|
||||
?coll ?p ?value .
|
||||
?coll aocat:has_original_id ?id .
|
||||
}
|
||||
FILTER(?id="Zbiva")
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
INSERT {
|
||||
|
@ -144,4 +73,96 @@ 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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||
PREFIX dc: <http://purl.org/dc/elements/1.1/>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
||||
insert
|
||||
{
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?s aocat:was_issued ?year .
|
||||
}
|
||||
}
|
||||
WHERE
|
||||
{
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:was_issued ?o .
|
||||
FILTER(contains(str(?o), "."))
|
||||
BIND( strdt( strafter(strafter(str(?o),"."),".") , xsd:datetime) AS ?year)
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||
PREFIX dc: <http://purl.org/dc/elements/1.1/>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
||||
delete {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?s aocat:was_issued ?o .
|
||||
}
|
||||
}
|
||||
where {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:was_issued ?o .
|
||||
FILTER(contains(str(?o), "."))
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||
PREFIX dc: <http://purl.org/dc/elements/1.1/>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
||||
insert
|
||||
{
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?s aocat:was_modified ?year .
|
||||
}
|
||||
}
|
||||
WHERE
|
||||
{
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:was_modified ?o .
|
||||
FILTER(contains(str(?o), "."))
|
||||
BIND( strdt( strafter(strafter(str(?o),"."),".") , xsd:datetime) AS ?year)
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||
PREFIX dc: <http://purl.org/dc/elements/1.1/>
|
||||
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
||||
delete {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?s aocat:was_modified ?o .
|
||||
}
|
||||
}
|
||||
where {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::zrc_zbiva::sites> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:was_modified ?o .
|
||||
FILTER(contains(str(?o), "."))
|
||||
}
|
||||
|
||||
};
|
Loading…
Reference in New Issue