query-bb89a790d69b149c1b096f4c82920507

rq turtle/ttl

Number of pages per novel in SrpELTeC collection SELECT DISTINCT ?novel ?novelLabel ?collection ?collectionLabel ?numpage WHERE { # novel in collection srpELTeC (Q106936149) and srpELTeC-extended (Q109123373) VALUES ?collection { wd:Q106936149 wd:Q109123373 } ?novel wdt:P31 wd:Q7725634; wdt:P747 ?edition. ?edition wdt:P1433 ?collection; wdt:P1104 ?numpage. SERVICE wikibase:label { bd:serviceParam wikibase:language "sr". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Number of pages per novel in SrpELTeC collection
SELECT DISTINCT ?novel ?novelLabel ?collection ?collectionLabel ?numpage
WHERE {
  # novel in collection srpELTeC (Q106936149) and srpELTeC-extended (Q109123373)
  VALUES ?collection { wd:Q106936149 wd:Q109123373 }
  ?novel wdt:P31 wd:Q7725634;
         wdt:P747 ?edition.
  ?edition wdt:P1433 ?collection;
           wdt:P1104 ?numpage.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sr". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?collection"):::projected v3("?edition") v2("?novel"):::projected v4("?numpage"):::projected c7(["bd:serviceParam"]):::iri c2(["wd:Q7725634"]):::iri c9(["sr"]):::literal bind0[/VALUES ?collection/] bind0-->v1 bind00(["wd:Q106936149"]) bind00 --> bind0 bind01(["wd:Q109123373"]) bind01 --> bind0 v2 --"wdt:P31"--> c2 v2 --"wdt:P747"--> v3 v3 --"wdt:P1433"--> v1 v3 --"wdt:P1104"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end