LOD-Laundromat / lodlaundry.github.io

http://lodlaundromat.org
2 stars 2 forks source link

pagination of wardrobe table can fail because of sort limit #60

Closed LaurensRietveld closed 9 years ago

LaurensRietveld commented 9 years ago

Heren,

Weten jullie dat je momenteel de laatste pagina (en meer) niet kan opvragen via de gui? De reden is al gekend, de virtuoso result sort limiet (zie hieronder);

Virtuoso 22023 Error SR353: Sorted TOP clause specifies more then 625560 rows to sort. Only 10000 are allowed. Either decrease the offset and/or row count or use a scrollable cursor

SPARQL query:
define sql:big-data-const 0 define input:default-graph-uri <http://lodlaundromat.org#seedlist> define input:default-graph-uri <http://lodlaundromat.org#11> PREFIX llo: <http://lodlaundromat.org/ontology/>
PREFIX ll: <http://lodlaundromat/org/resource/>
SELECT ?totalFilterCount ?drawId ?md5 ?url ?triples ?parent 
WHERE {
  BIND("5" AS ?drawId) 
  {
    SELECT ?md5 ?url ?triples ?parent WHERE { 
      {
         ?datadoc llo:url ?url ;
           llo:triples ?triples ;
           llo:md5 ?md5 .
        } UNION {
        ?datadoc llo:path ?url ;
           llo:triples ?triples ;
           llo:md5 ?md5 .
        ?parent llo:containsEntry ?datadoc .
        }     } ORDER BY ASC(?url) LIMIT 50 OFFSET 625510
  }
  {
    SELECT (COUNT(?datadoc) AS ?totalFilterCount) WHERE {
      {
         ?datadoc llo:url ?url ;
           llo:triples ?triples ;
           llo:md5 ?md5 .
        } UNION {
        ?datadoc llo:path ?url ;
           llo:triples ?triples ;
           llo:md5 ?md5 .
        ?parent llo:containsEntry ?datadoc .
        }     }
  }
} 

Groeten,

Miel

LaurensRietveld commented 9 years ago

fixed. sorting is now disabled though..