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,
org.apache.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.
|
changeSetUpdate, close, executeUpdate, getContext, getCredentials, getDefaultWriteGraphURI, getGraphMetadata, getGraphURIs, getReadEndpointURI, getUpdateEndpointURI, isEquivalentGraph, isEquivalentGraph, isPreconditionSatisfied, manufactureChangeSet, preferPreciseOptionals, registerListener, serializeAll, serializeGraph, sparqlSelectQueryHasResults, testConnection, unregisterListenercountTriples, createQuery, getRegisteredJenaModelChangedListeners, getRegisteredListeners, getSerializationFormatString, getTriples, getVitroRequest, newIndividual, newIndividual, notifyListeners, notifyListenersOfChanges, notifyListenersOfEvent, pyString, registerJenaModelChangedListener, separateStatementsWithBlankNodes, setVitroRequest, sparqlNode, sparqlNodeUpdate, sparqlTriple, toString, unregisterJenaModelChangedListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcountTriples, getTriples, getVitroRequest, newIndividual, newIndividual, registerJenaModelChangedListener, setVitroRequest, 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, org.apache.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 © 2022. All rights reserved.