Package com.hp.jena.rules.retelike.impl.scratch

Examples of com.hp.jena.rules.retelike.impl.scratch.Functor


    private static Node functor( String template )
        {
        StringTokenizer st = new StringTokenizer( template, " ()" );
        List<Node> terms = new ArrayList<Node>();
        while (st.hasMoreTokens()) terms.add( node( st.nextToken() ) );
        return new Functor( terms );
        }
View Full Code Here


        @Override public Node subst( ExecContext c, Bindings<Node, Node> b )
            {
            List<Node> resultTerms = new ArrayList<Node>();
            for (NodeTerm t: terms) resultTerms.add( t.subst( c, b ) );
            return new Functor( resultTerms );
            }
View Full Code Here

TOP

Related Classes of com.hp.jena.rules.retelike.impl.scratch.Functor

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.