public class SameAsFilteringRDFServiceFactory.SameAsFilteringRDFService extends RDFServiceImpl implements RDFService
RDFService.ModelSerializationFormat, RDFService.ResultFormat, RDFService.SPARQLQueryTypeBNODE_ROOT_QUERY, defaultWriteGraphURI, registeredJenaListeners, registeredListeners| Constructor and Description |
|---|
SameAsFilteringRDFService(RDFService rdfService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeSetUpdate(ChangeSet changeSet)
Performs a series of additions to and or removals from specified graphs
in the RDF store.
|
void |
close()
Frees any resources held by this RDFService object
The implementation of this method should be idempotent so that
multiple invocations do not cause an error.
|
void |
getGraphMetadata()
To be determined.
|
List<String> |
getGraphURIs()
Returns a list of all the graph URIs in the RDF store.
|
boolean |
isEquivalentGraph(String graphURI,
InputStream serializedGraph,
RDFService.ModelSerializationFormat serializationFormat)
Tests to see whether the supplied serialization is equivalent to the
named graph, as it exists in the store.
|
boolean |
isEquivalentGraph(String graphURI,
com.hp.hpl.jena.rdf.model.Model graph)
Tests to see whether the supplied serialization is equivalent to the
named graph, as it exists in the store.
|
void |
serializeAll(OutputStream outputStream)
Serializes the union of all named and unnamed graphs in the store to the
supplied OutputStream, in N-Quads format.
|
void |
serializeGraph(String graphURI,
OutputStream outputStream)
Serializes the contents of the named graph to the supplied OutputStream,
in N-Triples format.
|
boolean |
sparqlAskQuery(String query)
Performs a SPARQL ASK query against the knowledge base.
|
void |
sparqlConstructQuery(String query,
com.hp.hpl.jena.rdf.model.Model model)
Performs a SPARQL construct query against the knowledge base.
|
InputStream |
sparqlConstructQuery(String query,
RDFService.ModelSerializationFormat resultFormat)
Performs a SPARQL construct query against the knowledge base.
|
InputStream |
sparqlDescribeQuery(String query,
RDFService.ModelSerializationFormat resultFormat)
Performs a SPARQL describe query against the knowledge base.
|
InputStream |
sparqlSelectQuery(String query,
RDFService.ResultFormat resultFormat)
Performs a SPARQL select query against the knowledge base.
|
void |
sparqlSelectQuery(String query,
ResultSetConsumer consumer)
Performs a SPARQL select query against the knowledge base.
|
createQuery, getDefaultWriteGraphURI, getRegisteredJenaModelChangedListeners, getRegisteredListeners, getSerializationFormatString, isPreconditionSatisfied, manufactureChangeSet, newIndividual, newIndividual, notifyListeners, notifyListenersOfChanges, notifyListenersOfEvent, pyString, registerJenaModelChangedListener, registerListener, separateStatementsWithBlankNodes, sparqlNode, sparqlNodeUpdate, sparqlSelectQueryHasResults, sparqlTriple, toString, unregisterJenaModelChangedListener, unregisterListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefaultWriteGraphURI, manufactureChangeSet, newIndividual, newIndividual, registerJenaModelChangedListener, registerListener, unregisterJenaModelChangedListener, unregisterListenerpublic SameAsFilteringRDFService(RDFService rdfService)
public InputStream sparqlConstructQuery(String query, RDFService.ModelSerializationFormat resultFormat) throws RDFServiceException
RDFServicesparqlConstructQuery in interface RDFServicequery - - the SPARQL query to be executed against the RDF storeresultFormat - - type of serialization for RDF result of the SPARQL queryRDFServiceExceptionpublic void sparqlConstructQuery(String query, com.hp.hpl.jena.rdf.model.Model model) throws RDFServiceException
RDFServicesparqlConstructQuery in interface RDFServicequery - - the SPARQL query to be executed against the RDF storemodel - - the Model to add the statements toRDFServiceExceptionpublic InputStream sparqlSelectQuery(String query, RDFService.ResultFormat resultFormat) throws RDFServiceException
RDFServicesparqlSelectQuery in interface RDFServicequery - - the SPARQL query to be executed against the RDF storeresultFormat - - format for the result of the Select queryRDFServiceExceptionpublic void sparqlSelectQuery(String query, ResultSetConsumer consumer) throws RDFServiceException
RDFServicesparqlSelectQuery in interface RDFServicequery - - the SPARQL query to be executed against the RDF storeconsumer - - the class to consume the results of the queryRDFServiceExceptionpublic boolean changeSetUpdate(ChangeSet changeSet) throws RDFServiceException
RDFServicechangeSetUpdate in interface RDFServicechangeSet - - a set of changes to be performed on the RDF store.RDFServiceExceptionpublic InputStream sparqlDescribeQuery(String query, RDFService.ModelSerializationFormat resultFormat) throws RDFServiceException
RDFServicesparqlDescribeQuery in interface RDFServicequery - - the SPARQL query to be executed against the RDF storeresultFormat - - type of serialization for RDF result of the SPARQL queryRDFServiceExceptionpublic boolean sparqlAskQuery(String query) throws RDFServiceException
RDFServicesparqlAskQuery in interface RDFServicequery - - the SPARQL ASK query to be executed against the RDF storeRDFServiceExceptionpublic List<String> getGraphURIs() throws RDFServiceException
RDFServicegetGraphURIs in interface RDFServiceRDFServiceExceptionpublic void getGraphMetadata()
throws RDFServiceException
RDFServicegetGraphMetadata in interface RDFServiceRDFServiceExceptionpublic void serializeAll(OutputStream outputStream) throws RDFServiceException
RDFServiceserializeAll in interface RDFServiceoutputStream - - receives the serialized result.RDFServiceExceptionpublic void serializeGraph(String graphURI, OutputStream outputStream) throws RDFServiceException
RDFServiceserializeGraph in interface RDFServicegraphURI - - the URI of the desired graph. May not be null.outputStream - - receives the serialized result.RDFServiceExceptionpublic boolean isEquivalentGraph(String graphURI, InputStream serializedGraph, RDFService.ModelSerializationFormat serializationFormat) throws RDFServiceException
RDFServiceisEquivalentGraph in interface RDFServicegraphURI - - the URI of the graph to test against. May not be null.serializedGraph - - the contents to be compared with the existing graph. May not be null.serializationFormat - - May not be null.RDFServiceExceptionpublic boolean isEquivalentGraph(String graphURI, com.hp.hpl.jena.rdf.model.Model graph) throws RDFServiceException
RDFServiceisEquivalentGraph in interface RDFServicegraphURI - - the URI of the graph to test against. May not be null.graph - - the contents to be compared with the existing graph. May not be null.RDFServiceExceptionpublic void close()
RDFServiceclose in interface RDFServiceCopyright © 2016. All rights reserved.