Package org.apache.jena.query.text

Examples of org.apache.jena.query.text.EntityDefinition


    assertEquals(SPEC1_ENTITY_FIELD, entityDef.getEntityField());   
  }
 
  @Test public void EntityHasMapEntries() {
    EntityMapAssembler emAssembler = new EntityMapAssembler();
    EntityDefinition entityDef = emAssembler.open(null, spec1, null);
    assertEquals(SPEC1_PREDICATE.asNode(), getOne(entityDef,SPEC1_DEFAULT_FIELD));
  }
View Full Code Here


        return x.iterator().next() ;
    }

    @Test public void EntityHasMultipleMapEntries() {
    EntityMapAssembler emAssembler = new EntityMapAssembler();
    EntityDefinition entityDef = emAssembler.open(null, spec2, null);
    assertEquals(SPEC2_PREDICATE1.asNode(), getOne(entityDef,SPEC2_DEFAULT_FIELD));
    assertEquals(SPEC2_PREDICATE2.asNode(), getOne(entityDef, SPEC2_FIELD2));
  }
View Full Code Here

TOP

Related Classes of org.apache.jena.query.text.EntityDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.