/** * Throws an exception if the syntax is not SPARQL */ @Override public ClosableIterable<Statement> queryConstruct(String query, String querylanguage) throws QueryLanguageNotSupportedException, ModelRuntimeException { assertModel(); if(querylanguage.equalsIgnoreCase("SPARQL")) return sparqlConstruct(query); // else throw new QueryLanguageNotSupportedException("Unsupported query language: " + querylanguage); }
/** * Throws an exception if the syntax is not SPARQL */ public ClosableIterable<Statement> queryConstruct(String query, String querylanguage) throws QueryLanguageNotSupportedException, ModelRuntimeException { assertModel(); if (querylanguage.equalsIgnoreCase("SPARQL")) return sparqlConstruct(query); // else throw new QueryLanguageNotSupportedException( "Unsupported query language: " + querylanguage); }