static private void checkArg(Query query) { checkNotNull(query, "Query is null") ; } }
static private void checkArg(Query query) { checkNotNull(query, "Query is null") ; } }
static private void checkArg(String queryStr) { checkNotNull(queryStr, "Query string is null") ; }
static private void checkArg(Model model) { checkNotNull(model, "Model is a null pointer") ; }
static private void checkArg(Model model) { checkNotNull(model, "Model is a null pointer") ; }
static private void checkArg(String queryStr) { checkNotNull(queryStr, "Query string is null") ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query to execute * @param authenticator HTTP Authenticator * @return QueryExecution */ static public QueryExecution sparqlService(String service, Query query, HttpAuthenticator authenticator) { checkNotNull(service, "URL for service is null") ; checkArg(query) ; return createServiceRequest(service, query, authenticator) ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query to execute * @return QueryExecution */ static public QueryExecution sparqlService(String service, Query query) { checkNotNull(service, "URL for service is null") ; checkArg(query) ; return createServiceRequest(service, query) ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query string to execute * @param authenticator HTTP Authenticator * @return QueryExecution */ static public QueryExecution sparqlService(String service, String query, HttpAuthenticator authenticator) { checkNotNull(service, "URL for service is null") ; checkArg(query) ; return sparqlService(service, QueryFactory.create(query), authenticator) ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query string to execute * @return QueryExecution */ static public QueryExecution sparqlService(String service, String query) { checkNotNull(service, "URL for service is null") ; checkArg(query) ; return sparqlService(service, QueryFactory.create(query)) ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query string to execute * @param defaultGraph URI of the default graph * @return QueryExecution */ static public QueryExecution sparqlService(String service, String query, String defaultGraph) { checkNotNull(service, "URL for service is null") ; //checkNotNull(defaultGraph, "IRI for default graph is null") ; checkArg(query) ; return sparqlService(service, QueryFactory.create(query), defaultGraph) ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query string to execute * @param defaultGraphURIs List of URIs to make up the default graph * @param namedGraphURIs List of URIs to make up the named graphs * @param authenticator HTTP Authenticator * @return QueryExecution */ static public QueryExecution sparqlService(String service, String query, List<String> defaultGraphURIs, List<String> namedGraphURIs, HttpAuthenticator authenticator) { checkNotNull(service, "URL for service is null") ; //checkNotNull(defaultGraphURIs, "List of default graph URIs is null") ; //checkNotNull(namedGraphURIs, "List of named graph URIs is null") ; checkArg(query) ; return sparqlService(service, QueryFactory.create(query), defaultGraphURIs, namedGraphURIs, authenticator) ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query string to execute * @param defaultGraph URI of the default graph * @param authenticator HTTP Authenticator * @return QueryExecution */ static public QueryExecution sparqlService(String service, String query, String defaultGraph, HttpAuthenticator authenticator) { checkNotNull(service, "URL for service is null") ; //checkNotNull(defaultGraph, "IRI for default graph is null") ; checkArg(query) ; return sparqlService(service, QueryFactory.create(query), defaultGraph, authenticator) ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query string to execute * @param defaultGraphURIs List of URIs to make up the default graph * @param namedGraphURIs List of URIs to make up the named graphs * @return QueryExecution */ static public QueryExecution sparqlService(String service, String query, List<String> defaultGraphURIs, List<String> namedGraphURIs) { checkNotNull(service, "URL for service is null") ; //checkNotNull(defaultGraphURIs, "List of default graph URIs is null") ; //checkNotNull(namedGraphURIs, "List of named graph URIs is null") ; checkArg(query) ; return sparqlService(service, QueryFactory.create(query), defaultGraphURIs, namedGraphURIs) ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query to execute * @param defaultGraph URI of the default graph * @return QueryExecution */ static public QueryExecution sparqlService(String service, Query query, String defaultGraph) { checkNotNull(service, "URL for service is null") ; //checkNotNull(defaultGraph, "IRI for default graph is null") ; checkArg(query) ; QueryEngineHTTP qe = createServiceRequest(service, query) ; qe.addDefaultGraph(defaultGraph) ; return qe ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query to execute * @param defaultGraph URI of the default graph * @param authenticator HTTP Authenticator * @return QueryExecution */ static public QueryExecution sparqlService(String service, Query query, String defaultGraph, HttpAuthenticator authenticator) { checkNotNull(service, "URL for service is null") ; //checkNotNull(defaultGraph, "IRI for default graph is null") ; checkArg(query) ; QueryEngineHTTP qe = createServiceRequest(service, query, authenticator) ; qe.addDefaultGraph(defaultGraph) ; return qe ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query to execute * @param defaultGraphURIs List of URIs to make up the default graph * @param namedGraphURIs List of URIs to make up the named graphs * @return QueryExecution */ static public QueryExecution sparqlService(String service, Query query, List<String> defaultGraphURIs, List<String> namedGraphURIs) { checkNotNull(service, "URL for service is null") ; //checkNotNull(defaultGraphURIs, "List of default graph URIs is null") ; //checkNotNull(namedGraphURIs, "List of named graph URIs is null") ; checkArg(query) ; QueryEngineHTTP qe = createServiceRequest(service, query) ; if ( defaultGraphURIs != null ) qe.setDefaultGraphURIs(defaultGraphURIs) ; if ( namedGraphURIs != null ) qe.setNamedGraphURIs(namedGraphURIs) ; return qe ; }
/** Create a QueryExecution that will access a SPARQL service over HTTP * @param service URL of the remote service * @param query Query to execute * @param defaultGraphURIs List of URIs to make up the default graph * @param namedGraphURIs List of URIs to make up the named graphs * @param authenticator HTTP Authenticator * @return QueryExecution */ static public QueryExecution sparqlService(String service, Query query, List<String> defaultGraphURIs, List<String> namedGraphURIs, HttpAuthenticator authenticator) { checkNotNull(service, "URL for service is null") ; //checkNotNull(defaultGraphURIs, "List of default graph URIs is null") ; //checkNotNull(namedGraphURIs, "List of named graph URIs is null") ; checkArg(query) ; QueryEngineHTTP qe = createServiceRequest(service, query, authenticator) ; if ( defaultGraphURIs != null ) qe.setDefaultGraphURIs(defaultGraphURIs) ; if ( namedGraphURIs != null ) qe.setNamedGraphURIs(namedGraphURIs) ; return qe ; }