query-2eb459df111e7a4877500163c7c77a24

rq turtle/ttl

TODO

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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?profesi_n ?profesi_nLabel ?article WHERE {
  {
    ?profesi_n wdt:P31 wd:Q28640.
    ?article schema:about ?profesi_n .
    ?article schema:isPartOf <https://es.wikipedia.org/>.
  } UNION {
      ?profesi_n wdt:P31 wd:Q12737077.
      ?article schema:about ?profesi_n .
      ?article schema:isPartOf <https://es.wikipedia.org/>.                 
  } UNION {
        ?profesi_n wdt:P279 wd:Q28640.
        ?article schema:about ?profesi_n;
        schema:isPartOf <https://es.wikipedia.org/>.
  } UNION {
       ?profesi_n wdt:P279 wd:Q12737077.
       ?article schema:about ?profesi_n;
       schema:isPartOf <https://es.wikipedia.org/>. 
  }

    SERVICE wikibase:label { bd:serviceParam wikibase:language "es". }

} ORDER BY ?profesi_nLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article"):::projected v2("?profesi_n"):::projected v1("?profesi_nLabel"):::projected c6(["wd:Q12737077"]):::iri c9(["bd:serviceParam"]):::iri c2(["wd:Q28640"]):::iri c5([https://es.wikipedia.org/]):::iri c11(["es"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P279"--> c6 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> c5 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P279"--> c2 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> c5 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c6 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> c5 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c2 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> c5 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end