public class RDFServiceSparqlHttp extends RDFServiceSparql
RDFService.ModelSerializationFormat, RDFService.ResultFormat, RDFService.SPARQLQueryTypehttpClient, readEndpointURI, rebuildGraphURICache, updateEndpointURIBNODE_ROOT_QUERY, defaultWriteGraphURI, registeredJenaListeners, registeredListeners| Constructor and Description |
|---|
RDFServiceSparqlHttp(String endpointURI) |
RDFServiceSparqlHttp(String readEndpointURI,
String updateEndpointURI) |
RDFServiceSparqlHttp(String readEndpointURI,
String updateEndpointURI,
String defaultWriteGraphURI) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
sparqlAskQuery(String queryStr)
Performs a SPARQL ASK query against the knowledge base.
|
void |
sparqlConstructQuery(String queryStr,
com.hp.hpl.jena.rdf.model.Model model)
Performs a SPARQL construct query against the knowledge base.
|
InputStream |
sparqlConstructQuery(String queryStr,
RDFService.ModelSerializationFormat resultFormat)
Performs a SPARQL construct query against the knowledge base.
|
InputStream |
sparqlDescribeQuery(String queryStr,
RDFService.ModelSerializationFormat resultFormat)
Performs a SPARQL describe query against the knowledge base.
|
InputStream |
sparqlSelectQuery(String queryStr,
RDFService.ResultFormat resultFormat)
Performs a SPARQL select query against the knowledge base.
|
void |
sparqlSelectQuery(String queryStr,
ResultSetConsumer consumer)
Performs a SPARQL select query against the knowledge base.
|
addModel, changeSetUpdate, close, deleteModel, executeUpdate, getContext, getCredentials, getDefaultWriteGraphURI, getGraphMetadata, getGraphURIs, getReadEndpointURI, getUpdateEndpointURI, isEquivalentGraph, isEquivalentGraph, isPreconditionSatisfied, manufactureChangeSet, registerListener, serializeAll, serializeGraph, sparqlSelectQueryHasResults, testConnection, unregisterListenercreateQuery, getRegisteredJenaModelChangedListeners, getRegisteredListeners, getSerializationFormatString, newIndividual, newIndividual, notifyListeners, notifyListenersOfChanges, notifyListenersOfEvent, pyString, registerJenaModelChangedListener, separateStatementsWithBlankNodes, sparqlNode, sparqlNodeUpdate, sparqlTriple, toString, unregisterJenaModelChangedListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewIndividual, newIndividual, registerJenaModelChangedListener, unregisterJenaModelChangedListenerpublic RDFServiceSparqlHttp(String endpointURI)
public InputStream sparqlConstructQuery(String queryStr, RDFService.ModelSerializationFormat resultFormat) throws RDFServiceException
sparqlConstructQuery in interface RDFServicesparqlConstructQuery in class RDFServiceSparqlqueryStr - - the SPARQL query to be executed against the RDF storeresultFormat - - type of serialization for RDF result of the SPARQL queryRDFServiceExceptionpublic void sparqlConstructQuery(String queryStr, com.hp.hpl.jena.rdf.model.Model model) throws RDFServiceException
RDFServicesparqlConstructQuery in interface RDFServicesparqlConstructQuery in class RDFServiceSparqlqueryStr - - the SPARQL query to be executed against the RDF storemodel - - the Model to add the statements toRDFServiceExceptionpublic InputStream sparqlDescribeQuery(String queryStr, RDFService.ModelSerializationFormat resultFormat) throws RDFServiceException
sparqlDescribeQuery in interface RDFServicesparqlDescribeQuery in class RDFServiceSparqlqueryStr - - the SPARQL query to be executed against the RDF storeresultFormat - - type of serialization for RDF result of the SPARQL queryRDFServiceExceptionpublic InputStream sparqlSelectQuery(String queryStr, RDFService.ResultFormat resultFormat) throws RDFServiceException
sparqlSelectQuery in interface RDFServicesparqlSelectQuery in class RDFServiceSparqlqueryStr - - the SPARQL query to be executed against the RDF storeresultFormat - - format for the result of the Select queryRDFServiceExceptionpublic void sparqlSelectQuery(String queryStr, ResultSetConsumer consumer) throws RDFServiceException
RDFServicesparqlSelectQuery in interface RDFServicesparqlSelectQuery in class RDFServiceSparqlqueryStr - - the SPARQL query to be executed against the RDF storeconsumer - - the class to consume the results of the queryRDFServiceExceptionpublic boolean sparqlAskQuery(String queryStr) throws RDFServiceException
sparqlAskQuery in interface RDFServicesparqlAskQuery in class RDFServiceSparqlqueryStr - - the SPARQL query to be executed against the RDF storeRDFServiceExceptionCopyright © 2016. All rights reserved.