query-2f28957bd3a59f248b6b54c4ff29a4a6

rq turtle/ttl

21:29, 8 January 2019 (UTC)) talk (ImreSamu--v2. - részletesebb és pontosabb lista. minden elem opciós, ha azok kellenek ami nincs megadva - akkot irt át az "OPTIONAL"-t "MINUS"-ra az adott elemnél.

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 DISTINCT ?itemLabel ?item ?eduLabel ?start ?end ?adegreeLabel ?amajorLabel  WHERE
{ ?item wdt:P27 wd:Q28 .
  ?item p:P69 ?education_statement .
  OPTIONAL {?education_statement ps:P69  ?edu    }
  OPTIONAL {?education_statement pq:P580 ?start  }
  OPTIONAL {?education_statement pq:P582 ?end    }
  OPTIONAL {?education_statement pq:P512 ?adegree}
  OPTIONAL {?education_statement pq:P812 ?amajor }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en,de,fr,it,es,ru,zh" . }
} ORDER BY ?itemLabel ?start ?end

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?adegree") v8("?amajor") v6("?edu") v5("?education_statement") v3("?end"):::projected v4("?item"):::projected v1("?itemLabel"):::projected v2("?start"):::projected c2(["wd:Q28"]):::iri c10(["bd:serviceParam"]):::iri c12(["hu,en,de,fr,it,es,ru,zh"]):::literal v4 --"p:direct/P27"--> c2 v4 --"p:P69"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:statement/P69".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P580".-> v2 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P582".-> v3 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P512".-> v7 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P812".-> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end