query-b5b692cc7532f13a229ff2c91b7434fe

rq turtle/ttl

Jan.zhouf

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?predicate ?propertyLabel ?propertyAltLabel ?object ?value ?qualifier ?qualifierLabel ?qualifierValue
WHERE
{
  wd:Q15 ?predicate ?object.
  ?property (wikibase:claim| wikibase:directClaim) ?predicate.
  OPTIONAL
  {
    ?property wikibase:statementProperty ?ps.
    ?object ?ps ?value.
    OPTIONAL
    {
      ?qualifier  wikibase:qualifier ?pq.
      ?object ?pq ?qualifierValue.
    }
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "cs". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?object"):::projected v7("?pq") v1("?predicate"):::projected v3("?property") v4("?ps") v6("?qualifier"):::projected v8("?qualifierValue"):::projected v5("?value"):::projected c9(["cs"]):::literal c7(["bd:serviceParam"]):::iri c1(["wd:Q15"]):::iri c1 -->v1--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wikibase:directClaim"--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wikibase:claim"--> v1 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wikibase:statementProperty".-> v4 v2 -->v4--> v5 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v6 -."wikibase:qualifier".-> v7 v2 -->v7--> v8 end end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end