sparqlGraphLibrary/src/main/java/com/ge/research/semtk/belmont/ValueConstraint.java
public void removeReferencesToVar(String id) {
		if (constraint == null)
			return;
		
		String regex = "";
		final String ending = "[^-_A-Za-z0-9]";
		
		if (id.startsWith("?")) {
			regex = "\\" +  id + ending;
		} else {
			regex = "\\?" + id + ending;
		}
		
		Matcher m = Pattern.compile(regex).matcher(this.constraint);
		if (m.find()) {
			this.constraint = null;
		}
	}
/**
	 * Brute force removal of any constraint that contains a given variable name
	 * @param id
	 */
Brute force removal of any constraint that contains a given variable name
@param id
Brute force removal of any constraint that contains a given variable name @param id
public void removeReferencesToVar(String id) {
		if (constraint == null)
			return;
		String regex = "";
		final String ending = "[^-_A-Za-z0-9]";
		if (id.startsWith("?")) {
			regex = "\\" +  id + ending;
		} else {
			regex = "\\?" + id + ending;
		}
		Matcher m = Pattern.compile(regex).matcher(this.constraint);
		if (m.find()) {
			this.constraint = null;
		}
	}
public void removeReferencesToVar ( String id ) { if ( constraint == null ) return ; String regex = "" ; final String ending = "[^-_A-Za-z0-9]" ; if ( id . startsWith ( "?" ) ) { regex = "\\" + id + ending ; } else { regex = "\\?" + id + ending ; } Matcher m = Pattern . compile ( regex ) . matcher ( this . constraint ) ; if ( m . find ( ) ) { this . constraint = null ; } }
Brute force removal of any constraint that contains a given variable name
 @param id
Brute force removal of any constraint that contains a given variable name @param id