query-5ac7ed27e2181cc31c89157ca027c03a

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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?entityType ?entityTypeLabel ?dataType ?dataTypeLabel
WHERE {
    ?entityType wdt:P279 wd:Q111513007.
    ?entityType wdt:P2888 ?owlUrl
    OPTIONAL {
        ?dataType wdt:P31/wdt:P279* wd:Q19798645.
        ?dataType p:P366 [ps:P366 wd:Q114785479; pq:P642 ?entityType]
    }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?dataType"):::projected v1("?entityType"):::projected v2("?owlUrl") a1((" ")) a2((" ")) c5(["wd:Q19798645"]):::iri c11(["bd:serviceParam"]):::iri c7(["wd:Q114785479"]):::iri c2(["wd:Q111513007"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"p:direct/P279"--> c2 v1 --"p:direct/P2888"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P31".-> a1 a1 --"p:direct/P279"--> c5 a2 --"p:statement/P366"--> c7 a2 --"p:qualifier/P642"--> v1 v3 --"p:P366"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end