Table of Contents

Interface IJsonLDContext

Namespace
ActivityPub.Types.Util
Assembly
ActivityPub.Types.dll

A JSON-LD context. Contains a set of context objects.

public interface IJsonLDContext : IReadOnlyCollection<JsonLDContextObject>, IEnumerable<JsonLDContextObject>, IEnumerable
Inherited Members

Properties

ActivityStreams

Immutable, shared reference to the ActivityStreams (ActivityPub) context.

public static IJsonLDContext ActivityStreams { get; }

Property Value

IJsonLDContext

Contexts

All context objects that are either defined in this context, or inherited from the parent.

IEnumerable<JsonLDContextObject> Contexts { get; }

Property Value

IEnumerable<JsonLDContextObject>

LocalContexts

All context objects that are defined in this context, not inherited from the parent.

IEnumerable<JsonLDContextObject> LocalContexts { get; }

Property Value

IEnumerable<JsonLDContextObject>

Parent

Parent context that this one derives from. All context objects in the parent are automatically inherited by the child and will appear in Contexts.

IJsonLDContext? Parent { get; }

Property Value

IJsonLDContext

Methods

Contains(IJsonLDContext)

Checks if this context contains all objects from another. In other words, returns true if this context is a proper superset of the provided context.

bool Contains(IJsonLDContext context)

Parameters

context IJsonLDContext

Returns

bool

Contains(JsonLDContextObject)

Checks if this context contains a specified context object.

bool Contains(JsonLDContextObject contextObject)

Parameters

contextObject JsonLDContextObject

Returns

bool

Contains(JsonLDTerm)

Checks if a given term is defined by any context object within this context.

bool Contains(JsonLDTerm term)

Parameters

term JsonLDTerm

Returns

bool

See Also