public class TestTripleStore extends AbstractTripleStoreTestCase
ITripleStore
API.AbstractTestCase.StatementVerifier
TestCase2.MyProperties, TestCase2.RandomType
NULL
_randomType
Constructor and Description |
---|
TestTripleStore() |
TestTripleStore(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAddTermTest(AbstractTripleStore store,
org.openrdf.model.Value term)
Test helper verifies that the term is not in the lexicon, adds the term
to the lexicon, verifies that the term can be looked up by its assigned
term identifier, verifies that the term is now in the lexicon, and
verifies that adding the term again returns the same term identifier.
|
void |
test_addBadTerm()
Simple test of some bad data (literals which can not be validated against
their datatype).
|
void |
test_addInferredExplicitAxiom()
Test using the native API of adding explicit, inferred, and axiom
SPO s. |
void |
test_addLookup_nativeAPI()
Verify that we can locate a statement that we add to the database using
each statement index.
|
void |
test_addRemove_nativeAPI()
Test the ability to add and remove statements using both fully
bound and partly bound triple patterns using the native API.
|
void |
test_addRemove_sesameAPI()
Test the ability to add and remove statements using both fully bound and
partly bound triple patterns using the Sesame compatible API.
|
void |
test_addTerm()
Simple test of inserting one term at a time into the lexicon.
|
void |
test_addTermsFiltersAlreadyAssigned()
Unit test verifies that
BigdataValue s whose term identifiers
have already been assigned are unchanged by
LexiconRelation.addTerms(BigdataValue[], int, boolean) . |
void |
test_addTermsFiltersDuplicates()
Unit test presents an array of
BigdataValue s that contains
duplicates and verifies that the assigned term identifiers are
consistent. |
void |
test_getStatementsUsingTriplePatterns()
Unit test of the batched parallel resolution of triple patterns.
|
void |
test_insertTerms()
Simple test of batch insertion of terms into the lexicon.
|
void |
test_rangeCounts_toldBNodes() |
void |
test_removeStatements()
Test of
IRawTripleStore#removeStatements(com.bigdata.relation.accesspath.IChunkedOrderedIterator) |
void |
test_statements()
|
getDelegate, getOurDelegate, getProperties, getStore, getStore, reopenStore, setDelegate, setUp, tearDown
assertEquals, assertEquals, assertEquals, assertEquals, assertLexiconIndicesConsistent, assertSameSPOs, assertSameSPOs, assertSameSPOsAnyOrder, assertSameSPOsAnyOrder, assertSameStatements, assertSameStatements, assertStatementIndicesConsistent, checkIfProxy, recursiveDelete, setUp, tearDown
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public TestTripleStore()
public TestTripleStore(String name)
name
- protected void doAddTermTest(AbstractTripleStore store, org.openrdf.model.Value term)
term
- The term.public void test_addTerm()
public void test_addBadTerm()
public void test_insertTerms()
public void test_addTermsFiltersDuplicates()
BigdataValue
s that contains
duplicates and verifies that the assigned term identifiers are
consistent.public void test_addTermsFiltersAlreadyAssigned()
BigdataValue
s whose term identifiers
have already been assigned are unchanged by
LexiconRelation.addTerms(BigdataValue[], int, boolean)
.
Note: BNode
s are not tested for this property since they will be
assigned a new term identifier each time. Blank nodes are ONLY made
self-consistent within a canonicalizing mapping imposed for some blank
node context, e.g., a source document that is being parsed.
public void test_rangeCounts_toldBNodes()
public void test_statements()
public void test_addLookup_nativeAPI()
public void test_addRemove_nativeAPI()
public void test_addInferredExplicitAxiom()
SPO
s.public void test_addRemove_sesameAPI()
public void test_removeStatements()
IRawTripleStore#removeStatements(com.bigdata.relation.accesspath.IChunkedOrderedIterator)
public void test_getStatementsUsingTriplePatterns()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.