connectionUtils/src/main/java/com/ge/research/semtk/sparqlX/SparqlToXUtils.java
public static String generateDeleteModelTriplesQuery(SparqlEndpointInterface sei, ArrayList<String> prefixes, Boolean deleteBlankNodes) {
	  // init regex
	  StringBuilder regex = new StringBuilder("^(");
	  
	  // add all prefixes
	  for (String p : prefixes) {
		  if (regex.toString().length() > 2) {
			  regex.append("|");
		  }
		  regex.append(p);
	  }
	  
	  // add blank node prefix
	  if (deleteBlankNodes) {
		  regex.append("|" + SparqlToXUtils.BLANK_NODE_PREFIX);
	  }
	  regex.append(")");
	  
	  // delete all triples w
	  return SparqlToXUtils.generateDeleteBySubjectRegexQuery(sei, regex.toString());
	  
  }
/**
   * Delete all model triples given a list of prefixes.   Also deletes blank nodes.
   * @param prefixes
   * @return
   */
Delete all model triples given a list of prefixes.   Also deletes blank nodes.
@param prefixes
@return
Delete all model triples given a list of prefixes . Also deletes blank nodes . @param prefixes @return
public static String generateDeleteModelTriplesQuery(SparqlEndpointInterface sei, ArrayList<String> prefixes, Boolean deleteBlankNodes) {
	  StringBuilder regex = new StringBuilder("^(");
	  for (String p : prefixes) {
		  if (regex.toString().length() > 2) {
			  regex.append("|");
		  }
		  regex.append(p);
	  }
	  if (deleteBlankNodes) {
		  regex.append("|" + SparqlToXUtils.BLANK_NODE_PREFIX);
	  }
	  regex.append(")");
	  return SparqlToXUtils.generateDeleteBySubjectRegexQuery(sei, regex.toString());
  }
public static String generateDeleteModelTriplesQuery ( SparqlEndpointInterface sei , ArrayList < String > prefixes , Boolean deleteBlankNodes ) { StringBuilder regex = new StringBuilder ( "^(" ) ; for ( String p : prefixes ) { if ( regex . toString ( ) . length ( ) > 2 ) { regex . append ( "|" ) ; } regex . append ( p ) ; } if ( deleteBlankNodes ) { regex . append ( "|" + SparqlToXUtils . BLANK_NODE_PREFIX ) ; } regex . append ( ")" ) ; return SparqlToXUtils . generateDeleteBySubjectRegexQuery ( sei , regex . toString ( ) ) ; }
Delete all model triples given a list of prefixes.
Delete all model triples given a list of prefixes .
// init regex // add all prefixes // add blank node prefix // delete all triples w