Examples of EyeballAssembler


Examples of com.hp.hpl.jena.eyeball.assemblers.EyeballAssembler

        {}

    @Test public void testMinimalEyeball()
        {
        Resource r = resourceInModel( "x rdf:type eye:Eyeball" );
        Eyeball e = (Eyeball) new EyeballAssembler().open( null, r );
        assertInstanceOf( Eyeball.class, e );
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.assemblers.EyeballAssembler

    @Test public void testEyeballWithInspector()
        {
        Resource r = resourceInModel( "x rd:type eye:Eyeball & eye:inspector _x" );
        Inspector i = new NullInspector();
        Assembler track = new NamedObjectAssembler( resource( "_x" ), i );
        Eyeball e = (Eyeball) new EyeballAssembler().open( track, r );
        assertSame( i, e.getInspector() );
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.assemblers.EyeballAssembler

    @Test public void testEyeballWithMultipleInspectors()
        {
        Resource r = resourceInModel( "x rd:type eye:Eyeball & eye:inspector _x & eye:inspector _y" );
        LoggingInspector i = new LoggingInspector(), j = new LoggingInspector();
        Assembler track = new NamedObjectsAssembler( resource( "_x" ), i ).add( resource( "_y" ), j );
        Eyeball e = (Eyeball) new EyeballAssembler().open( track, r );
        e.getInspector().beginnew Report(), ModelFactory.createOntologyModel() );
        assertEquals( listOfStrings( "begin" ), i.history );
        assertEquals( listOfStrings( "begin" ), j.history );
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.assemblers.EyeballAssembler

    @Test public void testEyeballWithRenderer()
        {
        Resource r = resourceInModel( "x rd:type eye:Eyeball & eye:renderer _r" );
        Renderer rend = new MockRendererA( r );
        Assembler track = new NamedObjectAssembler( resource( "_r" ), rend );
        Eyeball e = (Eyeball) new EyeballAssembler().open( track, r );
        assertSame( rend, e.getRenderer() );
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.assemblers.EyeballAssembler

    @Test public void testEyeballWithAssumptions()
        {
        Resource r = resourceInModel( "x rdf:type eye:Eyeball & eye:assume _x & eye:assume _y" );
        Model modelX = model( "a P b" ), modelY = model( "c Q d" );
        Assembler track = new NamedObjectsAssembler( resource( "_x" ), modelX ).add( resource( "_y" ), modelY );
        Eyeball e = (Eyeball) new EyeballAssembler().opentrack, r  );
        assertIsoModels( model( "a P b; c Q d" ), e.getAssumptions().getBaseModel() );
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.assemblers.EyeballAssembler

                {
                assertEquals( "modelName", name );
                return expected;
                }
            };
        Eyeball e = (Eyeball) new EyeballAssembler( fm ).open( null, r  );
        assertIsoModels( expected, e.getAssumptions().getBaseModel() );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.