Thanks Andy... answers below...

Could you send complete, unbroken queries please?  I fixed up the last ones.
>

PREFIX api: <http://purl.org/linked-data/api/vocab#>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX dri: <http://nationalarchives.gov.uk/terms/dri#>
PREFIX elda: <http://www.epimorphics.com/vocabularies/lda#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX spec: <http://nationalarchives.gov.uk/terms/cat#>
PREFIX tna: <http://nationalarchives.gov.uk/vocab#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

DESCRIBE ?ancestor
WHERE
{
    BIND(<
http://nationalarchives.gov.uk/dri/catalogue/exportStatus/ReadyToProcess>
AS ?readyStatus)
    BIND(<
http://nationalarchives.gov.uk/dri/catalogue/item/c2433752-b1e5-44e4-a271-c36d29aa6a3b>
AS ?deselected)
    ?export rdfs:member ?member ;
            dri:username "dfreeman"^^xsd:string ;
            dri:exportStatus ?readyStatus .
    OPTIONAL
    {

        # get the ancestors of the deselected item
?deselected (dri:parent)+ ?ancestor .
 # get the ancestor that is a member of the export list
        FILTER EXISTS { ?export rdfs:member ?ancestor } .
    }
}


>
> What's the data? How much etc?
>

About 9m triples stored in embedded TDB - equates to approx 1GB data.


> Which version of Fuseki are you running?
>

0.2.5


> What's the config?
>

Fuseki is run using the following command:

/opt/jena-fuseki-0.2.5/fuseki-server
--loc=/opt/jena-fuseki-0.2.5/Data/clean/db --mgtPort=3131 --update
/catalogue

No special config other than this.


> How much heap?
>
>
Looks like the default Xmx1200 is being set within fuseki-server script -
we don't override this.

So I stopped and restarted Fuseki and then ran the above query which
resulted in the attached stack trace after about 5 mins.

Many thanks
Rob

-- 

Rob Walpole
Email [email protected]
Tel. +44 (0)7969 869881
Skype: RobertWalpolehttp://www.linkedin.com/in/robwalpole
10:41:25 INFO  TDB dataset: directory=/opt/jena-fuseki-0.2.5/Data/clean/db
10:41:25 INFO  Dataset path = /catalogue
10:41:25 INFO  Management services on port 3131
10:41:25 INFO  Adding management functions
10:41:25 INFO  Fuseki 0.2.5 2012-10-20T17:03:29+0100
10:41:25 INFO  Started 2013/01/31 10:41:25 GMT on port 3030
10:43:08 INFO  [1] GET 
http://localhost:3030/catalogue/query?query=PREFIX+api%3A+%3Chttp%3A%2F%2Fpurl.org%2Flinked-data%2Fapi%2Fvocab%23%3E%0D%0APREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0APREFIX+dri%3A+%3Chttp%3A%2F%2Fnationalarchives.gov.uk%2Fterms%2Fdri%23%3E%0D%0APREFIX+elda%3A+%3Chttp%3A%2F%2Fwww.epimorphics.com%2Fvocabularies%2Flda%23%3E%0D%0APREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0APREFIX+spec%3A+%3Chttp%3A%2F%2Fnationalarchives.gov.uk%2Fterms%2Fcat%23%3E%0D%0APREFIX+tna%3A+%3Chttp%3A%2F%2Fnationalarchives.gov.uk%2Fvocab%23%3E%0D%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0D%0A%0D%0ADESCRIBE+%3Fancestor%0D%0AWHERE%0D%0A%7B%0D%0A++++BIND%28%3Chttp%3A%2F%2Fnationalarchives.gov.uk%2Fdri%2Fcatalogue%2FexportStatus%2FReadyToProcess%3E+AS+%3FreadyStatus%29%0D%0A++++BIND%28%3Chttp%3A%2F%2Fnationalarchives.gov.uk%2Fdri%2Fcatalogue%2Fitem%2Fc2433752-b1e5-44e4-a271-c36d29aa6a3b%3E+AS+%3Fdeselected%29%0D%0A++++%3Fexport+rdfs%3Amember+%3Fmember+%3B%0D%0A++++++++++++dri%3Ausername+%22dfreeman%22%5E%5Exsd%3Astring+%3B%0D%0A++++++++++++dri%3AexportStatus+%3FreadyStatus+.%0D%0A++++OPTIONAL%0D%0A++++%7B%0D%0A++++++++%0D%0A++++++++%23+get+the+ancestors+of+the+deselected+item%0D%0A%09%3Fdeselected+%28dri%3Aparent%29%2B+%3Fancestor+.%0D%0A%09%09%0D%0A%09%23+get+the+ancestor+that+is+a+member+of+the+export+list%0D%0A++++++++FILTER+EXISTS+%7B+%3Fexport+rdfs%3Amember+%3Fancestor+%7D+.%0D%0A++++%7D%0D%0A%7D&output=text&stylesheet=%2Fxml-to-html.xsl
10:43:08 INFO  [1] Query = PREFIX api: <http://purl.org/linked-data/api/vocab#> 
 PREFIX dc: <http://purl.org/dc/terms/>  PREFIX dri: 
