use of org.apache.jena.query.text.EntityDefinition in project jena by apache.
the class TestEntityMapAssembler method EntityHasMapEntries.
@Test
public void EntityHasMapEntries() {
EntityDefinitionAssembler entDefAssem = new EntityDefinitionAssembler();
EntityDefinition entityDef = entDefAssem.open(null, spec1, null);
assertEquals(SPEC1_PREDICATE.asNode(), getOne(entityDef, SPEC1_DEFAULT_FIELD));
}
use of org.apache.jena.query.text.EntityDefinition in project jena by apache.
the class TestEntityMapAssembler method EntityHasMapEntryWithLowerCaseKeywordAnalyzer.
@Test
public void EntityHasMapEntryWithLowerCaseKeywordAnalyzer() {
EntityDefinitionAssembler entDefAssem = new EntityDefinitionAssembler();
EntityDefinition entityDef = entDefAssem.open(Assembler.general, spec6, null);
assertEquals(LowerCaseKeywordAnalyzer.class, entityDef.getAnalyzer(SPEC1_DEFAULT_FIELD).getClass());
}
use of org.apache.jena.query.text.EntityDefinition in project jena by apache.
the class TestEntityMapAssembler method EntityHasMultipleMapEntries.
@Test
public void EntityHasMultipleMapEntries() {
EntityDefinitionAssembler entDefAssem = new EntityDefinitionAssembler();
EntityDefinition entityDef = entDefAssem.open(null, spec2, null);
assertEquals(SPEC2_PREDICATE1.asNode(), getOne(entityDef, SPEC2_DEFAULT_FIELD));
assertEquals(SPEC2_PREDICATE2.asNode(), getOne(entityDef, SPEC2_FIELD2));
}
use of org.apache.jena.query.text.EntityDefinition in project jena by apache.
the class TestEntityMapAssembler method EntityHasMapEntryWithKeywordAnalyzer.
@Test
public void EntityHasMapEntryWithKeywordAnalyzer() {
EntityDefinitionAssembler entDefAssem = new EntityDefinitionAssembler();
EntityDefinition entityDef = entDefAssem.open(Assembler.general, spec5, null);
assertEquals(KeywordAnalyzer.class, entityDef.getAnalyzer(SPEC1_DEFAULT_FIELD).getClass());
}
use of org.apache.jena.query.text.EntityDefinition in project jena by apache.
the class TestEntityMapAssembler method EntityHasMapEntryWithConfigurableAnalyzer.
@Test
public void EntityHasMapEntryWithConfigurableAnalyzer() {
EntityDefinitionAssembler entDefAssem = new EntityDefinitionAssembler();
EntityDefinition entityDef = entDefAssem.open(Assembler.general, spec7, null);
assertEquals(ConfigurableAnalyzer.class, entityDef.getAnalyzer(SPEC1_DEFAULT_FIELD).getClass());
}
Aggregations