Package com.hp.hpl.jena.eyeball.inspectors

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


   
    if ( didRepair )
      {
      // Check the rest of the model for other instances of this issue and repair (LiteralInspector only reports one usage at a time)
      Report r = new Report();
          LiteralInspector inspector = new LiteralInspector();
          inspector.inspectModel( r, (OntModel)output );
          for (StmtIterator itb = ((OntModel)output).getBaseModel().listStatements(); itb.hasNext();)
              inspector.inspectStatement( r, itb.nextStatement() );
          inspector.end( r );
         
          if( r.model().size() > 0 )
            { // New items were found to report; analyse and doctor them
            LiteralAnalysis litA = new LiteralAnalysis();
            litA.analyse( r, output, config );
View Full Code Here


   
    @Test public void testLiteralInspectorInspectsLiteralsWithInspectLiteral()
        {
        Literal L17 = literal( "17" );
        final List<Literal> literals = new ArrayList<Literal>();
        LiteralInspector ins = new LiteralInspector()
            {
            public void inspectLiteral( Report r, Statement s, Literal L ) { literals.add( L ); }
            };
        ins.inspectStatement( new Report(), statement( "s p 17" ) );
        assertEquals( listOfOne( L17 ), literals );
        }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.eyeball.inspectors.LiteralInspector

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.