query-0bfeaf21853e775152da19fedf26c8a6

rq turtle/ttl

List articles in the Alumni Oxonienses, 1st ed. SELECT ?item ?itemLabel ?page ?volume ?subject ?subjectLabel WHERE { VALUES (?BIOGRAPHICAL_ARTICLE ?ALUM_OX_1ST) { ( wd:Q19389637 wd:Q19036877 ) } ?item wdt:P31 ?BIOGRAPHICAL_ARTICLE; # is a biographical article (Q19389637) p:P1433 ?published_in_statement. ?published_in_statement ps:P1433 ?ALUM_OX_1ST. # published in Alumni Oxonienses, 1st ed. ?published_in_statement a wikibase:BestRank. OPTIONAL { ?published_in_statement pq:P304 ?page. } #?published_in_statement pq:P304 "77". # change the above line to this line to restrict to page 77. OPTIONAL { ?published_in_statement pq:P478 ?volume. } OPTIONAL { ?item wdt:P921 ?subject. } # FILTER (xsd:integer(?page) >= 50 && xsd:integer(?page) <= 100) # add this line to restrict to pages in the range 50–100. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } List articles in the Alumni Oxonienses, 1st ed. SELECT ?item ?itemLabel ?page ?volume ?subject ?subjectLabel WHERE { VALUES (?BIOGRAPHICAL_ARTICLE ?ALUM_OX_1ST) { ( wd:Q19389637 wd:Q19036877 ) } ?item wdt:P31 ?BIOGRAPHICAL_ARTICLE; # is a biographical article (Q19389637) p:P1433 ?published_in_statement. ?published_in_statement ps:P1433 ?ALUM_OX_1ST. # published in Alumni Oxonienses, 1st ed. ?published_in_statement a wikibase:BestRank. OPTIONAL { ?published_in_statement pq:P304 ?page. } #?published_in_statement pq:P304 "77". # change the above line to this line to restrict to page 77. OPTIONAL { ?published_in_statement pq:P478 ?volume. } OPTIONAL { ?item wdt:P921 ?subject. } # FILTER (xsd:integer(?page) >= 50 && xsd:integer(?page) <= 100) # add this line to restrict to pages in the range 50–100. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
# List articles in the Alumni Oxonienses, 1st ed.
SELECT ?item ?itemLabel ?page ?volume ?subject ?subjectLabel
WHERE
{
  VALUES (?BIOGRAPHICAL_ARTICLE ?ALUM_OX_1ST) { (
    wd:Q19389637
    wd:Q19036877
  ) }
  ?item wdt:P31 ?BIOGRAPHICAL_ARTICLE; # is a biographical article (Q19389637)
    p:P1433 ?published_in_statement.
  ?published_in_statement ps:P1433 ?ALUM_OX_1ST. # published in Alumni Oxonienses, 1st ed.
  ?published_in_statement a wikibase:BestRank.
  OPTIONAL { ?published_in_statement pq:P304 ?page. }
  #?published_in_statement pq:P304 "77".  # change the above line to this line to restrict to page 77.
  OPTIONAL { ?published_in_statement pq:P478 ?volume. }
  OPTIONAL { ?item wdt:P921 ?subject. }
  # FILTER (xsd:integer(?page) >= 50 && xsd:integer(?page) <= 100) # add this line to restrict to pages in the range 50–100.
  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; v2("?ALUM_OX_1ST") v1("?BIOGRAPHICAL_ARTICLE") v3("?item"):::projected v5("?page"):::projected v4("?published_in_statement") v7("?subject"):::projected v6("?volume"):::projected c10(["bd:serviceParam"]):::iri c5(["wikibase:BestRank"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?ALUM_OX_1ST ?BIOGRAPHICAL_ARTICLE/] bind0-->v1 bind0-->v2 bind00(["wd:Q19389637"]) bind00 --> bind0 bind01(["wd:Q19036877"]) bind01 --> bind0 v3 --"p:direct/P31"--> v1 v3 --"p:P1433"--> v4 v4 --"p:statement/P1433"--> v2 v4 --"a"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P304".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P478".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P921".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end