S - public class TestSparqlUpdate<S extends IIndexManager> extends AbstractTestNanoSparqlClient<S>
Note: Also see SPARQLUpdateTest. These two test suites SHOULD be kept
synchronized. SPARQLUpdateTest runs against a local kb instance while
this class runs against the NSS. The two test suites are not exactly the same
because one uses the RemoteRepository to communicate with the NSS
while the other uses the local API.
SPARQLUpdateTestTestCase2.MyProperties, TestCase2.RandomTypem_client, m_fixture, m_mgr, m_repo, m_rootURL, m_serviceURL, namespace, packagePath_randomType, log| Constructor and Description |
|---|
TestSparqlUpdate() |
TestSparqlUpdate(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getNamespaceDeclarations()
Get a set of useful namespace prefix declarations.
|
protected boolean |
hasStatement(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
boolean includeInferred,
org.openrdf.model.Resource... contexts) |
protected void |
loadFile(String file,
org.openrdf.rio.RDFFormat format)
Load a file.
|
void |
setUp() |
static junit.framework.Test |
suite()
We need to be running this test suite for each of the BufferModes that we
want to support.
|
void |
tearDown() |
void |
testAddFromDefault() |
void |
testAddFromDefaultToDefault() |
void |
testAddToDefault() |
void |
testAddToExistingNamed() |
void |
testAddToNewNamed() |
void |
testClearAll() |
void |
testClearDefault() |
void |
testClearGraph() |
void |
testClearNamed() |
void |
testCopyFromDefault() |
void |
testCopyFromDefaultToDefault() |
void |
testCopyToDefault() |
void |
testCopyToExistingNamed() |
void |
testCopyToNewNamed() |
void |
testCreateExistingGraph() |
void |
testCreateNewGraph() |
void |
testDeleteData() |
void |
testDeleteDataFromGraph() |
void |
testDeleteDataFromWrongGraph() |
void |
testDeleteDataMultiplePatterns() |
void |
testDeleteInsertWhere() |
void |
testDeleteInsertWhereLoopingBehavior() |
void |
testDeleteWhere() |
void |
testDeleteWhereShortcut() |
void |
testDeleteWhereShortcut2()
DELETE WHERE {GRAPH ?g {?x foaf:name ?y} }
|
void |
testDropAll() |
void |
testDropDefault() |
void |
testDropGraph() |
void |
testDropNamed() |
void |
testInsertData() |
void |
testInsertDataInGraph() |
void |
testInsertDataInGraph2() |
void |
testInsertDataMultiplePatterns() |
void |
testInsertEmptyWhere() |
void |
testInsertNonMatchingWhere() |
void |
testInsertTransformedWhere() |
void |
testInsertWhere() |
void |
testInsertWhereGraph() |
void |
testInsertWhereUsing() |
void |
testInsertWhereWith() |
void |
testInsertWhereWithOptional() |
void |
testLoad() |
void |
testLoadGZip()
Verify ability to load data from a gzip resource.
|
void |
testLoadIntoGraph() |
void |
testLoadSilent() |
void |
testMoveFromDefault() |
void |
testMoveFromDefaultToDefault() |
void |
testMoveToDefault() |
void |
testMoveToNewNamed() |
void |
testReallyLongQueryString() |
void |
testStressInsertWhereGraph()
A stress test written to look for stochastic behaviors in SPARQL UPDATE
for GROUP COMMIT.
|
void |
testTicket1738()
Variant of scenario sketched in https://jira.blazegraph.com/browse/BLZG-1738,
the problem being that PropertyPathNodes in UPDATE queries are not treated properly.
|
void |
testTicket567()
Unit test for
|
void |
testUnicodeCleanAndRegex()
This test is based on a forum post.
|
void |
testUpdateSequenceInsertDelete2() |
void |
testUpdateSequenceInsertDeleteExample9() |
asGraph, asGraph, assertSameGraph, assertSameGraph, countAll, countMatches, countResults, countResults, countResults, doConstructTest, doDeleteWithAccessPath, doDeleteWithBody, doDeleteWithPostTest, doDeleteWithQuery, doDescribeTest, doInsertByBody, doInsertbyURL, doInsertWithBodyTest, genNTRIPLES, genNTRIPLES2, getExactSize, getMatches, getResponseBody, getTestMode, getVeryLargeLiteral, loadGraphFromResource, newFixture, readFromFile, readGraphFromFile, setupDataOnServer, setupQuadsDataOnServer, writeOnBuffergetDelegate, getIndexManager, getOurDelegate, getProperties, setDelegatecheckIfProxy, setUp, tearDown, tearDownAfterSuiteassertEquals, 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, logPropertiesassertEquals, 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, toStringpublic TestSparqlUpdate()
public TestSparqlUpdate(String name)
public static junit.framework.Test suite()
public void setUp()
throws Exception
setUp in class AbstractTestNanoSparqlClient<S extends IIndexManager>Exceptionpublic void tearDown()
throws Exception
tearDown in class AbstractTestNanoSparqlClient<S extends IIndexManager>Exceptionprotected void loadFile(String file, org.openrdf.rio.RDFFormat format) throws Exception
file - The file.format - The file format.Exceptionprotected String getNamespaceDeclarations()
protected boolean hasStatement(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
boolean includeInferred,
org.openrdf.model.Resource... contexts)
throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryExceptionpublic void testInsertEmptyWhere()
throws Exception
Exceptionpublic void testInsertNonMatchingWhere()
throws Exception
Exceptionpublic void testInsertWhereWithOptional()
throws Exception
Exceptionpublic void testDeleteInsertWhereLoopingBehavior()
throws Exception
Exceptionpublic void testInsertTransformedWhere()
throws Exception
Exceptionpublic void testDeleteWhereShortcut2()
throws Exception
DELETE WHERE {GRAPH ?g {?x foaf:name ?y} }
Exception(DELETE WHERE
fails with Java AssertionError)public void testInsertDataMultiplePatterns()
throws Exception
Exceptionpublic void testInsertDataInGraph2()
throws Exception
Exceptionpublic void testDeleteDataMultiplePatterns()
throws Exception
Exceptionpublic void testDeleteDataFromWrongGraph()
throws Exception
Exceptionpublic void testCopyFromDefaultToDefault()
throws Exception
Exceptionpublic void testAddFromDefaultToDefault()
throws Exception
Exceptionpublic void testMoveFromDefaultToDefault()
throws Exception
Exceptionpublic void testUpdateSequenceInsertDelete2()
throws Exception
Exceptionpublic void testUpdateSequenceInsertDeleteExample9()
throws Exception
Exceptionpublic void testTicket567()
throws Exception
DROP ALL;
INSERT DATA {
GRAPH {
.
.
}};
ADD SILENT GRAPH TO GRAPH ;
DROP SILENT GRAPH ;
The IV cache was not not being propagated correctly with the result that
we were seeing mock IVs for "one" and "two". The UPDATE would work
correctly the 2nd time since the URIs had been entered into the
dictionary by then.public void testUnicodeCleanAndRegex()
throws Exception
public void testLoadGZip()
throws Exception
Exceptionpublic void testReallyLongQueryString()
throws Exception
Exceptionpublic void testStressInsertWhereGraph()
throws Exception
ExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.