query-de18be7e7782fe25befb53f3c6291c6d

rq turtle/ttl

PropertiesEarly Modern Letters Online person ID (P1802)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?emlolink ?wp
WHERE {
  ?entity wdt:P1802 ?emlolink.
OPTIONAL{?enwp schema:about ?entity; schema:isPartOf <https://en.wikipedia.org/>}
OPTIONAL{?dewp schema:about ?entity; schema:isPartOf <https://de.wikipedia.org/>}
OPTIONAL{?frwp schema:about ?entity; schema:isPartOf <https://fr.wikipedia.org/>}
OPTIONAL{?itwp schema:about ?entity; schema:isPartOf <https://it.wikipedia.org/>}
OPTIONAL{?ruwp schema:about ?entity; schema:isPartOf <https://ru.wikipedia.org/>}
OPTIONAL{?svwp schema:about ?entity; schema:isPartOf <https://sv.wikipedia.org/>}
BIND (IF(BOUND(?enwp),?enwp,IF(BOUND(?dewp),?dewp,IF(BOUND(?frwp),?frwp,IF(BOUND(?itwp),?itwp,IF(BOUND(?ruwp),?ruwp,IF(BOUND(?svwp),?svwp,"") ) ) ) ) ) AS ?wp)
FILTER (?wp != "")
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?dewp") v3("?emlolink"):::projected v2("?entity") v4("?enwp") v6("?frwp") v7("?itwp") v8("?ruwp") v9("?svwp") v10("?wp"):::projected c6([https://de.wikipedia.org/]):::iri c5([https://en.wikipedia.org/]):::iri c9([https://ru.wikipedia.org/]):::iri c7([https://fr.wikipedia.org/]):::iri c8([https://it.wikipedia.org/]):::iri c10([https://sv.wikipedia.org/]):::iri f0[["?wp != ''"]] f0 --> v10 v2 --"wdt:P1802"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v2 v4 --"schema:isPartOf"--> c5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:about".-> v2 v5 --"schema:isPartOf"--> c6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v2 v6 --"schema:isPartOf"--> c7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v7 -."schema:about".-> v2 v7 --"schema:isPartOf"--> c8 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v8 -."schema:about".-> v2 v8 --"schema:isPartOf"--> c9 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v9 -."schema:about".-> v2 v9 --"schema:isPartOf"--> c10 end bind1[/"if(bound(?enwp),?enwp,if(bound(?dewp),?dewp,if(bound(?frwp),?frwp,if(bound(?itwp),?itwp,if(bound(?ruwp),?ruwp,if(bound(?svwp),?svwp,''))))))"/] v4 --o bind1 v5 --o bind1 v6 --o bind1 v7 --o bind1 v8 --o bind1 v9 --o bind1 bind1 --as--o v10