Search in sources :

Example 1 with LocationMapperAssembler

use of org.apache.jena.assembler.assemblers.LocationMapperAssembler in project jena by apache.

the class TestLocationMapperAssembler method testCreatesWithCorrectContent.

public void testCreatesWithCorrectContent() {
    // TODO should really have some mroe of these
    Resource root = resourceInModel("r rdf:type ja:LocationMapper; r lm:mapping _m; _m lm:name 'alpha'; _m lm:altName 'beta'");
    Assembler a = new LocationMapperAssembler();
    Object x = a.open(root);
    assertInstanceOf(LocationMapper.class, x);
    assertEqualMaps(new LocationMapper(root.getModel()), (LocationMapper) x);
}
Also used : LocationMapperAssembler(org.apache.jena.assembler.assemblers.LocationMapperAssembler) Resource(org.apache.jena.rdf.model.Resource) LocationMapperAssembler(org.apache.jena.assembler.assemblers.LocationMapperAssembler)

Example 2 with LocationMapperAssembler

use of org.apache.jena.assembler.assemblers.LocationMapperAssembler in project jena by apache.

the class TestLocationMapperAssembler method testCreatesLocationMapper.

public void testCreatesLocationMapper() {
    Resource root = resourceInModel("r rdf:type ja:LocationMapper");
    Assembler a = new LocationMapperAssembler();
    Object x = a.open(root);
    assertInstanceOf(LocationMapper.class, x);
}
Also used : LocationMapperAssembler(org.apache.jena.assembler.assemblers.LocationMapperAssembler) Resource(org.apache.jena.rdf.model.Resource) LocationMapperAssembler(org.apache.jena.assembler.assemblers.LocationMapperAssembler)

Aggregations

LocationMapperAssembler (org.apache.jena.assembler.assemblers.LocationMapperAssembler)2 Resource (org.apache.jena.rdf.model.Resource)2