Sha256: 854865ee68a824acfbea4dc0eaf77c785ee9a2de7eca71a308ef3a4bb4078530
Contents?: true
Size: 1.8 KB
Versions: 10
Compression:
Stored size: 1.8 KB
Contents
module OpenActive class JsonLdModel < BaseModel # Gets or sets the identifier used to uniquely identify things that are being described in the document with # IRIs or blank node identifiers. # To be able to externally reference nodes in a graph, it is important that nodes have an identifier. IRIs # are a fundamental concept of Linked Data, for nodes to be truly linked, dereferencing the identifier should # result in a representation of that node.This may allow an application to retrieve further information about # a node. In JSON-LD, a node is identified using the @id keyword: # # @return [string] attr_accessor :id property :id, as: "@id" property :type, as: "@type" # Gets the context used to define the short-hand names that are used throughout a JSON-LD document. # These short-hand names are called terms and help developers to express specific identifiers in a compact # manner. # When two people communicate with one another, the conversation takes place in a shared environment, # typically called "the context of the conversation". This shared context allows the individuals to use # shortcut terms, like the first name of a mutual friend, to communicate more quickly but without losing # accuracy. A context in JSON-LD works in the same way. It allows two applications to use shortcut terms to # communicate with one another more efficiently, but without losing accuracy. # Simply speaking, a context is used to map terms to IRIs. Terms are case sensitive and any valid string that # is not a reserved JSON-LD keyword can be used as a term. # # @return [Array<string>] define_property :context, types: ["string[]"], default: [ "https://openactive.io/", "https://openactive.io/ns-beta" ], as: false end end
Version data entries
10 entries across 10 versions & 1 rubygems