From: <mrp...@us...> - 2013-12-09 00:54:17
|
Revision: 7612 http://bigdata.svn.sourceforge.net/bigdata/?rev=7612&view=rev Author: mrpersonick Date: 2013-12-09 00:54:11 +0000 (Mon, 09 Dec 2013) Log Message: ----------- RDR commit: parse reified triples into sids representation Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java 2013-12-08 20:54:55 UTC (rev 7611) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java 2013-12-09 00:54:11 UTC (rev 7612) @@ -280,6 +280,9 @@ */ public void test_reificationDoneRight_disabled() { + if (QueryHints.DEFAULT_REIFICATION_DONE_RIGHT) + return; + final int capacity = 20; final Properties properties = new Properties(getProperties()); @@ -500,10 +503,10 @@ // metadata statements. final BigdataStatement mds1 = vf.createStatement(s1, dcSource, - newsSybase, null/* context */, StatementEnum.Explicit); + newsSybase, vf.createBNode(), StatementEnum.Explicit); final BigdataStatement mds2 = vf.createStatement(s1, dcCreated, - createdDate, null/* context */, StatementEnum.Explicit); + createdDate, vf.createBNode(), StatementEnum.Explicit); buffer.add(mds1); @@ -550,13 +553,17 @@ assertEquals(sidIV1.getInlineValue().s(), mds1.s()); assertEquals(sidIV1.getInlineValue().p(), mds1.p()); assertEquals(sidIV1.getInlineValue().o(), mds1.o()); - assertNull(sidIV1.getInlineValue().c()); assertEquals(sidIV2.getInlineValue().s(), mds2.s()); assertEquals(sidIV2.getInlineValue().p(), mds2.p()); assertEquals(sidIV2.getInlineValue().o(), mds2.o()); - assertNull(sidIV2.getInlineValue().c()); + /* + * FIXME Implement quads mode RDR + */ +// assertNull(sidIV1.getInlineValue().c()); +// assertNull(sidIV2.getInlineValue().c()); + } finally { store.__tearDownUnitTest(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tho...@us...> - 2013-12-09 15:36:42
|
Revision: 7623 http://bigdata.svn.sourceforge.net/bigdata/?rev=7623&view=rev Author: thompsonbry Date: 2013-12-09 15:36:35 +0000 (Mon, 09 Dec 2013) Log Message: ----------- Disabled an RDR test for SIDs and QUADS modes. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java 2013-12-09 15:30:36 UTC (rev 7622) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java 2013-12-09 15:36:35 UTC (rev 7623) @@ -450,6 +450,13 @@ */ return; } + + if (store.isQuads() || store.isStatementIdentifiers()) { + /* + * Disabled. + */ + return; + } // * @prefix : <http://example.com/> . // * @prefix news: <http://example.com/news/> . This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tho...@us...> - 2013-12-09 20:53:45
|
Revision: 7629 http://bigdata.svn.sourceforge.net/bigdata/?rev=7629&view=rev Author: thompsonbry Date: 2013-12-09 20:53:38 +0000 (Mon, 09 Dec 2013) Log Message: ----------- Modified to ONLY run in the SIDS mode pending fix by MP. {{{ java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: context bound, but not quads or sids: < TermId(7B), TermId(5U), com.bigdata.rdf.internal.impl.literal.LiteralExtensionIV@25889b2f, TermId(8B) : Explicit > at com.bigdata.rdf.spo.SPORelation.insert(SPORelation.java:2234) at com.bigdata.rdf.store.AbstractTripleStore.addStatements(AbstractTripleStore.java:3931) at com.bigdata.rdf.rio.StatementBuffer.writeSPOs(StatementBuffer.java:1113) at com.bigdata.rdf.rio.StatementBuffer.addStatements(StatementBuffer.java:977) at com.bigdata.rdf.rio.StatementBuffer.incrementalWrite(StatementBuffer.java:800) at com.bigdata.rdf.rio.StatementBuffer.flush(StatementBuffer.java:400) at com.bigdata.rdf.rio.TestStatementBuffer.test_reificationDoneRight_enabled(TestStatementBuffer.java:523) Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: context bound, but not quads or sids: < TermId(7B), TermId(5U), com.bigdata.rdf.internal.impl.literal.LiteralExtensionIV@25889b2f, TermId(8B) : Explicit > at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at com.bigdata.rdf.spo.SPORelation.logFuture(SPORelation.java:2260) at com.bigdata.rdf.spo.SPORelation.insert(SPORelation.java:2215) Caused by: java.lang.IllegalArgumentException: context bound, but not quads or sids: < TermId(7B), TermId(5U), com.bigdata.rdf.internal.impl.literal.LiteralExtensionIV@25889b2f, TermId(8B) : Explicit > at com.bigdata.rdf.spo.SPOIndexWriter.call(SPOIndexWriter.java:275) at com.bigdata.rdf.spo.SPOIndexWriter.call(SPOIndexWriter.java:68) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) }}} See #526. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java 2013-12-09 17:47:42 UTC (rev 7628) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/rio/TestStatementBuffer.java 2013-12-09 20:53:38 UTC (rev 7629) @@ -451,9 +451,15 @@ return; } - if (store.isQuads() || store.isStatementIdentifiers()) { - /* - * Disabled. + if (!store.isStatementIdentifiers()) { + /** + * Disabled. FIXME This should be ON for TRIPLES or QUADS. It + * only works in the SIDS mode right now. The root cause is + * + * <pre> + * Caused by: java.lang.IllegalArgumentException: context bound, but not quads or sids: < TermId(7B), TermId(5U), com.bigdata.rdf.internal.impl.literal.LiteralExtensionIV@25889b2f, TermId(8B) : Explicit > + * at com.bigdata.rdf.spo.SPOIndexWriter.call(SPOIndexWriter.java:275) + * </pre> */ return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |