You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2019/10/26 17:32:00 UTC
[jira] [Resolved] (JENA-1773) TDB2: Duplicate prefixes in the
data+query cause warning and exception in CONSTRUCT query.
[ https://issues.apache.org/jira/browse/JENA-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-1773.
---------------------------------
Fix Version/s: Jena 3.14.0
Assignee: Andy Seaborne
Resolution: Fixed
> TDB2: Duplicate prefixes in the data+query cause warning and exception in CONSTRUCT query.
> ------------------------------------------------------------------------------------------
>
> Key: JENA-1773
> URL: https://issues.apache.org/jira/browse/JENA-1773
> Project: Apache Jena
> Issue Type: Bug
> Components: TDB2
> Affects Versions: Jena 3.13.1
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Major
> Fix For: Jena 3.14.0
>
> Attachments: D-prefix.ttl, Q-prefix.rq
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Report on [users@jena (23/Oct) |https://lists.apache.org/thread.html/c36df32ebfa08d86892f4bbc1aa09f7a0c618fdbd7a638a0f64c74be@%3Cusers.jena.apache.org%3E]
> Reproduced with:
> {noformat}
> rm -rf DB2
> tdb2.tdbloader --loc DB2 D-prefix.ttl
> tdb2.tdbquery --loc DB2 @Q-prefix.rq
> {noformat}
> to give:
> {noformat}
> WARN Exception in insertPrefixes: Duplicate key ex (attempted merging values http://example/ns1# and http://example/ns2/)
> java.lang.IllegalStateException: Duplicate key ex (attempted merging values http://example/ns1# and http://example/ns2/)
> at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)
> at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)
> at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
> at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
> at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
> at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
> at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
> at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
> at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
> at org.apache.jena.dboe.storage.prefixes.PrefixMapBase.getMappingCopy(PrefixMapBase.java:44)
> at org.apache.jena.dboe.storage.prefixes.PrefixMappingOverPrefixMapI.getNsPrefixMap(PrefixMappingOverPrefixMapI.java:97)
> at org.apache.jena.rdf.model.impl.ModelCom.getNsPrefixMap(ModelCom.java:1083)
> at org.apache.jena.shared.impl.PrefixMappingImpl.setNsPrefixes(PrefixMappingImpl.java:138)
> at org.apache.jena.rdf.model.impl.ModelCom.setNsPrefixes(ModelCom.java:1055)
> at org.apache.jena.sparql.engine.QueryExecutionBase.insertPrefixesInto(QueryExecutionBase.java:611)
> at org.apache.jena.sparql.engine.QueryExecutionBase.execConstruct(QueryExecutionBase.java:217)
> at org.apache.jena.sparql.engine.QueryExecutionBase.execConstruct(QueryExecutionBase.java:207)
> at org.apache.jena.sparql.util.QueryExecUtils.doConstructQuery(QueryExecUtils.java:162)
> at org.apache.jena.sparql.util.QueryExecUtils.executeQuery(QueryExecUtils.java:83)
> at arq.query.lambda$0(query.java:225)
> at org.apache.jena.system.Txn.exec(Txn.java:77)
> at org.apache.jena.system.Txn.executeRead(Txn.java:115)
> at arq.query.queryExec(query.java:222)
> at arq.query.exec(query.java:153)
> at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
> at tdb2.tdbquery.main(tdbquery.java:30)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)