public interface LinkedDataService
| Modifier and Type | Method and Description |
|---|---|
org.apache.jena.query.Dataset |
getAtomDataset(java.net.URI atomUri,
boolean deep,
java.lang.Integer deepLayerSize)
Returns a dataset describing the atom with the specified URI.
|
DataWithEtag<org.apache.jena.query.Dataset> |
getAtomDataset(java.net.URI atomUri,
java.lang.String etag)
Returns a dataset describing the atom, if the etag indicates that it has
changed.
|
DataWithEtag<org.apache.jena.query.Dataset> |
getConnectionDataset(java.net.URI connectionUri,
boolean includeMessageContainer,
java.lang.String etag)
Returns a dataset describing the connection, if the etag indicates that it
has changed.
|
DataWithEtag<org.apache.jena.query.Dataset> |
getDatasetForUri(java.net.URI eventURI,
java.lang.String etag)
returns a dataset of the (message) event with the specified URI, with a value
that can be used for an etag.
|
org.apache.jena.query.Dataset |
getNodeDataset() |
org.apache.jena.rdf.model.Model |
getUnreadInformationForAtom(java.net.URI atomURI,
java.util.Collection<java.net.URI> lastSeenMessageURIs)
Returns a model specifying the number of messages and their latest and
earliest timestamp found per connection after the specified
lastSeenMessageURI, or the total message count and respective timestamps for
a connection for which no lastSeenMessageURI is specified.
|
org.apache.jena.query.Dataset |
listAtomURIs()
Returns a model containing all atom URIs.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listAtomURIs(int page)
Returns a model containing all atom URIs.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listAtomURIs(int page,
java.lang.Integer preferedSize,
AtomState atomState)
Returns a model containing all atom URIs that are in the specified state.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listAtomURIsAfter(java.net.URI atom)
Return all atom URIs that where created after the provided atom
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listAtomURIsAfter(java.net.URI atom,
java.lang.Integer preferedSize,
AtomState atomState)
Return all atom URIs that where created after the provided atom and that are
in the specified state
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listAtomURIsBefore(java.net.URI atom)
Return all atom URIs that where created before the provided atom
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listAtomURIsBefore(java.net.URI atom,
java.lang.Integer preferedSize,
AtomState atomState)
Return all atom URIs that where created after the provided atom and that are
in the specified state
|
org.apache.jena.query.Dataset |
listConnectionEventURIs(java.net.URI connectionUri,
boolean deep)
Returns a dataset containing all event uris belonging to the specified
connection.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listConnectionEventURIs(java.net.URI connectionUri,
int pageNum,
java.lang.Integer preferedSize,
WonMessageType messageType,
boolean deep)
Returns paged resource containing all event uris belonging to the specified
connection.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listConnectionEventURIsAfter(java.net.URI connectionUri,
java.net.URI msgURI,
java.lang.Integer preferedSize,
WonMessageType msgType,
boolean deep)
Returns a dataset containing all event uris belonging to the specified
connection that were created after the specified event uri.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> |
listConnectionEventURIsBefore(java.net.URI connectionUri,
java.net.URI msgURI,
java.lang.Integer preferedSize,
WonMessageType msgType,
boolean deep)
Returns a dataset containing all event uris belonging to the specified
connection that were created before the specified event uri.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listConnections(boolean deep)
Returns container dataset containing all connections.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listConnections(int page,
java.lang.Integer preferredSize,
java.util.Date timeSpot,
boolean deep)
Returns a resource containing connections at given page.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listConnections(int page,
java.net.URI atomURI,
java.lang.Integer preferredSize,
WonMessageType messageType,
java.util.Date timeSpot,
boolean deep,
boolean addMetadata)
Returns paged resource containing all connections belonging to the specified
atom.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listConnections(java.net.URI atomURI,
boolean deep,
boolean addMetadata)
Returns a model containing all connection uris belonging to the specified
atom.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listConnectionsAfter(java.net.URI afterConnURI,
java.lang.Integer preferredSize,
java.util.Date timeSpot,
boolean deep)
Returns a resource containing connections that follow (by time of their
latest event activities) the given connection as of state that was at the
specified time.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listConnectionsAfter(java.net.URI atomURI,
java.net.URI resumeConnURI,
java.lang.Integer preferredSize,
WonMessageType messageType,
java.util.Date timeSpot,
boolean deep,
boolean addMetadata)
Returns paged resource containing all connections belonging to the specified
atom that follows the given connection URI from the point of view of their
latest events.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listConnectionsBefore(java.net.URI beforeConnURI,
java.lang.Integer preferredSize,
java.util.Date timeSpot,
boolean deep)
Returns a resource containing connection uris that precede (by time of their
latest event activities) the given connection as of state that was at the
specified time.
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listConnectionsBefore(java.net.URI atomURI,
java.net.URI resumeConnURI,
java.lang.Integer preferredSize,
WonMessageType messageType,
java.util.Date timeSpot,
boolean deep,
boolean addMetadata)
Returns paged resource containing all connections belonging to the specified
atom that precede the given connection URI from the point of view of their
latest events.
|
org.apache.jena.query.Dataset |
listModifiedAtomURIsAfter(java.util.Date modifiedDate)
Returns container dataset containing all atoms that have been modified after
a certain date
|
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> |
listModifiedConnectionsAfter(java.util.Date modifiedAfter,
boolean deep)
Returns container dataset containing all connection URIs that where modified
after a certain date.
|
org.apache.jena.query.Dataset listAtomURIs()
AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listAtomURIs(int page)
page - AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listAtomURIs(int page, java.lang.Integer preferedSize, AtomState atomState)
page - preferedSize - preferred number of atom uris per page (null means use
default)atomState - AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listAtomURIsBefore(java.net.URI atom)
atom - AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listAtomURIsAfter(java.net.URI atom)
atom - AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listAtomURIsBefore(java.net.URI atom, java.lang.Integer preferedSize, AtomState atomState)
atom - preferedSize - preferred number of atom uris per page (null means use
default)atomState - AtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listAtomURIsAfter(java.net.URI atom, java.lang.Integer preferedSize, AtomState atomState)
atom - preferedSize - preferred number of atom uris per page (null means use
default)atomState - org.apache.jena.query.Dataset listModifiedAtomURIsAfter(java.util.Date modifiedDate)
modifiedDate - modification date of atomsAtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listConnections(boolean deep) throws NoSuchConnectionException
deep - NoSuchConnectionException - only in case deep is set to true and
connection data for a member connection uri cannot be retrieved.AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listModifiedConnectionsAfter(java.util.Date modifiedAfter, boolean deep) throws NoSuchConnectionException
modifiedAfter - modification datedeep - If deep is true, the resource data of those connection uris is
also part of the returned resource.NoSuchConnectionExceptionAtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listConnections(int page, java.lang.Integer preferredSize, java.util.Date timeSpot, boolean deep) throws NoSuchConnectionException
page - preferredSize - preferred number of connection uris per page (null means
use default)deep - NoSuchAtomExceptionNoSuchConnectionExceptionAtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listConnectionsBefore(java.net.URI beforeConnURI, java.lang.Integer preferredSize, java.util.Date timeSpot, boolean deep) throws NoSuchConnectionException
beforeConnURI - a connection the preceding connections of which we are
interested inpreferredSize - preferred number of connection uris per page (null means
use default)timeSpot - date and time that specifies the connections and events state
of interestdeep - if true, the resource data of those connection uris is also part
of the resourceNoSuchAtomExceptionNoSuchConnectionException - only in case deep is set to true and
connection data for a member connection uri cannot be retrieved.AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listConnectionsAfter(java.net.URI afterConnURI, java.lang.Integer preferredSize, java.util.Date timeSpot, boolean deep) throws NoSuchConnectionException
afterConnURI - a connection the following connections of which we are
interested inpreferredSize - preferred number of connection uris per page (null means
use default)timeSpot - date and time that specifies the connections and events state
of interestdeep - if true, the resource data of those connection uris is also part
of the resourceNoSuchAtomExceptionNoSuchConnectionException - only in case deep is set to true and
connection data for a member connection uri cannot be retrieved.AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listConnections(java.net.URI atomURI, boolean deep, boolean addMetadata) throws NoSuchAtomException, NoSuchConnectionException
atomURI - addMetadata - - if true, a metadata graph is added to the dataset
containing counts by connection statedeep - - if true, connection data is added (not only connection URIs)NoSuchAtomExceptionNoSuchConnectionExceptionAtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listConnections(int page, java.net.URI atomURI, java.lang.Integer preferredSize, WonMessageType messageType, java.util.Date timeSpot, boolean deep, boolean addMetadata) throws NoSuchAtomException, NoSuchConnectionException
page - numberpreferredSize - preferred number of connection uris per page (null means
use default)atomURI - local atom the connections of which are retrievedmessageType - the event type that should be used for defining connection
latest activity; null => all event typestimeSpot - time at which we want the list state to be fixeddeep - if true, the resource data of those connection uris is also part
of the resourceaddMetadata - - if true, a metadata graph is added to the dataset
containing counts by connection stateNoSuchAtomException - when specified atom is not foundNoSuchConnectionException - only in case deep is set to true and
connection data for a member connection uri cannot be retrieved.AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listConnectionsBefore(java.net.URI atomURI, java.net.URI resumeConnURI, java.lang.Integer preferredSize, WonMessageType messageType, java.util.Date timeSpot, boolean deep, boolean addMetadata) throws NoSuchAtomException, NoSuchConnectionException
atomURI - local atom the connections of which are retrievedresumeConnURI - the returned slice connections precede (in time of their
latest events) this connection uripreferredSize - preferred number of connection uris per page (null means
use default)messageType - the event type that should be used for defining connection
latest activity; null => all event typestimeSpot - time at which we want the list state to be fixeddeep - if true, the resource data of those connection uris is also part
of the resourceaddMetadata - - if true, a metadata graph is added to the dataset
containing counts by connection stateNoSuchAtomException - when specified atom is not foundNoSuchConnectionException - only in case deep is set to true and
connection data for a member connection uri cannot be retrieved.AtomInformationService.PagedResource<org.apache.jena.query.Dataset,Connection> listConnectionsAfter(java.net.URI atomURI, java.net.URI resumeConnURI, java.lang.Integer preferredSize, WonMessageType messageType, java.util.Date timeSpot, boolean deep, boolean addMetadata) throws NoSuchAtomException, NoSuchConnectionException
atomURI - local atom the connections of which are retrievedresumeConnURI - the returned slice connections follow (in time of their
latest events) this connection uripreferredSize - preferred number of connection uris per page (null means
use default)messageType - the event type that should be used for defining connection
latest activity; null => all event typestimeSpot - time at which we want the list state to be fixeddeep - if true, the resource data of those connection uris is also part
of the resourceaddMetadata - - if true, a metadata graph is added to the dataset
containing counts by connection stateNoSuchAtomException - when specified atom is not foundNoSuchConnectionException - only in case deep is set to true and
connection data for a member connection uri cannot be retrieved.DataWithEtag<org.apache.jena.query.Dataset> getAtomDataset(java.net.URI atomUri, java.lang.String etag)
atomUri - etag - org.apache.jena.query.Dataset getAtomDataset(java.net.URI atomUri,
boolean deep,
java.lang.Integer deepLayerSize)
throws NoSuchAtomException,
NoSuchConnectionException,
org.springframework.context.NoSuchMessageException
atomUri - deep - - include atom's connections datasets and each connection's
events' datasetsdeepLayerSize - - number of connections and events to include in the
deep atom datasetNoSuchAtomExceptionNoSuchConnectionExceptionorg.springframework.context.NoSuchMessageExceptionDataWithEtag<org.apache.jena.query.Dataset> getConnectionDataset(java.net.URI connectionUri, boolean includeMessageContainer, java.lang.String etag)
connectionUri - includeMessageContainer - etag - NoSuchConnectionExceptionorg.apache.jena.query.Dataset listConnectionEventURIs(java.net.URI connectionUri,
boolean deep)
throws NoSuchConnectionException
connectionUri - deep - - include events datasetNoSuchConnectionExceptionAtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listConnectionEventURIs(java.net.URI connectionUri, int pageNum, java.lang.Integer preferedSize, WonMessageType messageType, boolean deep) throws NoSuchConnectionException
connectionUri - connection parent of the eventspageNum - number of the page to be returnedpreferedSize - preferred number of uris per page, null means use defaultmessageType - message type, null means all typesdeep - NoSuchConnectionExceptionAtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listConnectionEventURIsAfter(java.net.URI connectionUri, java.net.URI msgURI, java.lang.Integer preferedSize, WonMessageType msgType, boolean deep) throws NoSuchConnectionException
connectionUri - connection parent of the eventsmsgURI - message to follow (in message creation time)preferedSize - preferred number of uris per page, null means use defaultmsgType - message type, null means all typesdeep - NoSuchConnectionExceptionAtomInformationService.PagedResource<org.apache.jena.query.Dataset,java.net.URI> listConnectionEventURIsBefore(java.net.URI connectionUri, java.net.URI msgURI, java.lang.Integer preferedSize, WonMessageType msgType, boolean deep) throws NoSuchConnectionException
connectionUri - connection parent of the eventsmsgURI - message to precede (in message creation time)preferedSize - preferred number of uris per page, null means use defaultmsgType - message type, null means all typesdeep - NoSuchConnectionExceptionorg.apache.jena.query.Dataset getNodeDataset()
DataWithEtag<org.apache.jena.query.Dataset> getDatasetForUri(java.net.URI eventURI, java.lang.String etag)
eventURI - org.apache.jena.rdf.model.Model getUnreadInformationForAtom(java.net.URI atomURI,
java.util.Collection<java.net.URI> lastSeenMessageURIs)
atomURI - lastSeenMessageURIs - Copyright © 2019. All Rights Reserved.