@Test public void testUpdateQueryWithExistingBaseURI() throws Exception { String defGraphQuery = "BASE <http: String checkQuery = "BASE <http: MarkLogicUpdateQuery updateQuery = conn.prepareUpdate(QueryLanguage.SPARQL, defGraphQuery,"http: updateQuery.execute(); BooleanQuery booleanQuery = conn.prepareBooleanQuery(QueryLanguage.SPARQL, checkQuery); boolean results = booleanQuery.evaluate(); Assert.assertEquals(true, results); conn.clear(conn.getValueFactory().createURI("http: }
@Override public void execute() throws UpdateExecutionException { try { sync(); getMarkLogicClient().sendUpdateQuery(getQueryString(), getBindings(), getIncludeInferred(), getBaseURI()); }catch(ForbiddenUserException | FailedRequestException e){ throw new UpdateExecutionException(e); } catch (RepositoryException e) { throw new UpdateExecutionException(e); } catch (MalformedQueryException e) { throw new UpdateExecutionException(e); } catch (IOException e) { throw new UpdateExecutionException(e); } }
MarkLogicUpdateQuery extends MarkLogicQuery implements Update,MarkLogicQueryDependent { @Override public void execute() throws UpdateExecutionException { try { sync(); getMarkLogicClient().sendUpdateQuery(getQueryString(), getBindings(), getIncludeInferred(), getBaseURI()); }catch(ForbiddenUserException | FailedRequestException e){ throw new UpdateExecutionException(e); } catch (RepositoryException e) { throw new UpdateExecutionException(e); } catch (MalformedQueryException e) { throw new UpdateExecutionException(e); } catch (IOException e) { throw new UpdateExecutionException(e); } } }
MarkLogicUpdateQuery extends MarkLogicQuery implements Update,MarkLogicQueryDependent { @Override public void execute() throws UpdateExecutionException { try { sync(); getMarkLogicClient().sendUpdateQuery(getQueryString(), getBindings(), getIncludeInferred(), getBaseURI()); }catch(ForbiddenUserException | FailedRequestException e){ throw new UpdateExecutionException(e); } catch (RepositoryException e) { throw new UpdateExecutionException(e); } catch (MalformedQueryException e) { throw new UpdateExecutionException(e); } catch (IOException e) { throw new UpdateExecutionException(e); } } MarkLogicUpdateQuery(MarkLogicClient client, SPARQLQueryBindingSet bindingSet, String baseUri, String queryString, GraphPermissions graphPerms, QueryDefinition queryDef, SPARQLRuleset[] rulesets); }
MarkLogicUpdateQuery extends MarkLogicQuery implements Update,MarkLogicQueryDependent { @Override public void execute() throws UpdateExecutionException { try { sync(); getMarkLogicClient().sendUpdateQuery(getQueryString(), getBindings(), getIncludeInferred(), getBaseURI()); }catch(ForbiddenUserException | FailedRequestException e){ throw new UpdateExecutionException(e); } catch (RepositoryException e) { throw new UpdateExecutionException(e); } catch (MalformedQueryException e) { throw new UpdateExecutionException(e); } catch (IOException e) { throw new UpdateExecutionException(e); } } MarkLogicUpdateQuery(MarkLogicClient client, SPARQLQueryBindingSet bindingSet, String baseUri, String queryString, GraphPermissions graphPerms, QueryDefinition queryDef, SPARQLRuleset[] rulesets); @Override void execute(); }
MarkLogicUpdateQuery extends MarkLogicQuery implements Update,MarkLogicQueryDependent { @Override public void execute() throws UpdateExecutionException { try { sync(); getMarkLogicClient().sendUpdateQuery(getQueryString(), getBindings(), getIncludeInferred(), getBaseURI()); }catch(ForbiddenUserException | FailedRequestException e){ throw new UpdateExecutionException(e); } catch (RepositoryException e) { throw new UpdateExecutionException(e); } catch (MalformedQueryException e) { throw new UpdateExecutionException(e); } catch (IOException e) { throw new UpdateExecutionException(e); } } MarkLogicUpdateQuery(MarkLogicClient client, SPARQLQueryBindingSet bindingSet, String baseUri, String queryString, GraphPermissions graphPerms, QueryDefinition queryDef, SPARQLRuleset[] rulesets); @Override void execute();  }