Interface ActivityPubStore
- All Known Implementing Classes:
ActivityPubStoreDefault
public interface ActivityPubStore
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
add
(ActivityPubObject ao1, String logMsg) void
addCollectionItem
(CollectionInfo collectionInfo, org.apache.commons.rdf.api.IRI item, String logMsg) org.apache.commons.rdf.api.Graph
dump
(org.apache.commons.rdf.api.IRI subject) find
(org.apache.commons.rdf.api.IRI subject) find
(org.apache.commons.rdf.api.IRI subject, int deep) Searches for theActivityPubObject
with the passed subject.find
(org.apache.commons.rdf.api.IRI subject, org.apache.commons.rdf.api.IRI predicate, org.apache.commons.rdf.api.RDFTerm object) Searches for theActivityPubObject
that matches the passed triple.find
(org.apache.commons.rdf.api.IRI predicate, org.apache.commons.rdf.api.RDFTerm object) Finds all subjects that match the passed predicate/object.Find object with the passed subjects in the actors store.Find object with the passed subjects in the actors store and resolve dependencies up to the passed depth.findCollection
(org.apache.commons.rdf.api.IRI member) Searches for Collections, where the passed member is a member of.findLatestRevision
(org.apache.commons.rdf.api.IRI pointerSubject) findWholeGraph
(org.apache.commons.rdf.api.IRI subject) ATTENTION!! This reads the whole grap of the actor !getCollection
(Collection<org.apache.commons.rdf.api.IRI> irisToResolve, org.apache.commons.rdf.api.IRI namedGraphToUse, Integer pageSize, Integer startIndex, Integer deep) List
<org.apache.commons.rdf.api.IRI> getCollection
(CollectionInfo collectionInfo) Set
<org.apache.commons.rdf.api.BlankNodeOrIRI> org.apache.commons.rdf.api.IRI
getOwner()
void
update
(ActivityPubObject ao1, String logMsg)
-
Method Details
-
add
-
add
-
update
-
addCollectionItem
void addCollectionItem(CollectionInfo collectionInfo, org.apache.commons.rdf.api.IRI item, String logMsg) -
getCollection
-
getCollection
OrderedCollectionPage getCollection(Collection<org.apache.commons.rdf.api.IRI> irisToResolve, org.apache.commons.rdf.api.IRI namedGraphToUse, Integer pageSize, Integer startIndex, Integer deep) -
findCollection
Searches for Collections, where the passed member is a member of.- Parameters:
member
-- Returns:
- List of Collections, where the passed member is a member of.
-
find
-
find
Searches for theActivityPubObject
with the passed subject.- Parameters:
subject
-deep
- up to which hierarchy level should object references be resolved ?- Returns:
- found
ActivityPubObject
.
-
find
Optional<ActivityPubObject> find(org.apache.commons.rdf.api.IRI subject, org.apache.commons.rdf.api.IRI predicate, org.apache.commons.rdf.api.RDFTerm object) Searches for theActivityPubObject
that matches the passed triple.- Parameters:
subject
-predicate
-object
-- Returns:
- found
ActivityPubObject
.
-
find
Set<ActivityPubObject> find(org.apache.commons.rdf.api.IRI predicate, org.apache.commons.rdf.api.RDFTerm object) Finds all subjects that match the passed predicate/object.- Parameters:
predicate
-object
-- Returns:
- Set of
ActivityPubObject
s that contains the predicate/object. NOTE theActivityPubObject
s have only one predicate!
-
findAll
Find object with the passed subjects in the actors store.- Parameters:
subjectsParam
- Subjects to search for.- Returns:
- Found
ActivityPubObject
s
-
findAll
Find object with the passed subjects in the actors store and resolve dependencies up to the passed depth.- Parameters:
subjectsParam
- Subjects to search for.deep
- up to which hierarchy level should object references be resolved ?- Returns:
- Found
ActivityPubObject
s
-
findLatestRevision
-
findWholeGraph
ATTENTION!! This reads the whole grap of the actor !- Parameters:
subject
-- Returns:
-
getOwner
org.apache.commons.rdf.api.IRI getOwner() -
dump
org.apache.commons.rdf.api.Graph dump(org.apache.commons.rdf.api.IRI subject) -
getGraphNames
Set<org.apache.commons.rdf.api.BlankNodeOrIRI> getGraphNames()- Returns:
Set
of all known graphNames.
-