Package com.hp.hpl.jena.sparql.graph

Examples of com.hp.hpl.jena.sparql.graph.NodeTransform


        return g ;
    }
   
    protected static List<Quad> unused_convertBNodesToVariables(List<Quad> quads)
    {
        NodeTransform bnodesToVariables = new NodeTransformBNodesToVariables() ;
        return NodeTransformLib.transformQuads(bnodesToVariables, quads) ;
    }
View Full Code Here


    }
   
    /** Rename one node to another */
    public static Op renameNode(Op op, Node oldName, Node newName)
    {
        NodeTransform renamer = new RenameNode(oldName, newName) ;
        return NodeTransformLib.transform(renamer, op) ;
    }
View Full Code Here

    }

    /** Rename one variable to another */
    public static Op renameVar(Op op, Var oldName, Var newName)
    {
        NodeTransform renamer = new RenameNode(oldName, newName) ;
        return NodeTransformLib.transform(renamer, op) ;
    }
View Full Code Here

    }

    /** Rename all variables in an expression, EXCEPT for those named as constant */
    public static ExprList renameVars(ExprList exprList, Set<Var> constants)
    {
        NodeTransform renamer = new RenameAnyVars(constants, prefix) ;
        return NodeTransformLib.transform(renamer, exprList) ;
    }
View Full Code Here

        return NodeTransformLib.transform(renamer, exprList) ;
    }
       
    public static Expr renameVars(Expr expr, Set<Var> constants)
    {
        NodeTransform renamer = new RenameAnyVars(constants, prefix) ;
        return NodeTransformLib.transform(renamer, expr) ;
    }
View Full Code Here

   
    /** Undo the effect of the rename operation, once or repeatedly.
     * This assumes the op was renamed by VarRename.rename */
    public static Op reverseVarRename(Op op, boolean repeatedly)
    {
        NodeTransform renamer = new UnrenameAnyVars(prefix, repeatedly) ;
        return NodeTransformLib.transform(renamer, op) ;
    }
View Full Code Here

        return g ;
    }
   
    protected static List<Quad> unused_convertBNodesToVariables(List<Quad> quads)
    {
        NodeTransform bnodesToVariables = new NodeTransformBNodesToVariables() ;
        return NodeTransformLib.transformQuads(bnodesToVariables, quads) ;
    }
View Full Code Here

        return g ;
    }
   
    protected static List<Quad> unused_convertBNodesToVariables(List<Quad> quads)
    {
        NodeTransform bnodesToVariables = new NodeTransformBNodesToVariables() ;
        return NodeTransformLib.transformQuads(bnodesToVariables, quads) ;
    }
View Full Code Here

    }
   
    /** Rename one node to another */
    public static Op renameNode(Op op, Node oldName, Node newName)
    {
        NodeTransform renamer = new RenameNode(oldName, newName) ;
        return NodeTransformLib.transform(renamer, op) ;
    }
View Full Code Here

    }

    /** Rename one variable to another */
    public static Op renameVar(Op op, Var oldName, Var newName)
    {
        NodeTransform renamer = new RenameNode(oldName, newName) ;
        return NodeTransformLib.transform(renamer, op) ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.graph.NodeTransform

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.