Enum json_ld_syntax::Keyword
source · 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§
source§impl From<ContainerKind> for Keyword
impl From<ContainerKind> for Keyword
source§fn from(c: ContainerKind) -> Keyword
fn from(c: ContainerKind) -> Keyword
source§impl From<TypeKeyword> for Keyword
impl From<TypeKeyword> for Keyword
source§fn from(k: TypeKeyword) -> Self
fn from(k: TypeKeyword) -> Self
source§impl Ord for Keyword
impl Ord for Keyword
source§impl PartialEq for Keyword
impl PartialEq for Keyword
source§impl PartialOrd for Keyword
impl PartialOrd for Keyword
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<Keyword> for ContainerKind
impl TryFrom<Keyword> for ContainerKind
source§impl TryFrom<Keyword> for TypeKeyword
impl TryFrom<Keyword> for TypeKeyword
impl Copy for Keyword
impl Eq for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnwindSafe for Keyword
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
source§impl<T> CallHasher for T
impl<T> CallHasher for T
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.