Interface ActivityPubObjectConvertable
public interface ActivityPubObjectConvertable
-
Method Summary
Modifier and TypeMethodDescriptionasActor()
isolated()
Removes all Triples from the underlaying graph that are no Triples ofActivityPubObject.getSubject()
.resolve
(org.apache.commons.rdf.api.IRI subject) AnActivityPubObject
wrappes a graph and is identified by it's subject.
-
Method Details
-
asActivity
Activity asActivity() -
asActor
Actor asActor() -
asTombstone
Tombstone asTombstone() -
resolve
AnActivityPubObject
wrappes a graph and is identified by it's subject. This resolve method uses the same underlaying graph, but switches the subject. This is meaningfull, if theActivityPubObject
is anActivity
and you want to resolve the object of theActivity
.- Parameters:
subject
- The subject of theActivityPubObject
to be resolved.- Returns:
- The resolved
ActivityPubObject
. TODO make this Optional and return empty in case there are no triples for the subkject !!!
-
isolated
ActivityPubObject isolated()Removes all Triples from the underlaying graph that are no Triples ofActivityPubObject.getSubject()
.- Returns:
- An
ActivityPubObject
that's graph only contain itÄs own triples.
-
asRevison
ActivityPubObject asRevison() -
asPublicKey
PublicKey asPublicKey() -
asEndpoints
Endpoints asEndpoints() -
asInstance
Instance asInstance() -
asOrderedCollectionPage
OrderedCollectionPage asOrderedCollectionPage()
-