|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RDFService
Interface for API to write, read, and update Vitro's RDF store, with support to allow listening, logging and auditing.
Nested Class Summary | |
---|---|
static class |
RDFService.ModelSerializationFormat
|
static class |
RDFService.ResultFormat
|
static class |
RDFService.SPARQLQueryType
|
Method Summary | |
---|---|
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. |
java.lang.String |
getDefaultWriteGraphURI()
Returns the URI of the default write graph |
void |
getGraphMetadata()
To be determined. |
java.util.List<java.lang.String> |
getGraphURIs()
Returns a list of all the graph URIs in the RDF store. |
ChangeSet |
manufactureChangeSet()
Creates a ChangeSet object |
void |
newIndividual(java.lang.String individualURI,
java.lang.String individualTypeURI)
If the given individual already exists in the default write graph, throws an RDFServiceException, otherwise adds one type assertion to the default write graph. |
void |
newIndividual(java.lang.String individualURI,
java.lang.String individualTypeURI,
java.lang.String graphURI)
If the given individual already exists in the given graph, throws an RDFServiceException, otherwise adds one type assertion to the given graph. |
void |
registerListener(ChangeListener changeListener)
Registers a listener to listen to changes in any graph in the RDF store. |
boolean |
sparqlAskQuery(java.lang.String query)
Performs a SPARQL ASK query against the knowledge base. |
java.io.InputStream |
sparqlConstructQuery(java.lang.String query,
RDFService.ModelSerializationFormat resultFormat)
Performs a SPARQL construct query against the knowledge base. |
java.io.InputStream |
sparqlDescribeQuery(java.lang.String query,
RDFService.ModelSerializationFormat resultFormat)
Performs a SPARQL describe query against the knowledge base. |
java.io.InputStream |
sparqlSelectQuery(java.lang.String query,
RDFService.ResultFormat resultFormat)
Performs a SPARQL select query against the knowledge base. |
void |
unregisterListener(ChangeListener changeListener)
Unregisters a listener from listening to changes in any graph in the RDF store |
Method Detail |
---|
boolean changeSetUpdate(ChangeSet changeSet) throws RDFServiceException
changeSet
- - a set of changes to be performed on the RDF store.
RDFServiceException
void newIndividual(java.lang.String individualURI, java.lang.String individualTypeURI) throws RDFServiceException
individualURI
- - URI of the individual to be addedindividualTypeURI
- - URI of the type for the individual
RDFServiceException
void newIndividual(java.lang.String individualURI, java.lang.String individualTypeURI, java.lang.String graphURI) throws RDFServiceException
individualURI
- - URI of the individual to be addedindividualTypeURI
- - URI of the type for the individualgraphURI
- - URI of the graph to which to add the individual
RDFServiceException
java.io.InputStream sparqlConstructQuery(java.lang.String query, RDFService.ModelSerializationFormat resultFormat) throws RDFServiceException
query
- - the SPARQL query to be executed against the RDF storeresultFormat
- - type of serialization for RDF result of the SPARQL query
RDFServiceException
java.io.InputStream sparqlDescribeQuery(java.lang.String query, RDFService.ModelSerializationFormat resultFormat) throws RDFServiceException
query
- - the SPARQL query to be executed against the RDF storeresultFormat
- - type of serialization for RDF result of the SPARQL query
RDFServiceException
java.io.InputStream sparqlSelectQuery(java.lang.String query, RDFService.ResultFormat resultFormat) throws RDFServiceException
query
- - the SPARQL query to be executed against the RDF storeresultFormat
- - format for the result of the Select query
RDFServiceException
boolean sparqlAskQuery(java.lang.String query) throws RDFServiceException
query
- - the SPARQL ASK query to be executed against the RDF store
RDFServiceException
java.util.List<java.lang.String> getGraphURIs() throws RDFServiceException
RDFServiceException
void getGraphMetadata() throws RDFServiceException
RDFServiceException
java.lang.String getDefaultWriteGraphURI() throws RDFServiceException
RDFServiceException
void registerListener(ChangeListener changeListener) throws RDFServiceException
changeListener
- - the change listener
RDFServiceException
void unregisterListener(ChangeListener changeListener) throws RDFServiceException
changeListener
- - the change listener
RDFServiceException
ChangeSet manufactureChangeSet()
void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |