Examples of VocabularyInspector


Examples of com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector

        }
   
    @Test public void testInspectStatementCallsInspectURI()
        {
        final List<String> uris = new ArrayList<String>();
        Inspector i = new VocabularyInspector()
            {
            public void inspectURI( Report ignored, Statement s, Resource res )
                { uris.add( res.getURI() ); }
            };
        i.inspectStatement( new Report(), statement( "S P O" ) );
        assertEquals( listOfStrings( "eh:/S eh:/P eh:/O" ), uris );
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector

   
    @Test public void testDoesNotReportOpenNamespace()
        {
        Resource root = resourceInModel( "root eye:openNamespace open:/" );
        OntModel assume = ontModel( "open:/cabbage P Y" );
        VocabularyInspector ins = new VocabularyInspector( root );
        ins.begin( r, assume );
        ins.inspectURI( r, S, resource( "open:/rhubarb" ) );
        assertIsoModels( model(), r.model() );
        }
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.