JSR

An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken.

Constructors

Constructs a new instance of Activity with the given values.

Parameters

The values to initialize the instance with.

The options to use for initialization.

Static Properties

The type URI of Activity: https://www.w3.org/ns/activitystreams#Activity.

Static Methods

Converts a JSON-LD structure to an object of this type.

Properties

Similar to Activity.getActor, but returns its @id URL instead of the object itself.

Similar to Activity.getActors, but returns their @ids instead of the objects themselves.

Similar to Activity.getInstrument, but returns its @id URL instead of the object itself.

Similar to Activity.getInstruments, but returns their @ids instead of the objects themselves.

Similar to Activity.getObject, but returns its @id URL instead of the object itself.

Similar to Activity.getObjects, but returns their @ids instead of the objects themselves.

Similar to Activity.getOrigin, but returns its @id URL instead of the object itself.

Similar to Activity.getOrigins, but returns their @ids instead of the objects themselves.

Similar to Activity.getResult, but returns its @id URL instead of the object itself.

Similar to Activity.getResults, but returns their @ids instead of the objects themselves.

Similar to Activity.getTarget, but returns its @id URL instead of the object itself.

Similar to Activity.getTargets, but returns their @ids instead of the objects themselves.

Methods

Clones this instance, optionally updating it with the given values.

Describes one or more entities that either performed or are expected to perform the activity. Any single activity can have multiple actors. The actor MAY be specified using an indirect Link.

Describes one or more entities that either performed or are expected to perform the activity. Any single activity can have multiple actors. The actor MAY be specified using an indirect Link.

Identifies one or more objects used (or to be used) in the completion of an Activity.

Identifies one or more objects used (or to be used) in the completion of an Activity.

When used within an Activity, describes the direct object of the activity. For instance, in the activity "John added a movie to his wishlist", the object of the activity is the movie added.

When used within an Activity, describes the direct object of the activity. For instance, in the activity "John added a movie to his wishlist", the object of the activity is the movie added.

Describes an indirect object of the activity from which the activity is directed. The precise meaning of the origin is the object of the English preposition "from". For instance, in the activity "John moved an item to List B from List A", the origin of the activity is "List A".

Describes an indirect object of the activity from which the activity is directed. The precise meaning of the origin is the object of the English preposition "from". For instance, in the activity "John moved an item to List B from List A", the origin of the activity is "List A".

Describes the result of the activity. For instance, if a particular action results in the creation of a new resource, the result property can be used to describe that new resource.

Describes the result of the activity. For instance, if a particular action results in the creation of a new resource, the result property can be used to describe that new resource.

Describes the indirect object, or target, of the activity. The precise meaning of the target is largely dependent on the type of action being described but will often be the object of the English preposition "to". For instance, in the activity "John added a movie to his wishlist", the target of the activity is John's wishlist. An activity can have more than one target.

Describes the indirect object, or target, of the activity. The precise meaning of the target is largely dependent on the type of action being described but will often be the object of the English preposition "to". For instance, in the activity "John added a movie to his wishlist", the target of the activity is John's wishlist. An activity can have more than one target.

Converts this object to a JSON-LD structure.

Read the original on jsr.io ↗