Table of Contents

Class ContextEntity

Namespace
ROCrates.Models
Assembly
ROCrates.Net.dll
public class ContextEntity : Entity
Inheritance
ContextEntity
Derived
Inherited Members

Constructors

ContextEntity()

public ContextEntity()

ContextEntity(ROCrate?, string?, JsonObject?)

public ContextEntity(ROCrate? crate = null, string? identifier = null, JsonObject? properties = null)

Parameters

crate ROCrate
identifier string
properties JsonObject

Methods

Deserialize(string, ROCrate)

Create a ContextEntity from JSON properties.

public static ContextEntity? Deserialize(string entityJson, ROCrate roCrate)

Parameters

entityJson string

The JSON representing the ContextEntity

roCrate ROCrate

The RO-Crate for the ContextEntity

Returns

ContextEntity

The deserialised ContextEntity

Serialize()

Convert ContextEntity to JSON string.

public override string Serialize()

Returns

string

The ContextEntity as a JSON string.