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

Examples of com.hp.hpl.jena.eyeball.inspectors.AllTypedInspector.inspectStatement()


    @Test public void testUntypedLiteralReportedWhenConfigured()
        {
        AllTypedInspector ins = new AllTypedInspector( resourceInModel( "root eye:checkLiteralTypes eye:true" ) );
        Model m = model( "a rdf:type U" );
        Statement source = statement( m, "a P 'untypedString'" );
        ins.inspectStatementr, source );
        assertIsoModels( itemModel( "[eye:mainProperty eye:hasNoType & eye:hasNoType 'untypedString']", source ), r.model() );
        }
   
    @Test public void testLanguagedLiteralNotReported()
        {
View Full Code Here


   
    @Test public void testLanguagedLiteralNotReported()
        {
        AllTypedInspector ins = new AllTypedInspector( resourceInModel( "root eye:checkLiteralTypes eye:true" ) );
        Model m = model( "a rdf:type U" );
        ins.inspectStatementr, statement( m, "a P 'untypedString'en-UK" ) );
        assertIsoModels( model( "" ), r.model() );
        }

    @Test public void testUntypedObjectsNotReportedByDefault()
        {
View Full Code Here

    @Test public void testUntypedObjectsReportedIfConfigured()
        {
        AllTypedInspector ins = new AllTypedInspector( resourceInModel( "root eye:checkObjectTypes eye:true" ) );
        Model m = model( "a rdf:type U" );
        Statement aPb = statement( m, "a P b" );
        ins.inspectStatementr, aPb );
        assertIsoModels( itemModel( "[eye:mainProperty eye:hasNoType & eye:hasNoType b]", aPb ), 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.