public class TestEncodeDecodeGeoSpatialLiteralIVs extends AbstractEncodeDecodeKeysTestCase
GeoSpatialLiteralExtension
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestEncodeDecodeGeoSpatialLiteralIVs() |
TestEncodeDecodeGeoSpatialLiteralIVs(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertSemanticallyIdentical(BigdataValue x1,
BigdataLiteral x2)
Asserts that the two
BigdataValue s that are passed in are
BigdataLiteral of the same type and that the actual values
value, interpreted as numerical value, are identical. |
protected void |
encodeDecodeGeoSpatialLiterals(BigdataValueFactory vf,
BigdataLiteral[] dt,
GeoSpatialLiteralExtension<BigdataValue> ext)
Helper method to test encoding and decoding / roundtrips of GeoSpatial
literals for a given value factory vf, list of literals dt, and
a
GeoSpatialLiteralExtension ext. |
protected BigdataLiteral[] |
getDummyGeospatialLiteralsLatLon(BigdataValueFactory vf,
org.openrdf.model.URI datatype)
Generates a list of about 600 dummy lat+lon GeoSpatial literals.
|
protected BigdataLiteral[] |
getDummyGeospatialLiteralsLatLonTime(BigdataValueFactory vf,
org.openrdf.model.URI datatype)
Generates a list of about 20k dummy lat+lon GeoSpatial literals.
|
protected BigdataLiteral[] |
getGeospatialLiteralsLatLonInRange(BigdataValueFactory vf,
int from,
int to,
org.openrdf.model.URI datatype)
Generates the combination of all literals in the given range.
|
protected GeoSpatialLiteralExtension<BigdataValue> |
getGSLiteralExtension(BigdataValueFactory vf,
GeoSpatialDatatypeConfiguration datatypeConfig)
Get a
GeoSpatialLiteralExtension object processing literals of
the schema specified in the SchemaDescription object. |
protected GeoSpatialLiteralExtension<BigdataValue> |
getLatLonGSLiteralExtension(BigdataValueFactory vf)
Get a
GeoSpatialLiteralExtension object processing lat+lon
schema literals. |
protected GeoSpatialLiteralExtension<BigdataValue> |
getLatLonTimeGSLiteralExtension(BigdataValueFactory vf)
Get a
GeoSpatialLiteralExtension object processing lat+lon+time
schema literals. |
protected GeoSpatialLiteralExtension<BigdataValue> |
getSimpleLatLonGSLiteralExtension(BigdataValueFactory vf)
Get simple lat lon schema description, where lat and lon correspong to
long values (rather than 5 precise doubles).
|
protected GeoSpatialLiteralExtension<BigdataValue> |
getSimpleLatLonGSLiteralExtensionWithRange(BigdataValueFactory vf,
Long min)
Get simple lat lon schema description, where lat and lon correspong to
long values (rather than 5 precise doubles).
|
void |
test_encodeDecodeGeoSpatialLiteralsWrongFormat()
Unit test asserting correct rejectance (error message) when passing
in literals that are incompatible with the datatype.
|
void |
test_encodeDecodeLatLonGeoSpatialLiterals()
Unit test for round-trip of GeoSpatial literals of lat+lon
GeoSpatial literals.
|
void |
test_encodeDecodeLatLonTimeGeoSpatialLiterals()
Unit test for round-trip of GeoSpatial literals of lat+lon+time
GeoSpatial literals.
|
void |
testZIndexOrderingMixed()
Test z-order string construction by means of a simple, two dimensional
index with mixed negative and positive integer values.
|
void |
testZIndexOrderingMixedWithRangeAdjustment()
Test z-order string construction by means of a simple, two dimensional
index with mixed negative and positive integer values, with range
adjustment encoded in the datatype.
|
void |
testZIndexOrderingPositive()
Test z-order string construction by means of a simple, two dimensional
index with positive integer values.
|
void |
testZIndexOrderingPositiveWithRangeAdjustment()
Test z-order string construction by means of a simple, two dimensional
index with positive integer values, with range adjustment encoded in
the datatype.
|
protected void |
zIndexOrderingMixedBase(BigdataValueFactory vf,
GeoSpatialLiteralExtension<BigdataValue> litExt,
org.openrdf.model.URI datatype) |
protected void |
zIndexOrderingPositiveBase(BigdataValueFactory vf,
GeoSpatialLiteralExtension<BigdataValue> litExt,
org.openrdf.model.URI datatype) |
decodeStatementKey, doComparatorTest, doEncodeDecodeTest, newTermId, 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, getProperties, 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 TestEncodeDecodeGeoSpatialLiteralIVs()
public TestEncodeDecodeGeoSpatialLiteralIVs(String name)
name
- public void test_encodeDecodeLatLonTimeGeoSpatialLiterals() throws Exception
Exception
public void test_encodeDecodeLatLonGeoSpatialLiterals() throws Exception
Exception
public void test_encodeDecodeGeoSpatialLiteralsWrongFormat() throws Exception
Exception
public void testZIndexOrderingPositive()
public void testZIndexOrderingPositiveWithRangeAdjustment()
public void testZIndexOrderingMixed()
public void testZIndexOrderingMixedWithRangeAdjustment()
protected void encodeDecodeGeoSpatialLiterals(BigdataValueFactory vf, BigdataLiteral[] dt, GeoSpatialLiteralExtension<BigdataValue> ext) throws Exception
GeoSpatialLiteralExtension
ext. Note that the extension must
have been initialized to match the specific structure of the datatype
(see example test cases for sample code).Exception
protected void zIndexOrderingPositiveBase(BigdataValueFactory vf, GeoSpatialLiteralExtension<BigdataValue> litExt, org.openrdf.model.URI datatype)
protected void zIndexOrderingMixedBase(BigdataValueFactory vf, GeoSpatialLiteralExtension<BigdataValue> litExt, org.openrdf.model.URI datatype)
protected final BigdataLiteral[] getDummyGeospatialLiteralsLatLon(BigdataValueFactory vf, org.openrdf.model.URI datatype)
vf
- the value factory used to generate the literalsprotected final BigdataLiteral[] getDummyGeospatialLiteralsLatLonTime(BigdataValueFactory vf, org.openrdf.model.URI datatype)
vf
- the value factory used to generate the literalsprotected final BigdataLiteral[] getGeospatialLiteralsLatLonInRange(BigdataValueFactory vf, int from, int to, org.openrdf.model.URI datatype)
vf
- the value factory used to generate the literalsprotected GeoSpatialLiteralExtension<BigdataValue> getLatLonTimeGSLiteralExtension(BigdataValueFactory vf)
GeoSpatialLiteralExtension
object processing lat+lon+time
schema literals.protected GeoSpatialLiteralExtension<BigdataValue> getLatLonGSLiteralExtension(BigdataValueFactory vf)
GeoSpatialLiteralExtension
object processing lat+lon
schema literals.protected GeoSpatialLiteralExtension<BigdataValue> getSimpleLatLonGSLiteralExtension(BigdataValueFactory vf)
protected GeoSpatialLiteralExtension<BigdataValue> getSimpleLatLonGSLiteralExtensionWithRange(BigdataValueFactory vf, Long min)
protected GeoSpatialLiteralExtension<BigdataValue> getGSLiteralExtension(BigdataValueFactory vf, GeoSpatialDatatypeConfiguration datatypeConfig)
GeoSpatialLiteralExtension
object processing literals of
the schema specified in the SchemaDescription
object.protected void assertSemanticallyIdentical(BigdataValue x1, BigdataLiteral x2)
BigdataValue
s that are passed in are
BigdataLiteral
of the same type and that the actual values
value, interpreted as numerical value, are identical.val
- bigdataLiteral
- Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.