query-a6e493593d408433ad1261a384667aba

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?human ?humanLabel ?article (sample(?occLabel) as ?occupation) WHERE {
 ?human wdt:P570 ?d  . 
 ?article schema:about ?human .
 ?article schema:isPartOf <https://sl.wikipedia.org/>.
  FILTER( DAY(?d)=28 && MONTH(?d) = 8 )
  SERVICE wikibase:label {bd:serviceParam wikibase:language "sl" .
                         ?human rdfs:label ?humanLabel . 
                         ?occ rdfs:label ?occLabel . }
  optional {?human wdt:P106 ?occ . }
  } group by ?human ?humanLabel ?article

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article"):::projected v1("?d") v2("?human"):::projected v4("?humanLabel"):::projected v5("?occ") v6("?occLabel"):::projected v7("?occupation") c8(["bd:serviceParam"]):::iri c6([https://sl.wikipedia.org/]):::iri c10(["sl"]):::literal f0[["day-from-dateTime(?d) = '28^^xsd:integer'month-from-dateTime(?d) = '8^^xsd:integer'"]] f0 --> v1 v2 --"wdt:P570"--> v1 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 v2 --"rdfs:label"--> v4 v5 --"rdfs:label"--> v6 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P106".-> v5 end bind2[/"sample(?occLabel)"/] v6 --o bind2 bind2 --as--o v7