connectionUtils/src/main/java/com/ge/research/semtk/sparqlX/SparqlToXUtils.java
public static String generateDeleteURIQuery(SparqlEndpointInterface sei, String uri) throws IOException{

    // check that URI does not start with ?   
    if(uri.startsWith("?")){
      LocalLogger.logToStdOut("URI to delete may not start with '?'...not deleting");
      throw new IOException("URI to delete may not start with '?'");
    }
    
    // delete anywhere where the URI is a subject or object
    String query = generateDeleteURISubjectQuery(sei, uri) + generateDeleteURIObjectQuery(sei, uri);
    return query;

  }
/**
	 * Generate a DELETE query for a specific URI.
	 * To prevent a catastrophic delete, disallows a URI starting with ?
	 * @throws IOException
	 */
Generate a DELETE query for a specific URI.
To prevent a catastrophic delete, disallows a URI starting with .
Generate a DELETE query for a specific URI . To prevent a catastrophic delete disallows a URI starting with .
public static String generateDeleteURIQuery(SparqlEndpointInterface sei, String uri) throws IOException{
    if(uri.startsWith("?")){
      LocalLogger.logToStdOut("URI to delete may not start with '?'...not deleting");
      throw new IOException("URI to delete may not start with '?'");
    }
    String query = generateDeleteURISubjectQuery(sei, uri) + generateDeleteURIObjectQuery(sei, uri);
    return query;
  }
public static String generateDeleteURIQuery ( SparqlEndpointInterface sei , String uri ) throws IOException { if ( uri . startsWith ( "?" ) ) { LocalLogger . logToStdOut ( "URI to delete may not start with '?'...not deleting" ) ; throw new IOException ( "URI to delete may not start with '?'" ) ; } String query = generateDeleteURISubjectQuery ( sei , uri ) + generateDeleteURIObjectQuery ( sei , uri ) ; return query ; }
Generate a DELETE query for a specific URI.
Generate a DELETE query for a specific URI .
// check that URI does not start with ?    // delete anywhere where the URI is a subject or object