Search in sources :

Example 1 with SpatialIndexLucene

use of org.apache.jena.query.spatial.SpatialIndexLucene in project jena by apache.

the class TestSpatialDatasetAssembler method testSimpleDatasetAssembler.

@Test
public void testSimpleDatasetAssembler() {
    Dataset dataset = (Dataset) Assembler.general.open(spec1);
    assertTrue(dataset.getContext().get(SpatialQuery.spatialIndex) instanceof SpatialIndexLucene);
}
Also used : SpatialIndexLucene(org.apache.jena.query.spatial.SpatialIndexLucene) Dataset(org.apache.jena.query.Dataset) Test(org.junit.Test)

Example 2 with SpatialIndexLucene

use of org.apache.jena.query.spatial.SpatialIndexLucene in project jena by apache.

the class TestSpatialIndexLuceneAssembler method testIndexHasEntityMap.

@Test
public void testIndexHasEntityMap() {
    SpatialIndexLucene indexLucene = (SpatialIndexLucene) Assembler.general.open(SIMPLE_LUCENE_INDEX_SPEC);
    assertEquals("uri", indexLucene.getDocDef().getEntityField());
    assertEquals("geo", indexLucene.getDocDef().getGeoField());
}
Also used : SpatialIndexLucene(org.apache.jena.query.spatial.SpatialIndexLucene) Test(org.junit.Test)

Aggregations

SpatialIndexLucene (org.apache.jena.query.spatial.SpatialIndexLucene)2 Test (org.junit.Test)2 Dataset (org.apache.jena.query.Dataset)1