sparqlGraphLibrary/src/main/java/com/ge/research/semtk/belmont/NodeGroup.java
public void removeUnusedBindings() {
        
        String constraintsText = this.getAllConstraintText();
        for (Returnable r : this.getAllReturnables()) {
            // if binding exists but is not returned
            if (r.getBinding() != null && ! r.getIsBindingReturned()) {
                // if binding isn't in any constraints
                if (! Pattern.matches("\\" + r.getBinding() + "[^a-zA-Z0-9_]", constraintsText)) {
                    r.binding = null;
                }
            }
        }
    }
/**
     * Bindings appear to cause great slowdowns in Fuseki (others unknown)
     * Remove any stray bindings that aren't returned and don't appear in constraints.
     */
Bindings appear to cause great slowdowns in Fuseki (others unknown)
Remove any stray bindings that aren't returned and don't appear in constraints.
Bindings appear to cause great slowdowns in Fuseki ( others unknown ) Remove any stray bindings that aren ' t returned and don ' t appear in constraints .
public void removeUnusedBindings() {
        String constraintsText = this.getAllConstraintText();
        for (Returnable r : this.getAllReturnables()) {
            if (r.getBinding() != null && ! r.getIsBindingReturned()) {
                if (! Pattern.matches("\\" + r.getBinding() + "[^a-zA-Z0-9_]", constraintsText)) {
                    r.binding = null;
                }
            }
        }
    }
public void removeUnusedBindings ( ) { String constraintsText = this . getAllConstraintText ( ) ; for ( Returnable r : this . getAllReturnables ( ) ) { if ( r . getBinding ( ) != null && ! r . getIsBindingReturned ( ) ) { if ( ! Pattern . matches ( "\\" + r . getBinding ( ) + "[^a-zA-Z0-9_]" , constraintsText ) ) { r . binding = null ; } } } }
Bindings appear to cause great slowdowns in Fuseki (others unknown)
 Remove any stray bindings that aren't returned and don't appear in constraints.
Bindings appear to cause great slowdowns in Fuseki ( others unknown ) Remove any stray bindings that aren ' t returned and don ' t appear in constraints .
// if binding exists but is not returned // if binding isn't in any constraints