<http://nationalarchives.gov.uk/terms/dri#>  PREFIX elda: 
<http://www.epimorphics.com/vocabularies/lda#>  PREFIX rdf: 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>  PREFIX rdfs: 
<http://www.w3.org/2000/01/rdf-schema#>  PREFIX spec: 
<http://nationalarchives.gov.uk/terms/cat#>  PREFIX tna: 
<http://nationalarchives.gov.uk/vocab#>  PREFIX xsd: 
<http://www.w3.org/2001/XMLSchema#>    DESCRIBE ?ancestor  WHERE  {      
BIND(<http://nationalarchives.gov.uk/dri/catalogue/exportStatus/ReadyToProcess> 
AS ?readyStatus)      
BIND(<http://nationalarchives.gov.uk/dri/catalogue/item/c2433752-b1e5-44e4-a271-c36d29aa6a3b>
 AS ?deselected)      ?export rdfs:member ?member ;              dri:username 
"dfreeman"^^xsd:string ;              dri:exportStatus ?readyStatus .      
OPTIONAL      {                    # get the ancestors of the deselected item   
?deselected (dri:parent)+ ?ancestor .                   # get the ancestor that 
is a member of the export list          FILTER EXISTS { ?export rdfs:member 
?ancestor } .      }  }
10:51:30 WARN  Open iterator: QueryIterConcat/23
10:51:30 WARN  [1] RC = 500 : GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.ArrayList.<init>(ArrayList.java:112)
        at java.util.ArrayList.<init>(ArrayList.java:119)
        at com.hp.hpl.jena.sparql.path.eval.PathEval.eval$(PathEval.java:84)
        at com.hp.hpl.jena.sparql.path.eval.PathEval.eval(PathEval.java:38)
        at com.hp.hpl.jena.sparql.path.PathLib.ungroundedPath(PathLib.java:209)
        at com.hp.hpl.jena.sparql.path.PathLib.execTriplePath(PathLib.java:141)
        at com.hp.hpl.jena.sparql.path.PathLib.execTriplePath(PathLib.java:121)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIterPath.nextStage(QueryIterPath.java:48)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:113)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:65)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.main.iterator.QueryIterGraph$QueryIterGraphInner.hasNextBinding(QueryIterGraph.java:123)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:79)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIterProcessBinding.hasNextBinding(QueryIterProcessBinding.java:60)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIterDefaulting.hasNextBinding(QueryIterDefaulting.java:54)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:79)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIterConvert.hasNextBinding(QueryIterConvert.java:59)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding(QueryIteratorWrapper.java:40)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding(QueryIteratorWrapper.java:40)
        at 
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
        at 
com.hp.hpl.jena.sparql.engine.ResultSetStream.hasNext(ResultSetStream.java:72)
        at 
com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execDescribe(QueryExecutionBase.java:280)
        at 
com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execDescribe(QueryExecutionBase.java:257)
        at 
org.apache.jena.fuseki.servlets.SPARQL_Query.executeQuery(SPARQL_Query.java:299)
        at 
org.apache.jena.fuseki.servlets.SPARQL_Query.execute(SPARQL_Query.java:253)
10:51:30 INFO  [1] 500 GC overhead limit exceeded


Reply via email to