use of org.apache.jena.query.spatial.EntityDefinition in project jena by apache.
the class TestEntityDefinitionAssembler method EntityHasEntityField.
@Test
public void EntityHasEntityField() {
EntityDefinitionAssembler emAssembler = new EntityDefinitionAssembler();
EntityDefinition entityDef = emAssembler.open(null, spec0, null);
assertEquals(SPEC0_ENTITY_FIELD, entityDef.getEntityField());
}
use of org.apache.jena.query.spatial.EntityDefinition in project jena by apache.
the class TestEntityDefinitionAssembler method EntityHasPair.
@Test
public void EntityHasPair() {
EntityDefinitionAssembler emAssembler = new EntityDefinitionAssembler();
EntityDefinition entityDef = emAssembler.open(null, spec1, null);
assertEquals(1, entityDef.getCustomSpatialPredicatePairCount());
assertEquals(true, entityDef.hasSpatialPredicatePair(SPEC1_LATITUDE.asNode(), SPEC1_LONGITUDE.asNode()));
}
Aggregations