query-c18ed0abf8415d6264149985070ab54c

rq turtle/ttl

IOC identifier worklist

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item ?label ?year ?month ?day WHERE {
  ?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
  ?item wdt:P1344 ?event .
  {
    ?event wdt:P31 wd:Q21246076; wdt:P31 wd:Q18536594 . # rowing event
  } UNION {
    ?event wdt:P31 wd:Q720609 . # Rowing at the Summer Olympics
  } UNION {
    ?event wdt:P31 wd:Q159821 . # Summer Olympic Games
  }  
  MINUS { ?item wdt:P3171 [] }
#  ?item rdfs:label ?label .
#  FILTER(LANG(?label) = 'en') .
#  FILTER(REGEX(STR(?label), '^[A-Za-z ]+$') = true) .
#  ?item p:P569 [ psv:P569 [ wikibase:timeValue ?dateOfBirth; wikibase:timePrecision 11 ] ] .
#  BIND(YEAR(?dateOfBirth) AS ?year) .
#  BIND(MONTH(?dateOfBirth) AS ?month) .
#  BIND(DAY(?dateOfBirth) AS ?day) .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?event") v1("?item"):::projected a3((" ")) a1((" ")) a2((" ")) c9(["wd:Q720609"]):::iri c7(["wd:Q21246076"]):::iri c8(["wd:Q18536594"]):::iri c4(["wd:Q26270618"]):::iri c10(["wd:Q159821"]):::iri v1 --"p:P106"--> a1 a1 --"p:statement/P106"--> a2 a2 --"p:direct/P279"--> c4 v1 --"p:direct/P1344"--> v2 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; v2 --"p:direct/P31"--> c10 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"p:direct/P31"--> c9 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"p:direct/P31"--> c7 v2 --"p:direct/P31"--> c8 end union0r <== or ==> union0l end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"p:direct/P3171"--> a3 end