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
Contexts
All context objects that are either defined in this context, or inherited from the parent.
IEnumerable<JsonLDContextObject> Contexts { get; }
Property Value
LocalContexts
All context objects that are defined in this context, not inherited from the parent.
IEnumerable<JsonLDContextObject> LocalContexts { get; }
Property Value
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
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
Contains(JsonLDContextObject)
Checks if this context contains a specified context object.
bool Contains(JsonLDContextObject contextObject)
Parameters
contextObject
JsonLDContextObject
Returns
Contains(JsonLDTerm)
Checks if a given term is defined by any context object within this context.
bool Contains(JsonLDTerm term)
Parameters
term
JsonLDTerm