Schnittstelle ActivityPubObjectRevision


public interface ActivityPubObjectRevision
ActivityPubObjectRevision is a collection of ActivityPubObjects.
There always (after initialization) MUST be one object in the graph, that this the root object, means that is not referenced by other objects in the contained ActivityPubObjects.
All contained ActivityPubObjects has the same identifier and version.

Sample of a ActivityPubObjectRevision with identifier '9d317daca74246d4be41b1a37e30ee2a' and version '0' (in Turtle Format):

 <http://example.com_0> a <https://schema.org/CreativeWork>, <https://www.w3.org/ns/activitystreams#Object>;
 	<https://schema.org/name> "Teikei Gemeinschaft München Trudering";
 	<https://schema.org/creativeWorkStatus> "todo";
 	<https://www.w3.org/ns/activitystreams#name> "Teikei Gemeinschaft München Trudering";
 	<https://www.w3.org/ns/activitystreams#to> <https://www.w3.org/ns/activitystreams#Public>;
 	<https://schema.org/description> "Verbrauchsgemeinschaft für solidarischen und gesegelten Kaffee. Hier kannst du ökologisch und sozial anspruchsvollen Kaffee bestellen und dich mit anderen Enthusiast*innen von gutem und nachhaltigen Kaffee austauschen. Bestelle schnell und einfach mit Klick auf unsere Homepage.";
 	<https://schema.org/identifier> "9d317daca74246d4be41b1a37e30ee2a";
 	<https://schema.org/license> "CC0-1.0";
 	<https://schema.org/version> "0"^^<http://www.w3.org/2001/XMLSchema#long>;
 	<https://schema.org/about> <http://example.com_0_organisation>;
 	<https://schema.org/keywords> "non-profit", "teikei", "teikei-gemeinschaft";
 	<https://schema.org/dateCreated> "2021-11-22T09:08:31.273"^^<http://www.w3.org/2001/XMLSchema#dateTime>;
 	<https://schema.org/dateModified> "2023-02-04T11:46:45.975290975"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
 
 <http://example.com_0_organisation> a <https://schema.org/Organization>, <https://www.w3.org/ns/activitystreams#Object>;
 	<https://schema.org/name> "Teikei Gemeinschaft München Trudering";
 	<https://schema.org/contactPoint> <http://example.com_0_contactPoint>;
 	<https://schema.org/location> <http://example.com_0_place>;
 	<https://schema.org/identifier> "9d317daca74246d4be41b1a37e30ee2a";
 	<https://schema.org/version> "0"^^<http://www.w3.org/2001/XMLSchema#long> .
 
 <http://example.com_0_place> a <https://schema.org/Place>, <https://www.w3.org/ns/activitystreams#Object>;
 	<https://schema.org/latitude> 4.813284429168927E1;
 	<https://schema.org/longitude> 1.1676090784220067E1;
 	<https://schema.org/address> <http://example.com_0_postalAddress>;
 	<https://schema.org/identifier> "9d317daca74246d4be41b1a37e30ee2a";
 	<https://schema.org/version> "0"^^<http://www.w3.org/2001/XMLSchema#long> .
 	
 <http://example.com_0_postalAddress> a <https://schema.org/PostalAddress>, <https://www.w3.org/ns/activitystreams#Object>;
 	<https://schema.org/identifier> "9d317daca74246d4be41b1a37e30ee2a";
 	<https://schema.org/version> "0"^^<http://www.w3.org/2001/XMLSchema#long>;
 	<https://schema.org/addressLocality> "München";
 	<https://schema.org/streetAddress> "Linnenbrüggerstrasse  13";
 	<https://schema.org/postalCode> "81829" .
 
 <http://example.com_0_contactPoint> a <https://schema.org/ContactPoint>, <https://www.w3.org/ns/activitystreams#Object>;
 	<https://schema.org/identifier> "9d317daca74246d4be41b1a37e30ee2a";
 	<https://schema.org/version> "0"^^<http://www.w3.org/2001/XMLSchema#long>;
 	<https://schema.org/email> "muenchen-trudering@teikei.community";
 	<https://schema.org/name> " ";
 	<https://schema.org/telephone> "" .
 
 
  • Methodendetails

    • add

      void add(ActivityPubObject activityPubObject)
      Parameter:
      activityPubObject -
    • getRoot

      Find the one object in the graph, that is not referenced by others and is a entrypoint in the graph. From an activity perspective.
      Gibt zurück:
      The unreferenced root object.
    • addAttributedTo

      void addAttributedTo(IRI actorIri)
    • unify

      void unify(Activity activity)
      Make sure, that all receivers are equal over all objects in the graph including the activity. See https://www.w3.org/TR/activitypub/#client-addressing
      Parameter:
      activity - The data that the client was sending
    • replaceSubject

      Map<IRI,IRI> replaceSubject(IRI actorIri)
    • replaceReferences

      void replaceReferences(Map<IRI,IRI> mappings)
    • stream

    • getActivityPubObjects

      List<ActivityPubObject> getActivityPubObjects()
    • getVersion

      BigInteger getVersion()
    • getIdentifier

      String getIdentifier()
    • get

    • isEmpty

      boolean isEmpty()