githubEdit

📨Data Model Overview

Overview of the data models which can be used to structure metadata

This specification uses data models derived from standards such as schema.orgarrow-up-right to deliver structure to metadata and define some standard properties, which we use to describe metadata.

Schema.org

Schema.orgarrow-up-right is a collaborative, community activity on a mission to create, maintain, and promote schemas for structured data on the Internet and web pages, in email messages, and beyond. Schema.orgarrow-up-right had founded by the companies such as Google, Microsoft, Yahoo and Yandex.

Schema.org vocabularies are developed by an open communityarrow-up-right process, using the public-schemaorg@w3.orgarrow-up-right mailing list and through GitHubarrow-up-right. Often properties are added for some specific use case, and their potential relationship to other areas of schema.org only becomes apparent later. The acquisition of new properties gives rise to changes in textual definition and property-to-type associations that gradually make schema.org coherent without introducing radical changes in meaning. Consumers of schema.org data can generally rely on schema.org term meanings not changing dramatically; however, term definitions often evolve with time to accommodate new usage scenarios and improve usability. When schema.org properties are occasionally deprecated, they stay in the context that can still be used and referenced to their replacement property.

Using Data Models to Structure Metadata

Schema.orgarrow-up-right allows the structuring of data using JSON-LD format. JSON-LD is a JSON having an additional @context field. We use the same schema to structure metadata without the presence of this field.

Each data model possesses a type with the various supported attributes which a lightning web application can utilise to structure metadata. Data model types such as AudioObject, ImageObject, VideoObject and many more are present to structure metadata.

Use our data models of the suitable type to structure metadata in JSON format:

🌀Type Referencechevron-right

Eg.

let metadata: {};
metadata = {
 "type": "AudioObject",
 "name": "title",
 "creator": "artist",
 "image": "image" 
 }

To learn more about how to structure metadata for Bitcoin transactions:

📘Structure Metadata Using Data Modelschevron-right

Last updated