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.
Activity(values: { id?: URL | null; attachments?: ()[]; attribution?: ; attributions?: ()[]; audience?: ; audiences?: (Object | URL)[]; content?: ; contents?: ((string | LanguageString))[]; contexts?: ()[]; name?: ; names?: ((string | LanguageString))[]; endTime?: Temporal.Instant | null; generators?: ()[]; icon?: ; icons?: (Image | URL)[]; image?: ; images?: (Image | URL)[]; replyTarget?: ; replyTargets?: ()[]; location?: ; locations?: ()[]; preview?: ; previews?: ()[]; published?: Temporal.Instant | null; replies?: ; startTime?: Temporal.Instant | null; summary?: ; summaries?: ((string | LanguageString))[]; tags?: ()[]; updated?: Temporal.Instant | null; url?: ; urls?: ((URL | Link))[]; to?: ; tos?: (Object | URL)[]; bto?: ; btos?: (Object | URL)[]; cc?: ; ccs?: (Object | URL)[]; bcc?: ; bccs?: (Object | URL)[]; mediaType?: string | null; duration?: Temporal.Duration | null; sensitive?: boolean | null; source?: Source | null; proof?: ; proofs?: (DataIntegrityProof | URL)[]; actor?: ; actors?: ()[]; object?: ; objects?: (Object | URL)[]; target?: ; targets?: (Object | URL)[]; result?: ; results?: (Object | URL)[]; origin?: ; origins?: (Object | URL)[]; instrument?: ; instruments?: (Object | URL)[]; },unnamed 1?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },)
Constructs a new instance of Activity with the given values.
Similar to
Activity.getActor,
but returns its @id
URL instead of the object itself.
Similar to
Activity.getActors,
but returns their @id
s instead of the objects themselves.
instrumentId: URL | null
Similar to
Activity.getInstrument,
but returns its @id
URL instead of the object itself.
instrumentIds: URL[]
Similar to
Activity.getInstruments,
but returns their @id
s 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 @id
s 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 @id
s 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 @id
s instead of the objects themselves.
Similar to
Activity.getTarget,
but returns its @id
URL instead of the object itself.
[Symbol.for("Deno.customInspect")](inspect: Deno.inspect,options: Deno.InspectOptions,): string
_getCustomInspectProxy(): Record<string, unknown>
clone(values?: { id?: URL | null; attachments?: ()[]; attribution?: ; attributions?: ()[]; audience?: ; audiences?: (Object | URL)[]; content?: ; contents?: ((string | LanguageString))[]; contexts?: ()[]; name?: ; names?: ((string | LanguageString))[]; endTime?: Temporal.Instant | null; generators?: ()[]; icon?: ; icons?: (Image | URL)[]; image?: ; images?: (Image | URL)[]; replyTarget?: ; replyTargets?: ()[]; location?: ; locations?: ()[]; preview?: ; previews?: ()[]; published?: Temporal.Instant | null; replies?: ; startTime?: Temporal.Instant | null; summary?: ; summaries?: ((string | LanguageString))[]; tags?: ()[]; updated?: Temporal.Instant | null; url?: ; urls?: ((URL | Link))[]; to?: ; tos?: (Object | URL)[]; bto?: ; btos?: (Object | URL)[]; cc?: ; ccs?: (Object | URL)[]; bcc?: ; bccs?: (Object | URL)[]; mediaType?: string | null; duration?: Temporal.Duration | null; sensitive?: boolean | null; source?: Source | null; proof?: ; proofs?: (DataIntegrityProof | URL)[]; actor?: ; actors?: ()[]; object?: ; objects?: (Object | URL)[]; target?: ; targets?: (Object | URL)[]; result?: ; results?: (Object | URL)[]; origin?: ; origins?: (Object | URL)[]; instrument?: ; instruments?: (Object | URL)[]; },options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },): Activity
Clones this instance, optionally updating it with the given values.
getActor(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): Promise<>
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.
getActors(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): AsyncIterable<>
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.
getInstrument(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): Promise<Object | null>
Identifies one or more objects used (or to be used) in the completion of an Activity.
getInstruments(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): AsyncIterable<Object>
Identifies one or more objects used (or to be used) in the completion of an Activity.
getObject(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): Promise<Object | null>
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.
getObjects(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): AsyncIterable<Object>
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.
getOrigin(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): Promise<Object | null>
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".
getOrigins(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): AsyncIterable<Object>
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".
getResult(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): Promise<Object | null>
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.
getResults(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): AsyncIterable<Object>
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.
getTarget(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): Promise<Object | null>
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.
getTargets(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): AsyncIterable<Object>
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.
fromJsonLd(json: unknown,options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },): Promise<Activity>
Converts a JSON-LD structure to an object of this type.