query-d84c009d5b146546f158581f6deea44b

rq turtle/ttl

title: Personen verurteilt für Hexerei SELECT ?item_title ?geschlecht ?land (GROUP_CONCAT(DISTINCT ?lang; SEPARATOR = ", ") AS ?sprachen) ?article ?item WHERE { ?item wdt:P1399 wd:Q259745. OPTIONAL { ?frwiki schema:about ?item; schema:isPartOf https://fr.wikipedia.org/; schema:name ?fr_title. } OPTIONAL { ?enwiki schema:about ?item; schema:isPartOf https://en.wikipedia.org/; schema:name ?en_title. } OPTIONAL { ?dewiki schema:about ?item; schema:isPartOf https://de.wikipedia.org/; schema:name ?de_title. } OPTIONAL { ?page schema:about ?item; schema:inLanguage ?lang. } OPTIONAL { ?item wdt:P21 ?gender. } OPTIONAL { ?item wdt:P27 ?country. } BIND(IF(BOUND(?dewiki), ?dewiki, IF(BOUND(?frwiki), ?frwiki, ?enwiki)) AS ?article) BIND(IF(BOUND(?de_title), ?de_title, IF(BOUND(?fr_title), ?fr_title, IF(BOUND(?en_title), ?en_title, ?item_title))) AS ?page_title) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da,sv,cs,en". ?item rdfs:label ?item_title. ?gender rdfs:label ?geschlecht. ?country rdfs:label ?land. } } GROUP BY ?item_title ?geschlecht ?land ?article ?item

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Personen verurteilt für Hexerei
SELECT ?item_title ?geschlecht ?land (GROUP_CONCAT(DISTINCT ?lang; SEPARATOR = ", ") AS ?sprachen) ?article ?item WHERE {
  ?item wdt:P1399 wd:Q259745.
  OPTIONAL {
    ?frwiki schema:about ?item;
      schema:isPartOf <https://fr.wikipedia.org/>;
      schema:name ?fr_title.
  }
  OPTIONAL {
    ?enwiki schema:about ?item;
      schema:isPartOf <https://en.wikipedia.org/>;
      schema:name ?en_title.
  }
  OPTIONAL {
    ?dewiki schema:about ?item;
      schema:isPartOf <https://de.wikipedia.org/>;
      schema:name ?de_title.
  }
  OPTIONAL {
    ?page schema:about ?item;
      schema:inLanguage ?lang.
  }
  OPTIONAL { ?item wdt:P21 ?gender. }
  OPTIONAL { ?item wdt:P27 ?country. }
  BIND(IF(BOUND(?dewiki), ?dewiki, IF(BOUND(?frwiki), ?frwiki, ?enwiki)) AS ?article)
  BIND(IF(BOUND(?de_title), ?de_title, IF(BOUND(?fr_title), ?fr_title, IF(BOUND(?en_title), ?en_title, ?item_title))) AS ?page_title)
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da,sv,cs,en".
    ?item rdfs:label ?item_title.
    ?gender rdfs:label ?geschlecht.
    ?country rdfs:label ?land.
  }
}
GROUP BY ?item_title ?geschlecht ?land ?article ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v12("?article"):::projected v11("?country") v7("?de_title") v6("?dewiki") v5("?en_title") v4("?enwiki") v3("?fr_title") v2("?frwiki") v10("?gender") v15("?geschlecht"):::projected v1("?item"):::projected v14("?item_title"):::projected v16("?land"):::projected v9("?lang"):::projected v8("?page") v13("?page_title") v17("?sprachen") c8([https://de.wikipedia.org/]):::iri c2(["wd:Q259745"]):::iri c5([https://fr.wikipedia.org/]):::iri c15(["#91;AUTO_LANGUAGE#93;,da,sv,cs,en"]):::literal c7([https://en.wikipedia.org/]):::iri c13(["bd:serviceParam"]):::iri v1 --"wdt:P1399"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v1 v2 --"schema:isPartOf"--> c5 v2 --"schema:name"--> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v1 v4 --"schema:isPartOf"--> c7 v4 --"schema:name"--> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v1 v6 --"schema:isPartOf"--> c8 v6 --"schema:name"--> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v8 -."schema:about".-> v1 v8 --"schema:inLanguage"--> v9 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P21".-> v10 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P27".-> v11 end bind0[/"if(bound(?dewiki),?dewiki,if(bound(?frwiki),?frwiki,?enwiki))"/] v6 --o bind0 v2 --o bind0 v4 --o bind0 bind0 --as--o v12 bind1[/"if(bound(?de_title),?de_title,if(bound(?fr_title),?fr_title,if(bound(?en_title),?en_title,?item_title)))"/] v7 --o bind1 v3 --o bind1 v5 --o bind1 v14 --o bind1 bind1 --as--o v13 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 v1 --"rdfs:label"--> v14 v10 --"rdfs:label"--> v15 v11 --"rdfs:label"--> v16 end bind3[/"?lang"/] v9 --o bind3 bind3 --as--o v17