use of org.apache.jena.query.text.EntityDefinition in project jena by apache.
the class TestEntityMapAssembler method EntityHasPrimaryField.
@Test
public void EntityHasPrimaryField() {
EntityDefinitionAssembler entDefAssem = new EntityDefinitionAssembler();
EntityDefinition entityDef = entDefAssem.open(null, spec1, null);
assertEquals(SPEC1_DEFAULT_FIELD, entityDef.getPrimaryField());
}
use of org.apache.jena.query.text.EntityDefinition in project jena by apache.
the class TestEntityMapAssembler method EntityHasMapEntryWithStandardAnalyzerAndStopWords.
@Test
public void EntityHasMapEntryWithStandardAnalyzerAndStopWords() {
EntityDefinitionAssembler entDefAssem = new EntityDefinitionAssembler();
EntityDefinition entityDef = entDefAssem.open(Assembler.general, spec4, null);
assertEquals(StandardAnalyzer.class, entityDef.getAnalyzer(SPEC1_DEFAULT_FIELD).getClass());
}
use of org.apache.jena.query.text.EntityDefinition in project jena by apache.
the class TestEntityMapAssembler method EntityHasEntityField.
@Test
public void EntityHasEntityField() {
EntityDefinitionAssembler entDefAssem = new EntityDefinitionAssembler();
EntityDefinition entityDef = entDefAssem.open(null, spec1, null);
assertEquals(SPEC1_ENTITY_FIELD, entityDef.getEntityField());
}
Aggregations