gklyne / milarq Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/milarq
Automatically exported from code.google.com/p/milarq
Notes for using MILARQ ====================== This file available at: http://code.google.com/p/milarq/source/browse/README.text See also documents in the MILARQ project wiki: - http://code.google.com/p/milarq/wiki/ServerConfiguration - http://code.google.com/p/milarq/wiki/CLAROS_server_setup_notes (specific to CLAROS, but information may be helpful for other projects) The MILARQ project includes copies of the relevant Jena/ARQ/TDB ARQ library files in the webapp/WEB-INF/lib directory. It does not work with older versions, and probably does not work yet with newer versions. See: http://code.google.com/p/milarq/source/browse/#hg%2Fwebapp%2FWEB-INF%2Flib TDB and ARQ command line tools ------------------------------ The command line utilities used for loading and querying a TDB database are in the Jena library .jar files, in directory webapp/WEB-INF/lib. Project file workspace/tools/define_paths.sh contains a shell script that sets up the Java environment and defines commands to run these utilities. Logging output from the command line utilities is controlled by webapp/WEB-INF/classes/log4j.properties. [[@@I think - need to confirm this]] For details about how to use the standard ARQ and TDB command line tools, see: http://jena.sourceforge.net/tools.html Preparing composite indexes --------------------------- See workspace/tools/process.sh Configuring and running a SPARQLite servlet using the extra indexing -------------------------------------------------------------------- See docs/howto.text Directories ----------- src/ - all java sources src/cmd/ - utilities for augmenting data, creating alternative indexes, and performance-testing src/propertyfunctions/ - additional ARQ property functions used to process additional indexes src/uk.ac.ox.zoo.sparqlite/... - original SPARQlite code, reorganized, integrated with new property functions and with new/updated configuration mechanisms src/util/ - bits of support code. TF.java defines local vocabularies (mainly for testing?) JUnit3/ Apache Tomcat .../ JRE System Library/ Referenced Libraries/ - instantiated by some Eclipse magic, it seems: they aren't present in the code repository docs/ - servlet setup HOWTO and project plan. More to come. lib/ - servlet API JAR (?) test/ - unused hangover from SPARQLite? webapp/ - web application (servlet) directories webapp/WEB-INF/data/ webapp/WEB-INF/tdb/ - test data from SPARQLite (is this used?) webapp/WEB-INF/classes/... ? can't tell if this is used or up to date - it appears to contain some new class files, but I don't see any of the exception classes here. webapp/WEB-INF/lib/... - java support libraries used (ARQ, TDB and much more) webapp/lib/... - stuff used by the SPARQLite javascript applications (YUI, etc.) Testing ------- (What tests should be runnable out-of-box with properly configured system?)
Server log shows query and error:
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] initialised request
processor [http-8080-1]
15:29:20 INFO - zoo.sparqlite.Processor :: [143] begin processing
request for path /combined
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] check if the endpoint
exists [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] completed check
endpoint exists in 0 ms [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] check the
well-formedness of the request [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.RequestWrapper :: processing GET
15:29:20 TRACE - zoo.sparqlite.RequestWrapper :: found query param: PREFIX
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
CONSTRUCT
{
?id a claros:Counter
; claros:c-subject-objectType ?type
; claros:c-subject-objectShape ?shape
; claros:c-subject-findLocationName ?place
; claros:c-subject-not-before ?early
; claros:c-subject-not-after ?late
; claros:count ?c
.
}
WHERE
{ SELECT ?id ?type ?shape ?regionname ?placename ?early ?late (COUNT (*) AS ?c) WHERE
{ GRAPH <http://purl.org/NET/Claros/graph/arachne>
{ SELECT ?s ?type ?shape ?early ?late (BNODE(fn:concat(?type,?shape,?early,?late,GROUP_CONCAT(?p))) as ?id) WHERE
{ ?s rdf:type crm:E22.Man-Made_Object
; claros:subject-objectType ?type
.
OPTIONAL { ?s claros:subject-objectShape ?shape }
OPTIONAL { ?s claros:subject-not-before ?early }
OPTIONAL { ?s claros:subject-not-after ?late }
OPTIONAL { ?s claros:subject-findLocationName ?p }
} GROUP BY ?s ?type ?shape ?early ?late ORDER BY ?p
}
?s claros:subject-findLocationName ?p
}
} GROUP BY ?id ?type ?shape ?place ?early ?late
15:29:20 TRACE - zoo.sparqlite.RequestWrapper :: check query syntax
15:29:20 TRACE - zoo.sparqlite.RequestWrapper :: using SPARQL 1.1 syntax
15:29:20 TRACE - zoo.sparqlite.RequestWrapper :: parsed query ok
15:29:20 INFO - zoo.sparqlite.Processor :: [143] query: PREFIX rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
CONSTRUCT
{
?id a claros:Counter
; claros:c-subject-objectType ?type
; claros:c-subject-objectShape ?shape
; claros:c-subject-findLocationName ?place
; claros:c-subject-not-before ?early
; claros:c-subject-not-after ?late
; claros:count ?c
.
}
WHERE
{ SELECT ?id ?type ?shape ?regionname ?placename ?early ?late (COUNT (*) AS ?c) WHERE
{ GRAPH <http://purl.org/NET/Claros/graph/arachne>
{ SELECT ?s ?type ?shape ?early ?late (BNODE(fn:concat(?type,?shape,?early,?late,GROUP_CONCAT(?p))) as ?id) WHERE
{ ?s rdf:type crm:E22.Man-Made_Object
; claros:subject-objectType ?type
.
OPTIONAL { ?s claros:subject-objectShape ?shape }
OPTIONAL { ?s claros:subject-not-before ?early }
OPTIONAL { ?s claros:subject-not-after ?late }
OPTIONAL { ?s claros:subject-findLocationName ?p }
} GROUP BY ?s ?type ?shape ?early ?late ORDER BY ?p
}
?s claros:subject-findLocationName ?p
}
} GROUP BY ?id ?type ?shape ?place ?early ?late
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] completed check
request form in 8 ms [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] apply query policy
rules [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.QueryPolicy :: apply query policy
15:29:20 TRACE - zoo.sparqlite.QueryPolicy :: apply query form policy
15:29:20 TRACE - zoo.sparqlite.QueryPolicy :: apply dataset description
policy
15:29:20 TRACE - zoo.sparqlite.QueryPolicy :: apply limit ceiling policy
15:29:20 TRACE - zoo.sparqlite.QueryPolicy :: apply variable predicates
policy
15:29:20 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
15:29:20 TRACE - zoo.sparqlite.QueryPolicy :: apply filter policy
15:29:20 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] completed query policy
in 1 ms [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] create a query
execution [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.EndpointTDB :: exists guard condition
15:29:20 TRACE - sparqlite.config.Config :: loading description model
from
/home/graham/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwe
bapps/claros_demo_server/WEB-INF/tdb/combined.ttl
15:29:20 TRACE - sparqlite.config.Config :: description root is
file:///home/graham/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp
0/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
15:29:20 WARN - jena.tdb.exec :: No BGP optimizer
15:29:20 TRACE - sparqlite.config.Config :: description root is
file:///home/graham/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp
0/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
15:29:20 TRACE - sparqlite.config.Config :: dataset root is
file:///home/graham/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp
0/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
15:29:20 TRACE - sparqlite.config.Config :: LARQ location
claros_demo_server/WebContent/WEB-INF/data/combined/lucene-literals provided
15:29:20 TRACE - zoo.sparqlite.EndpointTDB :: create query execution
15:29:20 TRACE - zoo.sparqlite.EndpointTDB :: set larq index
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] completed create query
execution in 11 ms [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] execute the query
[http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] execute CONSTRUCT
query [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] handle an unexpected
exception [http-8080-1]
15:29:20 ERROR - zoo.sparqlite.Processor :: [143] caught unexpected
exception: caught exception during query execution: null
com.hp.hpl.jena.sparql.ARQNotImplemented
at com.hp.hpl.jena.sparql.engine.main.VarRename$TransformRename.transform(VarRename.java:150)
at com.hp.hpl.jena.sparql.algebra.op.OpProject.apply(OpProject.java:39)
at com.hp.hpl.jena.sparql.algebra.Transformer$ApplyTransformVisitor.visit1(Transformer.java:135)
at com.hp.hpl.jena.sparql.algebra.OpVisitorByType.visit(OpVisitorByType.java:100)
at com.hp.hpl.jena.sparql.algebra.op.OpProject.visit(OpProject.java:33)
at com.hp.hpl.jena.sparql.algebra.OpWalker$WalkerVisitor.visit1(OpWalker.java:85)
at com.hp.hpl.jena.sparql.algebra.OpVisitorByType.visit(OpVisitorByType.java:100)
at com.hp.hpl.jena.sparql.algebra.op.OpProject.visit(OpProject.java:33)
at com.hp.hpl.jena.sparql.algebra.OpWalker$WalkerVisitor.visit1(OpWalker.java:84)
at com.hp.hpl.jena.sparql.algebra.OpVisitorByType.visit(OpVisitorByType.java:70)
at com.hp.hpl.jena.sparql.algebra.op.OpGraph.visit(OpGraph.java:33)
at com.hp.hpl.jena.sparql.algebra.OpWalker$WalkerVisitor.visit2(OpWalker.java:93)
at com.hp.hpl.jena.sparql.algebra.OpVisitorByType.visit(OpVisitorByType.java:43)
at com.hp.hpl.jena.sparql.algebra.op.OpJoin.visit(OpJoin.java:55)
at com.hp.hpl.jena.sparql.algebra.OpWalker$WalkerVisitor.visit1(OpWalker.java:84)
at com.hp.hpl.jena.sparql.algebra.OpVisitorByType.visit(OpVisitorByType.java:112)
at com.hp.hpl.jena.sparql.algebra.op.OpGroup.visit(OpGroup.java:36)
at com.hp.hpl.jena.sparql.algebra.OpWalker$WalkerVisitor.visit1(OpWalker.java:84)
at com.hp.hpl.jena.sparql.algebra.OpVisitorByType.visit(OpVisitorByType.java:91)
at com.hp.hpl.jena.sparql.algebra.op.OpAssign.visit(OpAssign.java:97)
at com.hp.hpl.jena.sparql.algebra.OpWalker.walk(OpWalker.java:40)
at com.hp.hpl.jena.sparql.algebra.OpWalker.walk(OpWalker.java:30)
at com.hp.hpl.jena.sparql.algebra.Transformer.transformation(Transformer.java:88)
at com.hp.hpl.jena.sparql.algebra.Transformer.transformation(Transformer.java:76)
at com.hp.hpl.jena.sparql.algebra.Transformer.transform(Transformer.java:37)
at com.hp.hpl.jena.sparql.engine.main.VarRename.rename(VarRename.java:45)
at com.hp.hpl.jena.sparql.algebra.AlgebraGenerator.compileModifiers(AlgebraGenerator.java:577)
at com.hp.hpl.jena.sparql.algebra.AlgebraGenerator.compile(AlgebraGenerator.java:73)
at com.hp.hpl.jena.sparql.algebra.AlgebraGenerator.compileElementSubquery(AlgebraGenerator.java:487)
at com.hp.hpl.jena.sparql.algebra.AlgebraGenerator.compileElement(AlgebraGenerator.java:121)
at com.hp.hpl.jena.sparql.algebra.AlgebraGenerator.compile(AlgebraGenerator.java:81)
at com.hp.hpl.jena.sparql.algebra.AlgebraGenerator.compile(AlgebraGenerator.java:72)
at com.hp.hpl.jena.sparql.algebra.Algebra.compile(Algebra.java:63)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.createOp(QueryEngineBase.java:118)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.<init>(QueryEngineBase.java:47)
at com.hp.hpl.jena.sparql.engine.main.QueryEngineMain.<init>(QueryEngineMain.java:38)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB.<init>(QueryEngineTDB.java:63)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB$QueryEngineFactoryTDB.create(QueryEngineTDB.java:170)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:266)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:243)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execConstruct(QueryExecutionBase.java:110)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execConstruct(QueryExecutionBase.java:100)
at uk.ac.ox.zoo.sparqlite.Processor.executeQuery(Processor.java:151)
at uk.ac.ox.zoo.sparqlite.Processor.exec(Processor.java:64)
at uk.ac.ox.zoo.sparqlite.ServletBase.doCommon(ServletBase.java:25)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doCommon(ServletTDB.java:55)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doGet(ServletTDB.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] try to send error
response, code: 500, details: caught exception during query execution: null
[http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] perform any final
cleanup, release resources etc. [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] finalising request
handler [http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] close query execution
[http-8080-1]
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] close endpoint
[http-8080-1]
15:29:20 TRACE - zoo.sparqlite.EndpointTDB :: close larq index
15:29:20 TRACE - zoo.sparqlite.EndpointTDB :: close dataset
15:29:20 TRACE - zoo.sparqlite.Processor :: [143] flush buffer
[http-8080-1]
15:29:20 INFO - zoo.sparqlite.Processor :: [143] request processing
completed in 61 ms
Original issue reported on code.google.com by [email protected]
on 29 Sep 2010 at 2:32
When preprocessing of date values leads to a blank or otherwise invalid data,
it would be better to exclude the date from the output data rather than to
convert it to "9999", as the incorrect but apparently valid 9999 value can
cause some unexpected results later.
Unfortunately, because of the way the code is constructed, it is hard to see
how best to do this without also excluding some valid dates; e.g. sopme of the
antiquarian photos have just a single data value for claros:not_before, and no
(i.e. blank) value not not_after; e.g.
{{{
<crm:E61.Time_Primitive>
<claros:not_before rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">1930s</claros:not_before>
<claros:not_after rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"></claros:not_after>
</crm:E61.Time_Primitive>
}}}
This is fundamentally a data error (i.e. the blank value for claros:not_after),
but we need to handle these with some degree of grace.
In this case, I think the data should be treated as if the claros:not_after
statement is not present in the input data.
This in turn begs the question of what to do with the generated indexes, which
currently assume not_before and not_after always occur in pairs. (This is not
necessarily a requirement on the input data).
For the resulting application, the question becomes one of what a query
fragment like below should return if the data is not present:
{{{
?s claros:subject-not-before ("%(keyword)s" ?beg ?end)
FILTER ( ?beg >= %(beg)s ) .
FILTER ( ?end <= %(end)s ) .
}}}
I think the answer is that it should be the same as:
{{{
?lit pf:textMatch ('LEKYTHOS') .
?s claros:hasLiteral ?lit .
?s crm:P108I.was_produced_by
[ crm:P4.has_time-span
[ crm:P82.at_some_time_within
[ claros:not_before ?beg ;
claros:not_after ?end ;
]
]
] .
FILTER ( ?beg >= %(beg)s ) .
FILTER ( ?end <= %(end)s ) .
}}}
which would be that no result is returned for entries that don't define both
start and end dates.
But there's another case to consider: what should a query fragment like this
should return if the ?end data is not present:
{{{
?s claros:subject-not-before ("%(keyword)s" ?beg ?end)
FILTER ( ?beg >= %(beg)s ) .
}}}
Foll9owiung the same line, I think the answer is that it should be the same as:
{{{
?lit pf:textMatch ('LEKYTHOS') .
?s claros:hasLiteral ?lit .
?s crm:P108I.was_produced_by
[ crm:P4.has_time-span
[ crm:P82.at_some_time_within
[ claros:not_before ?beg ;
]
]
] .
FILTER ( ?beg >= %(beg)s ) .
}}}
i.e. the absence of the ?end value should not affect the result.
....
Full example record is:
{{{
<crm:E22.Man-Made_Object
rdf:about="http://www.beazley.ox.ac.uk/record/254909D6-5A1D-4919-80D5-2B607F2DBD
08">
<rdfs:label>Photograph 478</rdfs:label>
<crm:P102.has_title>
<crm:E35.Title>
<rdf:value>Photograph 478</rdf:value>
</crm:E35.Title>
</crm:P102.has_title>
<crm:P2.has_type>
<crm:E55.Type>
<rdf:value>Photograph</rdf:value>
<crm:P127.has_broader_term rdf:resource="http://purl.org/NET/Claros/vocab#ObjectType" />
</crm:E55.Type>
</crm:P2.has_type>
<crm:P48.has_preferred_identifier>
<crm:E42.Identifier>
<rdf:value>Photograph 478</rdf:value>
</crm:E42.Identifier>
</crm:P48.has_preferred_identifier>
<crm:P108I.was_produced_by>
<crm:E12.Production>
<rdfs:label>Production of Photograph 478</rdfs:label>
<crm:P126.employed>
<crm:E57.Material>
<rdfs:label></rdfs:label>
</crm:E57.Material>
</crm:P126.employed>
<crm:P4.has_time-span>
<crm:E52.Time-Span>
<crm:P82.at_some_time_within>
<crm:E61.Time_Primitive>
<claros:not_before rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">1930s</claros:not_before>
<claros:not_after rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear"></claros:not_after>
</crm:E61.Time_Primitive>
</crm:P82.at_some_time_within>
</crm:E52.Time-Span>
</crm:P4.has_time-span>
</crm:E12.Production>
</crm:P108I.was_produced_by>
<crm:P14I.was_classified_by>
<crm:E17.Type_Assignment>
<crm:P42.assigned>
<crm:E55.Type>
<rdfs:label>DUNBABIN ARCHIVE</rdfs:label>
</crm:E55.Type>
</crm:P42.assigned>
<crm:P42.assigned>
<crm:E55.Type>
<rdfs:label>A</rdfs:label>
</crm:E55.Type>
</crm:P42.assigned>
</crm:E17.Type_Assignment>
</crm:P14I.was_classified_by>
<crm:P53.has_former_or_current_location>
<crm:E53.Place>
<rdfs:label>GREECE, ATTICA, RHAMNOUS</rdfs:label>
<crm:P87.is_identified_by>
<crm:E48.Place_Name>
<rdf:value>GREECE, ATTICA, RHAMNOUS</rdf:value>
</crm:E48.Place_Name>
</crm:P87.is_identified_by>
</crm:E53.Place>
</crm:P53.has_former_or_current_location>
<crm:P53.has_former_or_current_location>
<crm:E53.Place>
<rdfs:label>RHAMNOUS, SANCTUARY OF NEMESIS</rdfs:label>
<crm:P87.is_identified_by>
<crm:E48.Place_Name>
<rdf:value>RHAMNOUS, SANCTUARY OF NEMESIS</rdf:value>
</crm:E48.Place_Name>
</crm:P87.is_identified_by>
</crm:E53.Place>
</crm:P53.has_former_or_current_location>
<crm:P138I.has_representation>
<crm:E38.Image rdf:about="http://www.beazley.ox.ac.uk/Photography/SPIFF/newx/478.D/cc001001.jpe">
<rdfs:label>Image of Photograph 478</rdfs:label>
</crm:E38.Image>
</crm:P138I.has_representation>
<crm:P138I.has_representation>
<crm:E38.Image rdf:about="http://www.beazley.ox.ac.uk/Photography/SPIFF/newx/478.C/cc001001.jpe">
<rdfs:label>Image of Photograph 478</rdfs:label>
</crm:E38.Image>
</crm:P138I.has_representation>
<crm:P138I.has_representation>
<crm:E38.Image rdf:about="http://www.beazley.ox.ac.uk/Photography/SPIFF/newx/478.B/cc001001.jpe">
<rdfs:label>Image of Photograph 478</rdfs:label>
</crm:E38.Image>
</crm:P138I.has_representation>
<crm:P138I.has_representation>
<crm:E38.Image rdf:about="http://www.beazley.ox.ac.uk/Photography/SPIFF/newx/478.a/cc001001.jpe">
<rdfs:label>Image of Photograph 478</rdfs:label>
</crm:E38.Image>
</crm:P138I.has_representation>
<crm:P138I.has_representation>
<crm:E38.Image rdf:about="http://www.beazley.ox.ac.uk/Photography/SPIFF/newx/478/cc001001.jpe">
<rdfs:label>Image of Photograph 478</rdfs:label>
</crm:E38.Image>
</crm:P138I.has_representation>
<crm:P138I.has_representation>
<crm:E38.Image rdf:about="http://www.beazley.ox.ac.uk/Photography/SPIFF/newx/478.a/ac001001.jpe">
<rdfs:label>Image of Photograph 478</rdfs:label>
<crm:P2.has_type rdf:resource="&claros;Thumbnail" />
</crm:E38.Image>
</crm:P138I.has_representation>
<crm:P70I.is_documented_in rdf:resource="http://www.beazley.ox.ac.uk/record/254909D6-5A1D-4919-80D5-2B607F2DBD08" />
</crm:E22.Man-Made_Object>
Original issue reported on code.google.com by [email protected]
on 13 Sep 2010 at 8:59
Observed by code review.
Anonymous inner class:
return new QueryIterator()
{
BufferedReader in = inFromFile( indexFullName );
:
}
Uses 'in' but never closes it, or its associated open file.
Original issue reported on code.google.com by [email protected]
on 27 Aug 2010 at 2:31
Using a MILARQ index-property to search for a keyword not present in the data
causes an internal server error to be generated. Server log below shows query
and error.
{{{
09:13:04 TRACE - zoo.sparqlite.Processor :: [396] initialised request
processor [http-8080-2]
09:13:04 INFO - zoo.sparqlite.Processor :: [396] begin processing
request for path /combined
09:13:04 TRACE - zoo.sparqlite.Processor :: [396] check if the endpoint
exists [http-8080-2]
09:13:04 TRACE - zoo.sparqlite.Processor :: [396] completed check
endpoint exists in 0 ms [http-8080-2]
09:13:04 TRACE - zoo.sparqlite.Processor :: [396] check the
well-formedness of the request [http-8080-2]
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: processing POST
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: checking content type of
POST request
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: found content type:
application/x-www-form-urlencoded
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: split by ';' first token:
'application/x-www-form-urlencoded'
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: content type ok
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: found query param: PREFIX
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX arqfn: <java:uk.ac.ox.zoo.sparqlite.>
ASK
{
LET (?crmtypetarget := "KeywordNotPresent")
GRAPH ?g
{
?s claros:subject-not-before ("KeywordNotPresent" ?beg ?end)
; rdf:type ?t
.
OPTIONAL { ?s crm:P102.has_title [ rdf:type crm:E35.Title ; rdf:value ?desc ] }
OPTIONAL { ?s crm:P70I.is_documented_in ?lnk }
?s crm:P14I.was_classified_by
[ crm:P42.assigned
[ rdfs:label ?crmtypetarget
]
] .
FILTER ( ?beg >= -0525 ) .
FILTER ( ?end <= -0475 ) .
}
}
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: check query syntax
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: using ARQ syntax
09:13:04 TRACE - zoo.sparqlite.RequestWrapper :: parsed query ok
09:13:04 INFO - zoo.sparqlite.Processor :: [396] query: PREFIX rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX arqfn: <java:uk.ac.ox.zoo.sparqlite.>
ASK
{
LET (?crmtypetarget := "KeywordNotPresent")
GRAPH ?g
{
?s claros:subject-not-before ("KeywordNotPresent" ?beg ?end)
; rdf:type ?t
.
OPTIONAL { ?s crm:P102.has_title [ rdf:type crm:E35.Title ; rdf:value ?desc ] }
OPTIONAL { ?s crm:P70I.is_documented_in ?lnk }
?s crm:P14I.was_classified_by
[ crm:P42.assigned
[ rdfs:label ?crmtypetarget
]
] .
FILTER ( ?beg >= -0525 ) .
FILTER ( ?end <= -0475 ) .
}
}
09:13:04 TRACE - zoo.sparqlite.Processor :: [396] completed check
request form in 1 ms [http-8080-2]
09:13:04 TRACE - zoo.sparqlite.Processor :: [396] apply query policy
rules [http-8080-2]
09:13:04 TRACE - zoo.sparqlite.QueryPolicy :: apply query policy
09:13:04 TRACE - zoo.sparqlite.QueryPolicy :: apply query form policy
09:13:04 TRACE - zoo.sparqlite.QueryPolicy :: apply dataset description
policy
09:13:04 TRACE - zoo.sparqlite.QueryPolicy :: apply limit ceiling policy
09:13:04 TRACE - zoo.sparqlite.QueryPolicy :: apply variable predicates
policy
09:13:04 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
09:13:04 TRACE - zoo.sparqlite.QueryPolicy :: apply filter policy
09:13:04 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
09:13:04 TRACE - zoo.sparqlite.Processor :: [396] completed query policy
in 0 ms [http-8080-2]
09:13:04 TRACE - zoo.sparqlite.Processor :: [396] create a query
execution [http-8080-2]
09:13:04 TRACE - zoo.sparqlite.EndpointTDB :: exists guard condition
09:13:04 TRACE - sparqlite.config.Config :: loading description model
from
/mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.server.core
/tmp1/wtpwebapps/claros_test_server/WEB-INF/tdb/combined.ttl
09:13:04 TRACE - sparqlite.config.Config :: description root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
09:13:04 WARN - jena.tdb.exec :: No BGP optimizer
09:13:05 TRACE - sparqlite.config.Config :: description root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
09:13:05 TRACE - sparqlite.config.Config :: dataset root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
09:13:05 TRACE - sparqlite.config.Config :: LARQ location
claros_test_server/WebContent/WEB-INF/data/combined/literals provided
09:13:05 TRACE - zoo.sparqlite.EndpointTDB :: create query execution
09:13:05 TRACE - zoo.sparqlite.EndpointTDB :: set larq index
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] completed create query
execution in 8 ms [http-8080-2]
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] execute the query
[http-8080-2]
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] execute ASK query
[http-8080-2]
09:13:05 TRACE - propertyfunctions.genericIndex :: build
09:13:05 TRACE - propertyfunctions.genericIndex :: enableIndex: URI
http://purl.org/NET/Claros/vocab#subject-not-before, term KeywordNotPresent
09:13:05 TRACE - propertyfunctions.genericIndex :: enableIndex: dir
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb
09:13:05 TRACE - propertyfunctions.genericIndex :: enableIndex: indexFullName
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/keywordnotpr
esent
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] handle an unexpected
exception [http-8080-2]
09:13:05 ERROR - zoo.sparqlite.Processor :: [396] caught unexpected
exception: caught exception during query execution:
java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/keywordnotpr
esent (No such file or directory)
java.lang.RuntimeException: java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/keywordnotpr
esent (No such file or directory)
at propertyfunctions.genericIndex.inFromFile(genericIndex.java:161)
at propertyfunctions.genericIndex.access$1(genericIndex.java:158)
at propertyfunctions.genericIndex$1.<init>(genericIndex.java:76)
at propertyfunctions.genericIndex.execEvaluated(genericIndex.java:74)
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval.exec(PropertyFunctionEval.java:32)
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase$RepeatApplyIterator.nextStage(PropertyFunctionBase.java:92)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:94)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:55)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:69)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterProcedure.hasNextBinding(QueryIterProcedure.java:57)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:69)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.optimizeExecuteQuads(OpExecutorTDB.java:201)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.execute(OpExecutorTDB.java:148)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:51)
at com.hp.hpl.jena.sparql.algebra.op.OpQuadPattern.visit(OpQuadPattern.java:80)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:186)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:93)
at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:64)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:210)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:136)
at com.hp.hpl.jena.sparql.algebra.op.OpConditional.visit(OpConditional.java:38)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:210)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:136)
at com.hp.hpl.jena.sparql.algebra.op.OpConditional.visit(OpConditional.java:38)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:186)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:93)
at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:64)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:263)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.execute(OpExecutorTDB.java:119)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:143)
at com.hp.hpl.jena.sparql.algebra.op.OpFilter.visit(OpFilter.java:80)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:186)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:93)
at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:64)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:79)
at com.hp.hpl.jena.sparql.engine.main.QC.execute(QC.java:40)
at com.hp.hpl.jena.sparql.engine.main.QueryEngineMain.eval(QueryEngineMain.java:52)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB.eval(QueryEngineTDB.java:112)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase.java:124)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.java:98)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:86)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB$QueryEngineFactoryTDB.create(QueryEngineTDB.java:177)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:266)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:243)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execAsk(QueryExecutionBase.java:218)
at uk.ac.ox.zoo.sparqlite.Processor.executeQuery(Processor.java:148)
at uk.ac.ox.zoo.sparqlite.Processor.exec(Processor.java:64)
at uk.ac.ox.zoo.sparqlite.ServletBase.doCommon(ServletBase.java:25)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doCommon(ServletTDB.java:55)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doPost(ServletTDB.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/keywordnotpr
esent (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileReader.<init>(FileReader.java:55)
at propertyfunctions.genericIndex.inFromFile(genericIndex.java:160)
... 77 more
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] try to send error
response, code: 500, details: caught exception during query execution:
java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/keywordnotpr
esent (No such file or directory) [http-8080-2]
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] perform any final
cleanup, release resources etc. [http-8080-2]
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] finalising request
handler [http-8080-2]
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] close query execution
[http-8080-2]
09:13:05 TRACE - zoo.sparqlite.Processor :: [396] close endpoint
[http-8080-2]
09:13:05 TRACE - zoo.sparqlite.EndpointTDB :: close larq index
09:13:05 TRACE - zoo.sparqlite.EndpointTDB :: close dataset
}}}
Original issue reported on code.google.com by [email protected]
on 13 Sep 2010 at 8:16
This query provokes an internal server error, where claros:s-term-nb-na-fwd
invokes a MILARQ genericIndex query.
{{{
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX arqfn: <java:uk.ac.ox.zoo.sparqlite.>
SELECT * WHERE
{
GRAPH ?g
{
?s claros:s-term-nb-na-fwd ("LEKYTHOS" ?beg ?end)
; claros:s-term-nb-na-fwd ("LEKYTHOS" ?beg)
; rdf:type ?t
.
}
}
}}}
Original issue reported on code.google.com by [email protected]
on 17 Sep 2010 at 2:23
What steps will reproduce the problem?
Issue the following query via claros_test_server:
{{{
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX arqfn: <java:uk.ac.ox.zoo.sparqlite.>
ASK
{
LET (?crmtypetarget := "LEKYTHOS")
GRAPH ?g
{
?s claros:subject-not-before ("LEKYTHOS" ?beg)
; rdf:type ?t
.
OPTIONAL { ?s crm:P102.has_title [ rdf:type crm:E35.Title ; rdf:value ?desc ] }
OPTIONAL { ?s crm:P70I.is_documented_in ?lnk }
?s crm:P14I.was_classified_by
[ crm:P42.assigned
[ rdfs:label ?crmtypetarget
]
] .
FILTER ( ?beg >= -0525 ) .
FILTER ( ?end <= -0475 ) .
}
}
}}}
Results in an internal server error being reported.
Repeating the query with, say, "?s claros:subject-not-before ("LEKYTHOS" ?beg
?end)" works fine.
(See WEB_INF/data/combined area in claros_test_server project for full config
details.)
An excerpt from the server console log shows:
{{{
17:37:17 TRACE - zoo.sparqlite.RequestWrapper :: parsed query ok
17:37:17 INFO - zoo.sparqlite.Processor :: [3] query: PREFIX rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX arqfn: <java:uk.ac.ox.zoo.sparqlite.>
ASK
{
LET (?crmtypetarget := "LEKYTHOS")
GRAPH ?g
{
?s claros:subject-not-before ("LEKYTHOS" ?beg)
; claros:subject-not-after ("LEKYTHOS" ?end)
; rdf:type ?t
.
OPTIONAL { ?s crm:P102.has_title [ rdf:type crm:E35.Title ; rdf:value ?desc ] }
OPTIONAL { ?s crm:P70I.is_documented_in ?lnk }
?s crm:P14I.was_classified_by
[ crm:P42.assigned
[ rdfs:label ?crmtypetarget
]
] .
FILTER ( ?beg >= -0525 ) .
FILTER ( ?end <= -0475 ) .
}
}
17:37:17 TRACE - zoo.sparqlite.Processor :: [3] completed check request
form in 14 ms [http-8080-1]
17:37:17 TRACE - zoo.sparqlite.Processor :: [3] apply query policy rules
[http-8080-1]
17:37:17 TRACE - zoo.sparqlite.QueryPolicy :: apply query policy
17:37:17 TRACE - zoo.sparqlite.QueryPolicy :: apply query form policy
17:37:17 TRACE - zoo.sparqlite.QueryPolicy :: apply dataset description
policy
17:37:17 TRACE - zoo.sparqlite.QueryPolicy :: apply limit ceiling policy
17:37:17 TRACE - zoo.sparqlite.QueryPolicy :: apply variable predicates
policy
17:37:17 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
17:37:17 TRACE - zoo.sparqlite.QueryPolicy :: apply filter policy
17:37:17 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
17:37:17 TRACE - zoo.sparqlite.Processor :: [3] completed query policy
in 0 ms [http-8080-1]
17:37:17 TRACE - zoo.sparqlite.Processor :: [3] create a query execution
[http-8080-1]
17:37:17 TRACE - zoo.sparqlite.EndpointTDB :: exists guard condition
17:37:17 TRACE - sparqlite.config.Config :: loading description model
from
/usr/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/cl
aros_test_server/WEB-INF/tdb/combined.ttl
17:37:17 TRACE - sparqlite.config.Config :: description root is
file:///usr/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpweb
apps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
17:37:17 WARN - jena.tdb.exec :: No BGP optimizer
17:37:17 TRACE - sparqlite.config.Config :: description root is
file:///usr/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpweb
apps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
17:37:17 TRACE - sparqlite.config.Config :: dataset root is
file:///usr/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpweb
apps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
17:37:17 TRACE - sparqlite.config.Config :: LARQ location
claros_test_server/WebContent/WEB-INF/data/combined/literals provided
17:37:17 TRACE - zoo.sparqlite.EndpointTDB :: create query execution
17:37:17 TRACE - zoo.sparqlite.EndpointTDB :: set larq index
17:37:17 TRACE - zoo.sparqlite.Processor :: [3] completed create query
execution in 36 ms [http-8080-1]
17:37:17 TRACE - zoo.sparqlite.Processor :: [3] execute the query
[http-8080-1]
17:37:17 TRACE - zoo.sparqlite.Processor :: [3] execute ASK query
[http-8080-1]
17:37:17 TRACE - propertyfunctions.genericIndex :: build
17:37:17 TRACE - propertyfunctions.genericIndex :: enableIndex: URI
http://purl.org/NET/Claros/vocab#subject-not-after, term LEKYTHOS
17:37:17 TRACE - propertyfunctions.genericIndex :: enableIndex: dir
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-na
17:37:17 TRACE - propertyfunctions.genericIndex :: enableIndex: indexFullName
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-na/LEKYTHOS
17:37:17 TRACE - propertyfunctions.genericIndex :: build
17:37:17 TRACE - propertyfunctions.genericIndex :: enableIndex: URI
http://purl.org/NET/Claros/vocab#subject-not-before, term LEKYTHOS
17:37:17 TRACE - propertyfunctions.genericIndex :: enableIndex: dir
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb
17:37:17 TRACE - propertyfunctions.genericIndex :: enableIndex: indexFullName
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/LEKYTHOS
>> gi: returning ( ?beg = "-525"^^xsd:int ) -> ( ?s =
<http://www.beazley.ox.ac.uk/record/6A1497E1-FC0B-4155-A5FE-9A1EE4C975DF> ) ->
( ?crmtypetarget = "LEKYTHOS" ) -> [Root]
17:37:17 ERROR - sparql.pfunction.PropertyFunctionBase$RepeatApplyIterator ::
Fatal exception: Node:
http://www.beazley.ox.ac.uk/record/6A1497E1-FC0B-4155-A5FE-9A1EE4C975DF
17:37:17 ERROR - engine.iterator.QueryIterProcedure :: Fatal exception: Node:
http://www.beazley.ox.ac.uk/record/6A1497E1-FC0B-4155-A5FE-9A1EE4C975DF
17:37:17 TRACE - zoo.sparqlite.Processor :: [3] handle an unexpected
exception [http-8080-1]
17:37:17 ERROR - zoo.sparqlite.Processor :: [3] caught unexpected
exception: caught exception during query execution: Node:
http://www.beazley.ox.ac.uk/record/6A1497E1-FC0B-4155-A5FE-9A1EE4C975DF
com.hp.hpl.jena.sparql.core.Var$NotAVariableException: Node:
http://www.beazley.ox.ac.uk/record/6A1497E1-FC0B-4155-A5FE-9A1EE4C975DF
at com.hp.hpl.jena.sparql.core.Var.alloc(Var.java:41)
at propertyfunctions.genericIndex.execEvaluated(genericIndex.java:71)
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval.exec(PropertyFunctionEval.java:32)
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase$RepeatApplyIterator.nextStage(PropertyFunctionBase.java:92)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:94)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:55)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:69)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterProcedure.hasNextBinding(QueryIterProcedure.java:57)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:69)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.optimizeExecuteQuads(OpExecutorTDB.java:201)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.execute(OpExecutorTDB.java:148)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:51)
at com.hp.hpl.jena.sparql.algebra.op.OpQuadPattern.visit(OpQuadPattern.java:80)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
...( and more)
}}}
Original issue reported on code.google.com by [email protected]
on 9 Sep 2010 at 4:49
This log shows the query and error. The error report is similar to a previous
issue with not enough variables for the index. I think it's because
genericIndex requires its subject to be a variable - i.e. must be used as a
"generator", cannot be used as a "filter".
{{{
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] initialised request
processor [http-8080-2]
13:05:12 INFO - zoo.sparqlite.Processor :: [571] begin processing
request for path /combined
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] check if the endpoint
exists [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] completed check
endpoint exists in 0 ms [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] check the
well-formedness of the request [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: processing POST
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: checking content type of
POST request
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: found content type:
application/x-www-form-urlencoded; charset=UTF-8
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: split by ';' first token:
'application/x-www-form-urlencoded'
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: content type ok
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: found query param: PREFIX
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT * WHERE
{ GRAPH ?g
{
?s claros:s-term-bysubject ( "CORINTH" ) .
?s claros:s-term-bysubject ( "oinochoe" ) .
?s crm:P14I.was_classified_by
[ rdf:type crm:E17.Type_Assignment ;
crm:P42.assigned
[ a crm:E55.Type ; crm:P127.has_broader_term claros:Shape ; rdfs:label ?lit ]
] .
FILTER regex( ?lit, "oinochoe" , 'i')
?s claros:subject-findLocationName ?nam .
FILTER regex( ?nam, "CORINTH" , 'i')
}
} OFFSET 5 LIMIT 5
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: check query syntax
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: using ARQ syntax
13:05:12 TRACE - zoo.sparqlite.RequestWrapper :: parsed query ok
13:05:12 INFO - zoo.sparqlite.Processor :: [571] query: PREFIX rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT * WHERE
{ GRAPH ?g
{
?s claros:s-term-bysubject ( "CORINTH" ) .
?s claros:s-term-bysubject ( "oinochoe" ) .
?s crm:P14I.was_classified_by
[ rdf:type crm:E17.Type_Assignment ;
crm:P42.assigned
[ a crm:E55.Type ; crm:P127.has_broader_term claros:Shape ; rdfs:label ?lit ]
] .
FILTER regex( ?lit, "oinochoe" , 'i')
?s claros:subject-findLocationName ?nam .
FILTER regex( ?nam, "CORINTH" , 'i')
}
} OFFSET 5 LIMIT 5
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] completed check
request form in 2 ms [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] apply query policy
rules [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.QueryPolicy :: apply query policy
13:05:12 TRACE - zoo.sparqlite.QueryPolicy :: apply query form policy
13:05:12 TRACE - zoo.sparqlite.QueryPolicy :: apply dataset description
policy
13:05:12 TRACE - zoo.sparqlite.QueryPolicy :: apply limit ceiling policy
13:05:12 TRACE - zoo.sparqlite.QueryPolicy :: apply variable predicates
policy
13:05:12 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
13:05:12 TRACE - zoo.sparqlite.QueryPolicy :: apply filter policy
13:05:12 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] completed query policy
in 0 ms [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] create a query
execution [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.EndpointTDB :: exists guard condition
13:05:12 TRACE - sparqlite.config.Config :: loading description model
from
/mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.server.core
/tmp1/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl
13:05:12 TRACE - sparqlite.config.Config :: description root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
13:05:12 WARN - jena.tdb.exec :: No BGP optimizer
13:05:12 TRACE - sparqlite.config.Config :: description root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
13:05:12 TRACE - sparqlite.config.Config :: dataset root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
13:05:12 TRACE - sparqlite.config.Config :: LARQ location
claros_demo_server/WebContent/WEB-INF/data/combined/lucene-literals provided
13:05:12 TRACE - zoo.sparqlite.EndpointTDB :: create query execution
13:05:12 TRACE - zoo.sparqlite.EndpointTDB :: set larq index
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] completed create query
execution in 10 ms [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] execute the query
[http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] execute SELECT query
[http-8080-2]
13:05:12 TRACE - propertyfunctions.genericIndex :: enableIndex: URI
http://purl.org/NET/Claros/vocab#s-term-bysubject, term oinochoe
13:05:12 TRACE - propertyfunctions.genericIndex :: enableIndex: dir
claros_demo_server/WebContent/WEB-INF/data/combined/indexes/term-subject
13:05:12 TRACE - propertyfunctions.genericIndex :: enableIndex: indexFullName
claros_demo_server/WebContent/WEB-INF/data/combined/indexes/term-subject/oinocho
e
13:05:12 TRACE - propertyfunctions.genericIndex :: enableIndex: URI
http://purl.org/NET/Claros/vocab#s-term-bysubject, term CORINTH
13:05:12 TRACE - propertyfunctions.genericIndex :: enableIndex: dir
claros_demo_server/WebContent/WEB-INF/data/combined/indexes/term-subject
13:05:12 TRACE - propertyfunctions.genericIndex :: enableIndex: indexFullName
claros_demo_server/WebContent/WEB-INF/data/combined/indexes/term-subject/corinth
13:05:12 ERROR - sparql.pfunction.PropertyFunctionBase$RepeatApplyIterator ::
Fatal exception: Node:
http://arachne.uni-koeln.de/artifact/36381-inschrift-fuer-augustus
13:05:12 ERROR - engine.iterator.QueryIterProcedure :: Fatal exception: Node:
http://arachne.uni-koeln.de/artifact/36381-inschrift-fuer-augustus
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] handle an unexpected
exception [http-8080-2]
13:05:12 ERROR - zoo.sparqlite.Processor :: [571] caught unexpected
exception: caught exception during query execution: Node:
http://arachne.uni-koeln.de/artifact/36381-inschrift-fuer-augustus
com.hp.hpl.jena.sparql.core.Var$NotAVariableException: Node:
http://arachne.uni-koeln.de/artifact/36381-inschrift-fuer-augustus
at com.hp.hpl.jena.sparql.core.Var.alloc(Var.java:41)
at propertyfunctions.genericIndex.execEvaluated(genericIndex.java:76)
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval.exec(PropertyFunctionEval.java:32)
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase$RepeatApplyIterator.nextStage(PropertyFunctionBase.java:92)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:94)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:55)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:69)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterProcedure.hasNextBinding(QueryIterProcedure.java:57)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:69)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.optimizeExecuteQuads(OpExecutorTDB.java:201)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.execute(OpExecutorTDB.java:148)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:51)
at com.hp.hpl.jena.sparql.algebra.op.OpQuadPattern.visit(OpQuadPattern.java:80)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:186)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:93)
at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:64)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:263)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.execute(OpExecutorTDB.java:119)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:143)
at com.hp.hpl.jena.sparql.algebra.op.OpFilter.visit(OpFilter.java:80)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:362)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:241)
at com.hp.hpl.jena.sparql.algebra.op.OpSlice.visit(OpSlice.java:39)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:79)
at com.hp.hpl.jena.sparql.engine.main.QC.execute(QC.java:40)
at com.hp.hpl.jena.sparql.engine.main.QueryEngineMain.eval(QueryEngineMain.java:52)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB.eval(QueryEngineTDB.java:112)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase.java:124)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.java:98)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:86)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB$QueryEngineFactoryTDB.create(QueryEngineTDB.java:177)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:266)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:243)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryExecutionBase.java:248)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecutionBase.java:94)
at uk.ac.ox.zoo.sparqlite.Processor.executeQuery(Processor.java:145)
at uk.ac.ox.zoo.sparqlite.Processor.exec(Processor.java:64)
at uk.ac.ox.zoo.sparqlite.ServletBase.doCommon(ServletBase.java:25)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doCommon(ServletTDB.java:55)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doPost(ServletTDB.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] try to send error
response, code: 500, details: caught exception during query execution: Node:
http://arachne.uni-koeln.de/artifact/36381-inschrift-fuer-augustus [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] perform any final
cleanup, release resources etc. [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] finalising request
handler [http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] close query execution
[http-8080-2]
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] close endpoint
[http-8080-2]
13:05:12 TRACE - zoo.sparqlite.EndpointTDB :: close larq index
13:05:12 TRACE - zoo.sparqlite.EndpointTDB :: close dataset
13:05:12 TRACE - zoo.sparqlite.Processor :: [571] flush buffer
[http-8080-2]
13:05:12 INFO - zoo.sparqlite.Processor :: [571] request processing
completed in 42 ms
}}}
Original issue reported on code.google.com by [email protected]
on 17 Sep 2010 at 12:13
This server log shows the offending query and resulting error.
Changing the first line of the main query to
{ ?s claros:s-term-bysubject ("oinochoe") . }
resolves the problem.
Note that I have created a new index with just one argument - the subject - to
avoid having to use ORDER BY clauses to get consistent results for testing.
{{{
15:22:27 TRACE - zoo.sparqlite.Processor :: [1] initialised request
processor [http-8080-1]
15:22:27 INFO - zoo.sparqlite.Processor :: [1] begin processing request
for path /combined
15:22:27 TRACE - zoo.sparqlite.Processor :: [1] check if the endpoint
exists [http-8080-1]
15:22:27 TRACE - zoo.sparqlite.Processor :: [1] completed check endpoint
exists in 0 ms [http-8080-1]
15:22:27 TRACE - zoo.sparqlite.Processor :: [1] check the
well-formedness of the request [http-8080-1]
15:22:27 TRACE - zoo.sparqlite.RequestWrapper :: processing POST
15:22:27 TRACE - zoo.sparqlite.RequestWrapper :: checking content type of
POST request
15:22:27 TRACE - zoo.sparqlite.RequestWrapper :: found content type:
application/x-www-form-urlencoded
15:22:27 TRACE - zoo.sparqlite.RequestWrapper :: split by ';' first token:
'application/x-www-form-urlencoded'
15:22:27 TRACE - zoo.sparqlite.RequestWrapper :: content type ok
15:22:27 TRACE - zoo.sparqlite.RequestWrapper :: found query param: #
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT * WHERE
{ GRAPH ?g
{
{ ?s claros:s-term-bysubject "oinochoe" . }
{
?s crm:P14I.was_classified_by
[ rdf:type crm:E17.Type_Assignment ;
crm:P42.assigned
[ a crm:E55.Type ; crm:P127.has_broader_term claros:Shape ; rdfs:label ?lit ]
] .
FILTER regex( ?lit, "oinochoe" , 'i')
}
{ ?s rdf:type ?t . }
{ ?s claros:subject-objectType ?typ ; }
{
{ ?s crm:P102.has_title [ rdf:type crm:E35.Title ; rdf:value ?desc ] }
{ ?s crm:P70I.is_documented_in ?link }
}
}
} OFFSET 5 LIMIT 5
15:22:27 TRACE - zoo.sparqlite.RequestWrapper :: check query syntax
15:22:27 TRACE - zoo.sparqlite.RequestWrapper :: using ARQ syntax
15:22:28 TRACE - zoo.sparqlite.RequestWrapper :: parsed query ok
15:22:28 INFO - zoo.sparqlite.Processor :: [1] query: #
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT * WHERE
{ GRAPH ?g
{
{ ?s claros:s-term-bysubject "oinochoe" . }
{
?s crm:P14I.was_classified_by
[ rdf:type crm:E17.Type_Assignment ;
crm:P42.assigned
[ a crm:E55.Type ; crm:P127.has_broader_term claros:Shape ; rdfs:label ?lit ]
] .
FILTER regex( ?lit, "oinochoe" , 'i')
}
{ ?s rdf:type ?t . }
{ ?s claros:subject-objectType ?typ ; }
{
{ ?s crm:P102.has_title [ rdf:type crm:E35.Title ; rdf:value ?desc ] }
{ ?s crm:P70I.is_documented_in ?link }
}
}
} OFFSET 5 LIMIT 5
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] completed check request
form in 137 ms [http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] apply query policy rules
[http-8080-1]
15:22:28 TRACE - zoo.sparqlite.QueryPolicy :: apply query policy
15:22:28 TRACE - zoo.sparqlite.QueryPolicy :: apply query form policy
15:22:28 TRACE - zoo.sparqlite.QueryPolicy :: apply dataset description
policy
15:22:28 TRACE - zoo.sparqlite.QueryPolicy :: apply limit ceiling policy
15:22:28 TRACE - zoo.sparqlite.QueryPolicy :: apply variable predicates
policy
15:22:28 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
15:22:28 TRACE - zoo.sparqlite.QueryPolicy :: apply filter policy
15:22:28 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] completed query policy
in 3 ms [http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] create a query execution
[http-8080-1]
15:22:28 TRACE - zoo.sparqlite.EndpointTDB :: exists guard condition
15:22:28 TRACE - sparqlite.config.Config :: loading description model
from
/mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.server.core
/tmp1/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl
15:22:28 TRACE - sparqlite.config.Config :: description root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
15:22:28 WARN - jena.tdb.exec :: No BGP optimizer
15:22:28 TRACE - sparqlite.config.Config :: description root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
15:22:28 TRACE - sparqlite.config.Config :: dataset root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_demo_server/WEB-INF/tdb/combined.ttl#dataset
15:22:28 TRACE - sparqlite.config.Config :: LARQ location
claros_demo_server/WebContent/WEB-INF/data/combined/lucene-literals provided
15:22:28 TRACE - zoo.sparqlite.EndpointTDB :: create query execution
15:22:28 TRACE - zoo.sparqlite.EndpointTDB :: set larq index
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] completed create query
execution in 465 ms [http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] execute the query
[http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] execute SELECT query
[http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] handle an unexpected
exception [http-8080-1]
15:22:28 ERROR - zoo.sparqlite.Processor :: [1] caught unexpected
exception: caught exception during query execution: Single argument, list
expected (object) to http://purl.org/NET/Claros/vocab#s-term-bysubject
com.hp.hpl.jena.query.QueryBuildException: Single argument, list expected
(object) to http://purl.org/NET/Claros/vocab#s-term-bysubject
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase.build(PropertyFunctionBase.java:61)
at propertyfunctions.genericIndex.build(genericIndex.java:43)
at com.hp.hpl.jena.sparql.procedure.ProcEval.build(ProcEval.java:55)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:149)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:79)
at com.hp.hpl.jena.sparql.algebra.op.OpPropFunc.visit(OpPropFunc.java:55)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:186)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:93)
at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:64)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:362)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:241)
at com.hp.hpl.jena.sparql.algebra.op.OpSlice.visit(OpSlice.java:39)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:79)
at com.hp.hpl.jena.sparql.engine.main.QC.execute(QC.java:40)
at com.hp.hpl.jena.sparql.engine.main.QueryEngineMain.eval(QueryEngineMain.java:52)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB.eval(QueryEngineTDB.java:112)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase.java:124)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.java:98)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:86)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB$QueryEngineFactoryTDB.create(QueryEngineTDB.java:177)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:266)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:243)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execResultSet(QueryExecutionBase.java:248)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect(QueryExecutionBase.java:94)
at uk.ac.ox.zoo.sparqlite.Processor.executeQuery(Processor.java:145)
at uk.ac.ox.zoo.sparqlite.Processor.exec(Processor.java:64)
at uk.ac.ox.zoo.sparqlite.ServletBase.doCommon(ServletBase.java:25)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doCommon(ServletTDB.java:55)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doPost(ServletTDB.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] try to send error
response, code: 500, details: caught exception during query execution: Single
argument, list expected (object) to
http://purl.org/NET/Claros/vocab#s-term-bysubject [http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] perform any final
cleanup, release resources etc. [http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] finalising request
handler [http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] close query execution
[http-8080-1]
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] close endpoint
[http-8080-1]
15:22:28 TRACE - zoo.sparqlite.EndpointTDB :: close larq index
15:22:28 TRACE - zoo.sparqlite.EndpointTDB :: close dataset
15:22:28 TRACE - zoo.sparqlite.Processor :: [1] flush buffer
[http-8080-1]
15:22:28 INFO - zoo.sparqlite.Processor :: [1] request processing
completed in 689 ms
}}}
Original issue reported on code.google.com by [email protected]
on 14 Sep 2010 at 2:31
The odd thing about this fault is that it doesn't show up under MacOS. Is
there some subtle difference in the case-normalization of filenames or keywords?
...
This server log shows the offending query and the error
{{{
11:17:59 TRACE - zoo.sparqlite.Processor :: [154] try to send error
response, code: 500, details: caught exception during query execution:
java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/LEKYTHOS
(No such file or directory) [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [154] perform any final
cleanup, release resources etc. [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [154] finalising request
handler [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [154] close query execution
[http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [154] close endpoint
[http-8080-3]
11:17:59 TRACE - zoo.sparqlite.EndpointTDB :: close larq index
11:17:59 TRACE - zoo.sparqlite.EndpointTDB :: close dataset
11:17:59 TRACE - zoo.sparqlite.Processor :: [154] flush buffer
[http-8080-3]
11:17:59 INFO - zoo.sparqlite.Processor :: [154] request processing
completed in 15 ms
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] initialised request
processor [http-8080-3]
11:17:59 INFO - zoo.sparqlite.Processor :: [155] begin processing
request for path /combined
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] check if the endpoint
exists [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] completed check
endpoint exists in 0 ms [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] check the
well-formedness of the request [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: processing POST
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: checking content type of
POST request
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: found content type:
application/x-www-form-urlencoded
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: split by ';' first token:
'application/x-www-form-urlencoded'
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: content type ok
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: found query param: PREFIX
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX arqfn: <java:uk.ac.ox.zoo.sparqlite.>
ASK
{
LET (?crmtypetarget := "LEKYTHOS")
GRAPH ?g
{
?s claros:subject-not-before ("LEKYTHOS" ?beg ?end)
; rdf:type ?t
.
OPTIONAL { ?s crm:P102.has_title [ rdf:type crm:E35.Title ; rdf:value ?desc ] }
OPTIONAL { ?s crm:P70I.is_documented_in ?lnk }
?s crm:P14I.was_classified_by
[ crm:P42.assigned
[ rdfs:label ?crmtypetarget
]
] .
FILTER ( ?beg >= -0525 ) .
FILTER ( ?end <= -0474 ) .
}
}
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: check query syntax
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: using ARQ syntax
11:17:59 TRACE - zoo.sparqlite.RequestWrapper :: parsed query ok
11:17:59 INFO - zoo.sparqlite.Processor :: [155] query: PREFIX rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://purl.org/NET/crm-owl#>
PREFIX claros: <http://purl.org/NET/Claros/vocab#>
PREFIX pf: <http://jena.hpl.hp.com/ARQ/property#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX arqfn: <java:uk.ac.ox.zoo.sparqlite.>
ASK
{
LET (?crmtypetarget := "LEKYTHOS")
GRAPH ?g
{
?s claros:subject-not-before ("LEKYTHOS" ?beg ?end)
; rdf:type ?t
.
OPTIONAL { ?s crm:P102.has_title [ rdf:type crm:E35.Title ; rdf:value ?desc ] }
OPTIONAL { ?s crm:P70I.is_documented_in ?lnk }
?s crm:P14I.was_classified_by
[ crm:P42.assigned
[ rdfs:label ?crmtypetarget
]
] .
FILTER ( ?beg >= -0525 ) .
FILTER ( ?end <= -0474 ) .
}
}
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] completed check
request form in 2 ms [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] apply query policy
rules [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.QueryPolicy :: apply query policy
11:17:59 TRACE - zoo.sparqlite.QueryPolicy :: apply query form policy
11:17:59 TRACE - zoo.sparqlite.QueryPolicy :: apply dataset description
policy
11:17:59 TRACE - zoo.sparqlite.QueryPolicy :: apply limit ceiling policy
11:17:59 TRACE - zoo.sparqlite.QueryPolicy :: apply variable predicates
policy
11:17:59 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
11:17:59 TRACE - zoo.sparqlite.QueryPolicy :: apply filter policy
11:17:59 TRACE - zoo.sparqlite.QueryPolicy :: no variable predicate policy
found
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] completed query policy
in 0 ms [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] create a query
execution [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.EndpointTDB :: exists guard condition
11:17:59 TRACE - sparqlite.config.Config :: loading description model
from
/mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.server.core
/tmp1/wtpwebapps/claros_test_server/WEB-INF/tdb/combined.ttl
11:17:59 TRACE - sparqlite.config.Config :: description root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
11:17:59 WARN - jena.tdb.exec :: No BGP optimizer
11:17:59 TRACE - sparqlite.config.Config :: description root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
11:17:59 TRACE - sparqlite.config.Config :: dataset root is
file:///mnt/sdb3/home/graham/workspace35/.metadata/.plugins/org.eclipse.wst.serv
er.core/tmp1/wtpwebapps/claros_test_server/WEB-INF/tdb/combined.ttl#dataset
11:17:59 TRACE - sparqlite.config.Config :: LARQ location
claros_test_server/WebContent/WEB-INF/data/combined/literals provided
11:17:59 TRACE - zoo.sparqlite.EndpointTDB :: create query execution
11:17:59 TRACE - zoo.sparqlite.EndpointTDB :: set larq index
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] completed create query
execution in 8 ms [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] execute the query
[http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] execute ASK query
[http-8080-3]
11:17:59 TRACE - propertyfunctions.genericIndex :: build
11:17:59 TRACE - propertyfunctions.genericIndex :: enableIndex: URI
http://purl.org/NET/Claros/vocab#subject-not-before, term LEKYTHOS
11:17:59 TRACE - propertyfunctions.genericIndex :: enableIndex: dir
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb
11:17:59 TRACE - propertyfunctions.genericIndex :: enableIndex: indexFullName
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/LEKYTHOS
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] handle an unexpected
exception [http-8080-3]
11:17:59 ERROR - zoo.sparqlite.Processor :: [155] caught unexpected
exception: caught exception during query execution:
java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/LEKYTHOS
(No such file or directory)
java.lang.RuntimeException: java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/LEKYTHOS
(No such file or directory)
at propertyfunctions.genericIndex.inFromFile(genericIndex.java:161)
at propertyfunctions.genericIndex.access$1(genericIndex.java:158)
at propertyfunctions.genericIndex$1.<init>(genericIndex.java:76)
at propertyfunctions.genericIndex.execEvaluated(genericIndex.java:74)
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionEval.exec(PropertyFunctionEval.java:32)
at com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase$RepeatApplyIterator.nextStage(PropertyFunctionBase.java:92)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:94)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:55)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:69)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIterProcedure.hasNextBinding(QueryIterProcedure.java:57)
at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:69)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.optimizeExecuteQuads(OpExecutorTDB.java:201)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.execute(OpExecutorTDB.java:148)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:51)
at com.hp.hpl.jena.sparql.algebra.op.OpQuadPattern.visit(OpQuadPattern.java:80)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:186)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:93)
at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:64)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:210)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:136)
at com.hp.hpl.jena.sparql.algebra.op.OpConditional.visit(OpConditional.java:38)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:210)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:136)
at com.hp.hpl.jena.sparql.algebra.op.OpConditional.visit(OpConditional.java:38)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:186)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:93)
at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:64)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:263)
at com.hp.hpl.jena.tdb.solver.OpExecutorTDB.execute(OpExecutorTDB.java:119)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:143)
at com.hp.hpl.jena.sparql.algebra.op.OpFilter.visit(OpFilter.java:80)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:186)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:93)
at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:64)
at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:33)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.executeOp(OpExecutor.java:103)
at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:79)
at com.hp.hpl.jena.sparql.engine.main.QC.execute(QC.java:40)
at com.hp.hpl.jena.sparql.engine.main.QueryEngineMain.eval(QueryEngineMain.java:52)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB.eval(QueryEngineTDB.java:112)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.evaluate(QueryEngineBase.java:124)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.createPlan(QueryEngineBase.java:98)
at com.hp.hpl.jena.sparql.engine.QueryEngineBase.getPlan(QueryEngineBase.java:86)
at com.hp.hpl.jena.tdb.solver.QueryEngineTDB$QueryEngineFactoryTDB.create(QueryEngineTDB.java:177)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.getPlan(QueryExecutionBase.java:266)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.startQueryIterator(QueryExecutionBase.java:243)
at com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execAsk(QueryExecutionBase.java:218)
at uk.ac.ox.zoo.sparqlite.Processor.executeQuery(Processor.java:148)
at uk.ac.ox.zoo.sparqlite.Processor.exec(Processor.java:64)
at uk.ac.ox.zoo.sparqlite.ServletBase.doCommon(ServletBase.java:25)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doCommon(ServletTDB.java:55)
at uk.ac.ox.zoo.sparqlite.ServletTDB.doPost(ServletTDB.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/LEKYTHOS
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileReader.<init>(FileReader.java:55)
at propertyfunctions.genericIndex.inFromFile(genericIndex.java:160)
... 77 more
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] try to send error
response, code: 500, details: caught exception during query execution:
java.io.FileNotFoundException:
claros_test_server/WebContent/WEB-INF/data/combined/indexes/term-nb/LEKYTHOS
(No such file or directory) [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] perform any final
cleanup, release resources etc. [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] finalising request
handler [http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] close query execution
[http-8080-3]
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] close endpoint
[http-8080-3]
11:17:59 TRACE - zoo.sparqlite.EndpointTDB :: close larq index
11:17:59 TRACE - zoo.sparqlite.EndpointTDB :: close dataset
11:17:59 TRACE - zoo.sparqlite.Processor :: [155] flush buffer
[http-8080-3]
11:17:59 INFO - zoo.sparqlite.Processor :: [155] request processing
completed in 13 ms
}}}
Original issue reported on code.google.com by [email protected]
on 10 Sep 2010 at 10:23
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.