AriadnePlus/dnet-ariadneplus-graphdb-pu.../src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DANS/ordered_sparql_insert_dans_...

156 lines
5.2 KiB
SPARQL

PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?s aocat:has_creator <https://ariadne-infrastructure.eu/aocat/Agent/DANS/NOT_PROVIDED> .
<https://ariadne-infrastructure.eu/aocat/Agent/DANS/NOT_PROVIDED> aocat:has_name "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s aocat:has_creator ?creator .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?s aocat:has_responsible <https://ariadne-infrastructure.eu/aocat/Agent/DANS/NOT_PROVIDED> .
<https://ariadne-infrastructure.eu/aocat/Agent/DANS/NOT_PROVIDED> aocat:has_name "Not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s aocat:has_responsible ?agent .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?publisher aocat:has_name ?name .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?record aocat:has_publisher ?publisher .
?publisher rdfs:label ?name .
MINUS {
?publisher aocat:has_name ?thename .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?record aocat:has_publisher ?publisher .
?publisher ?p ?o .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::CollectionInfo>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:has_publisher ?publisher .
?publisher ?p ?o .
MINUS {
?record aocat:has_publisher ?x .
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?record aocat:has_access_rights "Unknown"
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro>
WHERE {
?record aocat:is_part_of ?collection .
MINUS {
?record aocat:has_access_rights ?ar .
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::dans::aatplus> {
?record aocat:has_derived_subject ?aat .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::aat>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro>
WHERE {
{
?record aocat:has_native_subject ?native_subject .
?native_subject skos:exactMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?native_subject skos:broadMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?native_subject skos:closeMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?native_subject skos:narrowMatch ?aat .
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::dans::periodoplus> {
?temporal aocat:has_period ?nativePeriod .
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?temporal aocat:has_native_period ?nativePeriod .
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
};
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#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::dans::periodo> {
?nativePeriod skos:prefLabel ?periodLabel .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dans::dendro> {
?temporal aocat:has_native_period ?nativePeriod .
?nativePeriod rdfs:label ?periodLabel .
}
};