query-e465c9d54bd513d1f1765f00db3bcee5
A lancer depuis data.idref.fr
Les personnes et leur PPN
PREFIX cidoc: http://www.cidoc-crm.org/cidoc-crm/ PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
SELECT * WHERE { SERVICE https://dataforhumanities.abes.fr/sparql { GRAPH https://dataforhumanities.org/sparql-endpoint/prelib-v1 { ?personne https://ontome.net/ns/sdh-crm-supplement/P20 ?o ; a cidoc:E21_Person . } FILTER (CONTAINS(str(?o), 'idref')) BIND (substr(str(?o), 22, 9) AS ?ppn) } }
Use at
- https://query.wikidata.org/sparql
# A lancer depuis data.idref.fr
# Les personnes et leur PPN
PREFIX cidoc: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT *
WHERE {
SERVICE <https://dataforhumanities.abes.fr/sparql> {
GRAPH <https://dataforhumanities.org/sparql-endpoint/prelib-v1> {
?personne <https://ontome.net/ns/sdh-crm-supplement/P20> ?o ;
a cidoc:E21_Person .
}
FILTER (CONTAINS(str(?o), 'idref'))
BIND (substr(str(?o), 22, 9) AS ?ppn)
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?o"):::projected
v2("?personne"):::projected
v3("?ppn"):::projected
c6([http://www.cidoc-crm.org/cidoc-crm/E21_Person]):::iri
subgraph s1["https://dataforhumanities.abes.fr/sparql"]
style s1 stroke-width:4px;
f0[["contains(str(?o),'idref')"]]
f0 --> v1
v2 --https://ontome.net/ns/sdh-crm-supplement/P20--> v1
v2 --"a"--> c6
bind1[/"substring(str(?o),'22^^xsd:integer','9^^xsd:integer')"/]
v1 --o bind1
bind1 --as--o v3
end