query-ecee0fa3fa78973de4a54cb7d2710f87

rq turtle/ttl

Count sizes of huge subsets intersections with WikibaseCirrusSearch it works extremely fast. WikibaseCirrusSearch and MWAPIBlazegraph often fails when counting sizes of intersections of huge subsets, for example, it is impossible to count number of humans without gender property set with only SPARQL-based optimizations. However with Taille des compteurs pour les intersections de gros sous-ensembles avec WikibaseCirrusSearch it works extremely fast. WikibaseCirrusSearch and MWAPIBlazegraph often fails when counting sizes of intersections of huge subsets, for example, it is impossible to count number of humans without gender property set with only SPARQL-based optimizations. However with Count sizes of huge subsets intersections with WikibaseCirrusSearch it works extremely fast. WikibaseCirrusSearch and MWAPIBlazegraph often fails when counting sizes of intersections of huge subsets, for example, it is impossible to count number of humans without gender property set with only SPARQL-based optimizations. However with Tellen grootte van grote subsets van intersecties met WikibaseCirrusSearch, werkt het extreem snel. WikibaseCirrusSearch en MWAPIBlazegraph slaagt vaak niet bij het tellen van de grootte van intersecties van enorme subsets, bijvoorbeeld is het onmogelijk om het aantal mensen te tellen zonder geslachtseigenschappen met alleen SPARQL-gebaseerde optimalisaties. Echter met gebruik van TODO Count sizes of huge subsets intersections with WikibaseCirrusSearch it works extremely fast. WikibaseCirrusSearch and MWAPIBlazegraph often fails when counting sizes of intersections of huge subsets, for example, it is impossible to count number of humans without gender property set with only SPARQL-based optimizations. However with Count sizes of huge subsets intersections with WikibaseCirrusSearch it works extremely fast. WikibaseCirrusSearch and MWAPIBlazegraph often fails when counting sizes of intersections of huge subsets, for example, it is impossible to count number of humans without gender property set with only SPARQL-based optimizations. However with 用WikibaseCirrusSearch计算大型子集交集点的大小 it works extremely fast. WikibaseCirrusSearch and MWAPIBlazegraph often fails when counting sizes of intersections of huge subsets, for example, it is impossible to count number of humans without gender property set with only SPARQL-based optimizations. However with

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?label ?count WHERE {
  {
    BIND("People without gender" AS ?label)
    SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "www.wikidata.org";
                      wikibase:api "Search"; wikibase:limit "once" ;
                      mwapi:srsearch "haswbstatement:P31=Q5 -haswbstatement:P21" ;
                      mwapi:srlimit "1" ; mwapi:srprop "" ; mwapi:srsort "none" ; mwapi:srnamespace "0" .
      ?count wikibase:apiOutput '//searchinfo[1]/@totalhits'.
    }
  } UNION {
    BIND("Male" AS ?label)
    SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "www.wikidata.org";
                      wikibase:api "Search"; wikibase:limit "once" ;
                      mwapi:srsearch "haswbstatement:P31=Q5 haswbstatement:P21=Q6581097" ;
                      mwapi:srlimit "1" ; mwapi:srprop "" ; mwapi:srsort "none" ; mwapi:srnamespace "0" .
      ?count wikibase:apiOutput '//searchinfo[1]/@totalhits'.
    }
  } UNION {
    BIND("Female" AS ?label)
    SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "www.wikidata.org";
                      wikibase:api "Search"; wikibase:limit "once" ;
                      mwapi:srsearch "haswbstatement:P31=Q5 haswbstatement:P21=Q6581072" ;
                      mwapi:srlimit "1" ; mwapi:srprop "" ; mwapi:srsort "none" ; mwapi:srnamespace "0" .
      ?count wikibase:apiOutput '//searchinfo[1]/@totalhits'.
    }
  } UNION {
    BIND("Other" AS ?label)
    SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "www.wikidata.org";
                      wikibase:api "Search"; wikibase:limit "once" ;
                      mwapi:srsearch "haswbstatement:P31=Q5 haswbstatement:P21 -haswbstatement:P21=Q6581097 -haswbstatement:P21=Q6581072" ;
                      mwapi:srlimit "1" ; mwapi:srprop "" ; mwapi:srsort "none" ; mwapi:srnamespace "0" .
      ?count wikibase:apiOutput '//searchinfo[1]/@totalhits'.
    }
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?count"):::projected v3("?label"):::projected c4(["www.wikidata.org"]):::literal c14([""]):::literal c20(["//searchinfo#91;1#93;/@totalhits"]):::literal c10(["haswbstatement:P31=Q5 -haswbstatement:P21"]):::literal c16(["none"]):::literal c18(["0"]):::literal c12(["1"]):::literal c23(["haswbstatement:P31=Q5 haswbstatement:P21 -haswbstatement:P21=Q6581097 -haswbstatement:P21=Q6581072"]):::literal c2(["bd:serviceParam"]):::iri c8(["once"]):::literal c6(["Search"]):::literal c21(["haswbstatement:P31=Q5 haswbstatement:P21=Q6581097"]):::literal c22(["haswbstatement:P31=Q5 haswbstatement:P21=Q6581072"]):::literal 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; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; bind0[/"'Other'"/] bind0 --as--o v3 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:limit"--> c8 c2 --"mwapi:srsearch"--> c23 c2 --"mwapi:srlimit"--> c12 c2 --"mwapi:srprop"--> c14 c2 --"mwapi:srsort"--> c16 c2 --"mwapi:srnamespace"--> c18 v2 --"mwapi:apiOutput"--> c20 end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; bind1[/"'Female'"/] bind1 --as--o v3 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:limit"--> c8 c2 --"mwapi:srsearch"--> c22 c2 --"mwapi:srlimit"--> c12 c2 --"mwapi:srprop"--> c14 c2 --"mwapi:srsort"--> c16 c2 --"mwapi:srnamespace"--> c18 v2 --"mwapi:apiOutput"--> c20 end end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; bind2[/"'Male'"/] bind2 --as--o v3 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:limit"--> c8 c2 --"mwapi:srsearch"--> c21 c2 --"mwapi:srlimit"--> c12 c2 --"mwapi:srprop"--> c14 c2 --"mwapi:srsort"--> c16 c2 --"mwapi:srnamespace"--> c18 v2 --"mwapi:apiOutput"--> c20 end end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; bind3[/"'People without gender'"/] bind3 --as--o v3 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:limit"--> c8 c2 --"mwapi:srsearch"--> c10 c2 --"mwapi:srlimit"--> c12 c2 --"mwapi:srprop"--> c14 c2 --"mwapi:srsort"--> c16 c2 --"mwapi:srnamespace"--> c18 v2 --"mwapi:apiOutput"--> c20 end end union0r <== or ==> union0l end