query-7f5b3d816e4d0c8a70152ddd8e7cbe45

rq turtle/ttl

Proposed women street names in Brussels SELECT ?item ?itemLabel ?firstnameLabel ?lastnameLabel ?alias ?itemDescription ?nationalityLabel ?professionLabel ?birthplaceLabel ?deathplaceLabel ?birthdate ?deathdate ?workplaceLabel ?genderLabel ?linkcount WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,en,de,en". } ?item wikibase:sitelinks ?linkcount; wdt:P6104 wd:Q104010394. OPTIONAL { ?item wdt:P19 ?birthplace. } OPTIONAL { ?item wdt:P20 ?deathplace. } OPTIONAL { ?item wdt:P21 ?gender. } OPTIONAL { ?item wdt:P27 ?nationality. } OPTIONAL { ?item wdt:P39 ?function. } OPTIONAL { ?item wdt:P101 ?domain. } OPTIONAL { ?item wdt:P106 ?profession. } OPTIONAL { ?item wdt:P108 ?company. } OPTIONAL { ?item wdt:P166 ?prize. } OPTIONAL { ?item wdt:P569 ?birthdate. } OPTIONAL { ?item wdt:P570 ?deathdate. } OPTIONAL { ?item wdt:P734 ?lastname. } OPTIONAL { ?item wdt:P735 ?firstname. } OPTIONAL { ?item wdt:P800 ?work. } OPTIONAL { ?item wdt:P937 ?workplace. } OPTIONAL { ?item skos:altLabel ?alias. FILTER((LANG(?alias)) = "nl") } OPTIONAL { ?article schema:about ?item; schema:inLanguage "nl"; schema:isPartOf https://nl.wikipedia.org/. } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Proposed women street names in Brussels
SELECT ?item ?itemLabel ?firstnameLabel ?lastnameLabel ?alias ?itemDescription ?nationalityLabel ?professionLabel ?birthplaceLabel ?deathplaceLabel ?birthdate ?deathdate ?workplaceLabel ?genderLabel ?linkcount WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,en,de,en". }
  ?item wikibase:sitelinks ?linkcount;
    wdt:P6104 wd:Q104010394.
  OPTIONAL { ?item wdt:P19 ?birthplace. }
  OPTIONAL { ?item wdt:P20 ?deathplace. }
  OPTIONAL { ?item wdt:P21 ?gender. }
  OPTIONAL { ?item wdt:P27 ?nationality. }
  OPTIONAL { ?item wdt:P39 ?function. }
  OPTIONAL { ?item wdt:P101 ?domain. }
  OPTIONAL { ?item wdt:P106 ?profession. }
  OPTIONAL { ?item wdt:P108 ?company. }
  OPTIONAL { ?item wdt:P166 ?prize. }
  OPTIONAL { ?item wdt:P569 ?birthdate. }
  OPTIONAL { ?item wdt:P570 ?deathdate. }
  OPTIONAL { ?item wdt:P734 ?lastname. }
  OPTIONAL { ?item wdt:P735 ?firstname. }
  OPTIONAL { ?item wdt:P800 ?work. }
  OPTIONAL { ?item wdt:P937 ?workplace. }
  OPTIONAL {
    ?item skos:altLabel ?alias.
    FILTER((LANG(?alias)) = "nl")
  }
  OPTIONAL {
    ?article schema:about ?item;
      schema:inLanguage "nl";
      schema:isPartOf <https://nl.wikipedia.org/>.
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?alias"):::projected v19("?article") v13("?birthdate"):::projected v4("?birthplace") v11("?company") v14("?deathdate"):::projected v5("?deathplace") v9("?domain") v16("?firstname") v8("?function") v6("?gender") v2("?item"):::projected v15("?lastname") v3("?linkcount"):::projected v7("?nationality") v12("?prize") v10("?profession") v17("?work") v18("?workplace") c3(["bd:serviceParam"]):::iri c8(["wd:Q104010394"]):::iri c5(["#91;AUTO_LANGUAGE#93;,nl,fr,en,de,en"]):::literal c28([https://nl.wikipedia.org/]):::iri c1(["nl"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end v2 --"wikibase:sitelinks"--> v3 v2 --"wdt:P6104"--> c8 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P19".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P20".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P21".-> v6 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P27".-> v7 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P39".-> v8 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P101".-> v9 end subgraph optional6["(optional)"] style optional6 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P106".-> v10 end subgraph optional7["(optional)"] style optional7 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P108".-> v11 end subgraph optional8["(optional)"] style optional8 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P166".-> v12 end subgraph optional9["(optional)"] style optional9 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v13 end subgraph optional10["(optional)"] style optional10 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v14 end subgraph optional11["(optional)"] style optional11 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P734".-> v15 end subgraph optional12["(optional)"] style optional12 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P735".-> v16 end subgraph optional13["(optional)"] style optional13 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P800".-> v17 end subgraph optional14["(optional)"] style optional14 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P937".-> v18 end subgraph optional15["(optional)"] style optional15 fill:#bbf,stroke-dasharray: 5 5; v2 -."skos:altLabel".-> v1 end subgraph optional16["(optional)"] style optional16 fill:#bbf,stroke-dasharray: 5 5; v19 -."schema:about".-> v2 v19 --"schema:inLanguage"--> c1 v19 --"schema:isPartOf"--> c28 end