Package com.hp.jena.ymris.deploy.reasoner

Examples of com.hp.jena.ymris.deploy.reasoner.DirectReasoner.bind()


        {
        Ymris y = new Ymris( new StringReader( rules ) );
        YAST yast = y.ymris();
        Reasoner r = new DirectReasoner( yast.ruleSets().get( 0 ) );
        Graph base = graphWith( baseTriples );
        InfGraph ig = r.bind( base );
        assertIsomorphic( graphWith( desiredTriples ), ig );
        }
    }

View Full Code Here


            return result;
            }
        else
            {
            Reasoner r = new DirectReasoner( ruleSets.get( 0 ) );
            InfGraph ig = r.bind( m.getGraph() );
            Model result = ModelFactory.createModelForGraph( ig );
            result.setNsPrefixes( m.getNsPrefixMap() );
            result.withDefaultMappings( PrefixMapping.Extended );
            return result;
            }
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.