|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface APIProvider
The interface implemented by the providers of the API. The methods of this interface create actual implementations of SSWAP interfaces.
Method Summary | ||
---|---|---|
com.hp.hpl.jena.rdf.model.Model |
asJenaModel(SSWAPModel model)
Returns the representation of the given SSWAPModel using Jena interface |
|
SSWAPElement |
copyElement(SSWAPDocument dstDocument,
SSWAPElement element)
|
|
RDG |
createCompositeService(java.net.URI serviceURI,
java.lang.String name,
java.lang.String description,
java.net.URI providerURI,
RDG firstService,
RDG lastService)
|
|
|
createDocument(com.hp.hpl.jena.rdf.model.Model model,
java.lang.Class<T> clazz)
|
|
|
createDocument(com.hp.hpl.jena.rdf.model.Model model,
java.lang.Class<T> clazz,
java.net.URI uri)
|
|
PDG |
createPDG(java.net.URI providerURI,
java.lang.String name,
java.lang.String oneLineDescription)
Creates a new PDG (Provider Description Graph). |
|
SSWAPProvider |
createProvider(java.net.URI uri)
Gets an undereferenced SSWAPProvider implementation |
|
RDG |
createRDG(java.net.URI resourceURI,
java.lang.String name,
java.lang.String oneLineDescription,
java.net.URI providerURI)
Creates a new RDG object. |
|
SSWAPResource |
createResource(java.net.URI uri)
Gets an undereferenced SSWAPResource implementation |
|
RQG |
createRQG(java.net.URI resourceURI)
Creates a basic RQG from scratch. |
|
SSWAPDocument |
createSSWAPDocument(java.net.URI uri)
Creates an empty SSWAPModel. |
|
RQG |
generateRQG(RDG upstreamService,
RDG downstreamService)
|
|
RQG |
generateRQG(RDG upstreamService,
RDG downstreamService,
java.net.URI resultURI)
|
|
RIG |
getAsyncRIG(java.net.URI serviceURI,
java.net.URI upstreamRRG)
|
|
Cache |
getCache()
|
|
SSWAPDocument |
getClosureDocument(SSWAPDocument document)
|
|
SSWAPDocument |
getInferredABox(SSWAPDocument document)
Gets the document that contains the ABox of this document (including both inferred and asserted statements). |
|
SSWAPDocument |
getInferredDocument(SSWAPDocument document)
|
|
SSWAPDocument |
getInferredTBox(SSWAPDocument document)
Gets the document that contains the TBox of this document (including both inferred and asserted statements). |
|
java.util.Collection<java.lang.String> |
getInferredTypeURIs(SSWAPIndividual individual)
|
|
PDG |
getPDG(java.net.URI uri)
Gets an undereferenced PDG implementation. |
|
RDG |
getRDG(java.net.URI uri)
Gets a dereferenced RDG implementation |
|
|
getResourceGraph(java.io.InputStream is,
java.lang.Class<T> clazz,
java.net.URI uri)
Creates a SSWAPDocument graph from its serialization in an input stream. |
|
RQG |
getRQG(java.io.InputStream is)
Reads an RQG from an input stream. |
|
|
getUntranslatedNode(T translatedNode)
|
|
RQG |
inputOnlyRQG(RQG rqg)
|
|
boolean |
isUnrestricted(RQG rqg)
|
|
RQG |
outputOnlyRQG(RQG rqg)
|
|
void |
setClosureEnabled(SSWAPDocument document,
boolean enabled)
|
|
void |
setExplanationSyntax(java.lang.String explanationSyntax)
|
|
void |
setMaxClosureBytes(SSWAPModel model,
long byteLimit)
Sets a model-specific byte limit to retrieve the closure |
|
void |
setMaxClosureThreads(SSWAPModel model,
int threads)
Sets a model-specific limit on the number of threads used to retrieve the closure |
|
void |
setMaxClosureTime(SSWAPModel model,
long timeLimit)
Sets a model-specific time limit to retrieve the closure |
|
void |
setValueValidation(SSWAPDocument document,
boolean enabled)
|
Method Detail |
---|
PDG getPDG(java.net.URI uri)
uri
- URI of the PDG
SSWAPProvider createProvider(java.net.URI uri)
uri
- URI of the provider
RDG getRDG(java.net.URI uri) throws DataAccessException
uri
- URI of the RDG
DataAccessException
- if an error should occur while trying to access RDG's dataSSWAPResource createResource(java.net.URI uri)
uri
- URI of the Resource
RDG createRDG(java.net.URI resourceURI, java.lang.String name, java.lang.String oneLineDescription, java.net.URI providerURI)
resourceURI
- the URI of the SSWAP Resource (and the RDG itself)name
- the name of the service described in this RDGoneLineDescription
- a short description of the RDGproviderURI
- an URI of the provider of this service
RQG getRQG(java.io.InputStream is)
is
- the input stream containing the representation of the RQG
RQG createRQG(java.net.URI resourceURI)
resourceURI
- the URI of the resource in the RQG; may be null for anonymous resources
<T extends SSWAPDocument> T getResourceGraph(java.io.InputStream is, java.lang.Class<T> clazz, java.net.URI uri) throws DataAccessException
T
- the template parameter that specifies the type of SSWAPDocument graph to be created (e.g., RDG, RIG, etc.).is
- the input stream from which the contents of the graph should be readclazz
- the Java Class object that identifies the type of SSWAPDocument graph (and provides the instantiation
for the template parameter; e.g., RDG.class, RIG.class, etc.)uri
- the URI to dereference to obtain the graph
DataAccessException
- on parsing or other data errorPDG createPDG(java.net.URI providerURI, java.lang.String name, java.lang.String oneLineDescription)
providerURI
- the URI of the SSWAP Provider (and the PDG itself)name
- the name of the provider described in this PDGoneLineDescription
- the one line description of the provider
SSWAPDocument createSSWAPDocument(java.net.URI uri)
uri
- the URI of the SSWAP model
SSWAPDocument getInferredTBox(SSWAPDocument document) throws java.lang.UnsupportedOperationException
document
- source SSWAPDocument
java.lang.UnsupportedOperationException
- if the specified provider does not support this featureSSWAPDocument getInferredABox(SSWAPDocument document) throws java.lang.UnsupportedOperationException
document
- source SSWAPDocument
java.lang.UnsupportedOperationException
- if the specified provider does not support this featurecom.hp.hpl.jena.rdf.model.Model asJenaModel(SSWAPModel model) throws java.lang.UnsupportedOperationException
model
- the SSWAPModel
java.lang.UnsupportedOperationException
- if the specified provider does not support this featurevoid setMaxClosureThreads(SSWAPModel model, int threads) throws java.lang.UnsupportedOperationException
model
- the model for which the limit should be setthreads
- the number of threads, or -1 to remove any previous model-specific limit
(a system-wide limit will be used for this model)
java.lang.UnsupportedOperationException
- if the operation is not supported by this API Implementationvoid setMaxClosureTime(SSWAPModel model, long timeLimit) throws java.lang.UnsupportedOperationException
model
- the model for which the limit should be settimeLimit
- the maximum number of milliseconds to retrieve the closure, or -1 to remove any
previous model-specific limit (a system-wide limit will be used for this model)
java.lang.UnsupportedOperationException
- if the operation is not supported by this API Implementationvoid setMaxClosureBytes(SSWAPModel model, long byteLimit) throws java.lang.UnsupportedOperationException
model
- the model for which the limit should be setbyteLimit
- the maximum number of bytes to retrieve the closure, or -1 to remove any
previous model-specific limit (a system-wide limit will be used for this model)
java.lang.UnsupportedOperationException
- if the operation is not supported by this API Implementation<T extends SSWAPDocument> T createDocument(com.hp.hpl.jena.rdf.model.Model model, java.lang.Class<T> clazz) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
<T extends SSWAPDocument> T createDocument(com.hp.hpl.jena.rdf.model.Model model, java.lang.Class<T> clazz, java.net.URI uri) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
SSWAPDocument getClosureDocument(SSWAPDocument document) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
SSWAPDocument getInferredDocument(SSWAPDocument document) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
void setExplanationSyntax(java.lang.String explanationSyntax) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
RQG generateRQG(RDG upstreamService, RDG downstreamService) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
RQG generateRQG(RDG upstreamService, RDG downstreamService, java.net.URI resultURI) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
RIG getAsyncRIG(java.net.URI serviceURI, java.net.URI upstreamRRG) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
SSWAPElement copyElement(SSWAPDocument dstDocument, SSWAPElement element) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
Cache getCache()
void setValueValidation(SSWAPDocument document, boolean enabled) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
void setClosureEnabled(SSWAPDocument document, boolean enabled) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
java.util.Collection<java.lang.String> getInferredTypeURIs(SSWAPIndividual individual) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
RDG createCompositeService(java.net.URI serviceURI, java.lang.String name, java.lang.String description, java.net.URI providerURI, RDG firstService, RDG lastService) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
RQG inputOnlyRQG(RQG rqg) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
RQG outputOnlyRQG(RQG rqg) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
boolean isUnrestricted(RQG rqg) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
<T extends SSWAPNode> T getUntranslatedNode(T translatedNode) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |