pub enum Keyword {
Show 23 variants Base, Container, Context, Direction, Graph, Id, Import, Included, Index, Json, Language, List, Nest, None, Prefix, Propagate, Protected, Reverse, Set, Type, Value, Version, Vocab,
}
Expand description

JSON-LD keywords.

Variants§

§

Base

@base. Used to set the base IRI against which to resolve those relative IRI references which are otherwise interpreted relative to the document.

§

Container

@container. Used to set the default container type for a term.

§

Context

@context. Used to define the short-hand names that are used throughout a JSON-LD document.

§

Direction

@direction. Used to set the base direction of a JSON-LD value, which are not typed values. (e.g. strings, or language-tagged strings).

§

Graph

@graph. Used to express a graph.

§

Id

@id. Used to uniquely identify node objects that are being described in the document with IRIs or blank node identifiers.

§

Import

@import. Used in a context definition to load an external context within which the containing context definition is merged.

§

Included

@included. Used in a top-level node object to define an included block, for including secondary node objects within another node object.

§

Index

@index. Used to specify that a container is used to index information and that processing should continue deeper into a JSON data structure.

§

Json

@json. Used as the @type value of a JSON literal.

§

Language

@language. Used to specify the language for a particular string value or the default language of a JSON-LD document.

§

List

@list. Used to express an ordered set of data.

§

Nest

@nest. Used to define a property of a node object that groups together properties of that node, but is not an edge in the graph.

§

None

@none. Used as an index value in an index map, id map, language map, type map, or elsewhere where a map is used to index into other values, when the indexed node does not have the feature being indexed.

§

Prefix

@prefix. With the value true, allows this term to be used to construct a compact IRI when compacting.

§

Propagate

@propagate. Used in a context definition to change the scope of that context.

By default, it is true, meaning that contexts propagate across node objects (other than for type-scoped contexts, which default to false). Setting this to false causes term definitions created within that context to be removed when entering a new node object.

§

Protected

@protected. Used to prevent term definitions of a context to be overridden by other contexts.

§

Reverse

@reverse. Used to express reverse properties.

§

Set

@set. Used to express an unordered set of data and to ensure that values are always represented as arrays.

§

Type

@type. Used to set the type of a node or the datatype of a typed value.

§

Value

@value. Used to specify the data that is associated with a particular property in the graph.

§

Version

@version. Used in a context definition to set the processing mode.

§

Vocab

@vocab. Used to expand properties and values in @type with a common prefix IRI.

Implementations§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Wraps self inside a Meta<Self, M> using the given metadata. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Checks if this value is equivalent to the given key. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.