{"eip":7280,"title":"NFT Metadata Extension like JSON-LD","description":"Let NFT metadata have a feature equivalent to JSON-LD to be semantic.","authors":["Yohei Nishikubo (@yoheinishikubo)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2023-07-04","requires":[721,1155,3525],"discussionsTo":"https://ethereum-magicians.org/t/eip-7280-nft-metadata-extension-like-json-ld/14935","repo":"ERCs","label":"ERC-7280","officialUrl":"https://eips.ethereum.org/EIPS/eip-7280","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7280.md","url":"https://eips.huatuo.xyz/eip-7280/","tldr":{"en":"A draft extension to NFT metadata that adds a `linked_data` array pointing to schemas and data documents, so NFTs can carry structured, JSON-LD style semantic information.","ja":"NFT メタデータの拡張ドラフト。スキーマとデータ文書を指す `linked_data` 配列を追加し、NFT が JSON-LD 風の構造化されたセマンティック情報を持てるようにする。","ko":"NFT 메타데이터 확장 초안. 스키마와 데이터 문서를 가리키는 `linked_data` 배열을 추가해, NFT가 JSON-LD 스타일의 구조화된 시맨틱 정보를 담을 수 있게 한다.","zh":"NFT 元数据的一个扩展草案，新增 `linked_data` 数组指向 schema 和数据文档，使 NFT 能够携带结构化的、JSON-LD 风格的语义信息。"},"tags":["nft","metadata","json-ld","semantic"],"explainers":{"en":{"lang":"en","tldr":"A draft extension to NFT metadata that adds a `linked_data` array pointing to schemas and data documents, so NFTs can carry structured, JSON-LD style semantic information.","tags":["nft","metadata","json-ld","semantic"],"related":[721,1155,3525],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7280/","markdown":"## What problem does it solve?\n\nNFT metadata (the JSON returned by `tokenURI` in [ERC-721](/eip-721/) or `uri` in [ERC-1155](/eip-1155/)) is mostly a flat set of fields: `name`, `description`, `image`, and free-form `attributes`. There is no standard way to say \"this token is a video, and here is its data described by this schema\", so applications cannot reliably interpret richer information.\n\nERC-7280 borrows the idea of JSON-LD (linked data): the metadata points to a schema and to a data document that follows it. Any application that understands a given schema can then use the data, and a website showing the NFT could embed the linked JSON-LD in its HTML head so search engines can produce rich results.\n\n## How it works\n\nThe proposal adds one optional key, `linked_data`, to the existing metadata JSON. It is an **array**, so one NFT can describe itself with several schemas at once. Each element has two required objects:\n\n| Object | Field | Required | Meaning |\n| --- | --- | --- | --- |\n| `schema` | `uri` | yes | Where the schema lives |\n| `schema` | `name` | yes | Name of the schema (e.g. `VideoObject`) |\n| `schema` | `description` | no | Human description of the schema |\n| `data` | `uri` | yes | Where the data document lives |\n| `data` | `lang` | no | IETF language tag such as `en-US` |\n| `data` | `name`, `description` | no | Optional labels for the data |\n\nA consumer scans `linked_data`, picks entries whose schema it recognises, fetches `data.uri`, and uses the result. Everything else in the metadata stays the same, so existing wallets and marketplaces simply ignore the new key.\n\n## Sample code\n\nMetadata with one linked-data entry:\n\n```json\n{\n  \"name\": \"Concert Clip #12\",\n  \"description\": \"Short video from the 2024 tour.\",\n  \"image\": \"https://example.org/images/12.png\",\n  \"linked_data\": [\n    {\n      \"schema\": {\n        \"name\": \"VideoObject\",\n        \"uri\": \"https://example.org/schemas/VideoObject.json\"\n      },\n      \"data\": {\n        \"uri\": \"https://example.org/data/clip12.json\",\n        \"lang\": \"en-US\"\n      }\n    }\n  ]\n}\n```\n\nReading it in TypeScript (ethers v6) and picking a schema the app understands:\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst nft = new Contract(nftAddress, [\"function tokenURI(uint256) view returns (string)\"], provider);\n\nconst meta = await (await fetch(await nft.tokenURI(12n))).json();\nconst video = (meta.linked_data ?? []).find((e: any) =\u003e e.schema?.name === \"VideoObject\");\nif (video) {\n  const data = await (await fetch(video.data.uri)).json();\n  console.log(\"linked video data:\", data);\n}\n```\n\n## Things to know\n\n- **Status: Draft.** Field names and structure may still change, and there is no guarantee that wallets or marketplaces read `linked_data`.\n- Despite the name, the format is \"like\" JSON-LD: the schema and data are referenced by URI rather than being an inline `@context` document.\n- The spec lists [ERC-721](/eip-721/), [ERC-1155](/eip-1155/) and [ERC-3525](/eip-3525/) as base standards; any token whose metadata is JSON can use it.\n- Linked documents are fetched from external URIs. Treat them as untrusted input: validate them against the schema and be careful when embedding them into web pages.\n- If the linked URIs are on mutable web servers, the NFT's meaning can change after minting. Content-addressed storage avoids that.\n"},"ja":{"lang":"ja","tldr":"NFT メタデータの拡張ドラフト。スキーマとデータ文書を指す `linked_data` 配列を追加し、NFT が JSON-LD 風の構造化されたセマンティック情報を持てるようにする。","tags":["nft","metadata","json-ld","semantic"],"related":[721,1155,3525],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7280/","markdown":"## 何を解決するのか\n\nNFT のメタデータ（[ERC-721](/eip-721/) の `tokenURI` や [ERC-1155](/eip-1155/) の `uri` が返す JSON）は、ほとんどが `name`、`description`、`image`、自由形式の `attributes` といったフラットなフィールドの集まりです。「このトークンは動画で、そのデータはこのスキーマで記述されている」と表現する標準的な方法がないため、アプリケーションはより豊かな情報を確実に解釈できません。\n\nERC-7280 は JSON-LD（リンクトデータ）の考え方を借ります。メタデータが、スキーマと、それに従うデータ文書を指し示します。そのスキーマを理解するアプリケーションならデータを利用でき、NFT を表示する Web サイトは、リンクされた JSON-LD を HTML の head に埋め込んで、検索エンジンがリッチリザルトを生成できるようにできます。\n\n## 仕組み\n\nこの提案は、既存のメタデータ JSON に任意のキー `linked_data` を 1 つ追加します。これは**配列**なので、1 つの NFT が複数のスキーマで同時に自分自身を記述できます。各要素には 2 つの必須オブジェクトがあります。\n\n| オブジェクト | フィールド | 必須 | 意味 |\n| --- | --- | --- | --- |\n| `schema` | `uri` | はい | スキーマの場所 |\n| `schema` | `name` | はい | スキーマの名前（例: `VideoObject`） |\n| `schema` | `description` | いいえ | スキーマの人間向けの説明 |\n| `data` | `uri` | はい | データ文書の場所 |\n| `data` | `lang` | いいえ | `en-US` などの IETF 言語タグ |\n| `data` | `name`, `description` | いいえ | データの任意のラベル |\n\nコンシューマーは `linked_data` を走査し、認識できるスキーマのエントリを選び、`data.uri` を取得して結果を利用します。メタデータのそれ以外の部分は変わらないため、既存のウォレットやマーケットプレイスは新しいキーを単に無視します。\n\n## サンプルコード\n\nlinked-data エントリを 1 つ含むメタデータ:\n\n```json\n{\n  \"name\": \"Concert Clip #12\",\n  \"description\": \"Short video from the 2024 tour.\",\n  \"image\": \"https://example.org/images/12.png\",\n  \"linked_data\": [\n    {\n      \"schema\": {\n        \"name\": \"VideoObject\",\n        \"uri\": \"https://example.org/schemas/VideoObject.json\"\n      },\n      \"data\": {\n        \"uri\": \"https://example.org/data/clip12.json\",\n        \"lang\": \"en-US\"\n      }\n    }\n  ]\n}\n```\n\nTypeScript（ethers v6）で読み取り、アプリが理解できるスキーマを選ぶ例:\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst nft = new Contract(nftAddress, [\"function tokenURI(uint256) view returns (string)\"], provider);\n\nconst meta = await (await fetch(await nft.tokenURI(12n))).json();\nconst video = (meta.linked_data ?? []).find((e: any) =\u003e e.schema?.name === \"VideoObject\");\nif (video) {\n  const data = await (await fetch(video.data.uri)).json();\n  console.log(\"linked video data:\", data);\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** フィールド名や構造は変わる可能性があり、ウォレットやマーケットプレイスが `linked_data` を読む保証はありません。\n- 名前に反して、このフォーマットは JSON-LD「のよう」なものです。スキーマとデータはインラインの `@context` 文書ではなく URI で参照されます。\n- 仕様は [ERC-721](/eip-721/)、[ERC-1155](/eip-1155/)、[ERC-3525](/eip-3525/) をベース標準として挙げています。メタデータが JSON であればどのトークンでも使えます。\n- リンクされた文書は外部の URI から取得されます。信頼できない入力として扱い、スキーマに照らして検証し、Web ページに埋め込む際は注意してください。\n- リンク先の URI が変更可能な Web サーバー上にあると、ミント後に NFT の意味が変わりうります。コンテンツアドレス型のストレージならこれを避けられます。\n"},"ko":{"lang":"ko","tldr":"NFT 메타데이터 확장 초안. 스키마와 데이터 문서를 가리키는 `linked_data` 배열을 추가해, NFT가 JSON-LD 스타일의 구조화된 시맨틱 정보를 담을 수 있게 한다.","tags":["nft","metadata","json-ld","semantic"],"related":[721,1155,3525],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7280/","markdown":"## 어떤 문제를 해결하나요?\n\nNFT 메타데이터([ERC-721](/eip-721/)의 `tokenURI` 또는 [ERC-1155](/eip-1155/)의 `uri`가 반환하는 JSON)는 대부분 `name`, `description`, `image`, 자유 형식의 `attributes` 같은 평평한 필드 모음입니다. \"이 토큰은 동영상이고, 그 데이터는 이 스키마로 기술되어 있다\"라고 말하는 표준 방식이 없어서, 애플리케이션이 더 풍부한 정보를 안정적으로 해석할 수 없습니다.\n\nERC-7280은 JSON-LD(링크드 데이터)의 아이디어를 빌려 옵니다. 메타데이터가 스키마와 그 스키마를 따르는 데이터 문서를 가리킵니다. 그러면 해당 스키마를 이해하는 모든 애플리케이션이 데이터를 사용할 수 있고, NFT를 보여 주는 웹사이트는 링크된 JSON-LD를 HTML head에 넣어 검색 엔진이 리치 결과를 만들 수 있게 할 수 있습니다.\n\n## 어떻게 동작하나요?\n\n이 제안은 기존 메타데이터 JSON에 선택적 키 `linked_data` 하나를 추가합니다. 이는 **배열**이므로 하나의 NFT가 여러 스키마로 동시에 자신을 기술할 수 있습니다. 각 요소에는 두 개의 필수 객체가 있습니다.\n\n| 객체 | 필드 | 필수 | 의미 |\n| --- | --- | --- | --- |\n| `schema` | `uri` | 예 | 스키마가 있는 위치 |\n| `schema` | `name` | 예 | 스키마 이름(예: `VideoObject`) |\n| `schema` | `description` | 아니요 | 스키마에 대한 사람용 설명 |\n| `data` | `uri` | 예 | 데이터 문서가 있는 위치 |\n| `data` | `lang` | 아니요 | `en-US` 같은 IETF 언어 태그 |\n| `data` | `name`, `description` | 아니요 | 데이터에 대한 선택적 레이블 |\n\n소비하는 쪽은 `linked_data`를 훑어 인식하는 스키마의 항목을 고르고, `data.uri`를 가져와 결과를 사용합니다. 메타데이터의 나머지는 그대로이므로 기존 지갑과 마켓플레이스는 새 키를 그냥 무시합니다.\n\n## 샘플 코드\n\nlinked-data 항목이 하나 있는 메타데이터:\n\n```json\n{\n  \"name\": \"Concert Clip #12\",\n  \"description\": \"Short video from the 2024 tour.\",\n  \"image\": \"https://example.org/images/12.png\",\n  \"linked_data\": [\n    {\n      \"schema\": {\n        \"name\": \"VideoObject\",\n        \"uri\": \"https://example.org/schemas/VideoObject.json\"\n      },\n      \"data\": {\n        \"uri\": \"https://example.org/data/clip12.json\",\n        \"lang\": \"en-US\"\n      }\n    }\n  ]\n}\n```\n\nTypeScript(ethers v6)로 읽어서 앱이 이해하는 스키마를 고르는 예제:\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst nft = new Contract(nftAddress, [\"function tokenURI(uint256) view returns (string)\"], provider);\n\nconst meta = await (await fetch(await nft.tokenURI(12n))).json();\nconst video = (meta.linked_data ?? []).find((e: any) =\u003e e.schema?.name === \"VideoObject\");\nif (video) {\n  const data = await (await fetch(video.data.uri)).json();\n  console.log(\"linked video data:\", data);\n}\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 필드 이름과 구조는 바뀔 수 있으며, 지갑이나 마켓플레이스가 `linked_data`를 읽는다는 보장은 없습니다.\n- 이름과 달리 이 형식은 JSON-LD \"비슷한\" 것입니다. 스키마와 데이터는 인라인 `@context` 문서가 아니라 URI로 참조됩니다.\n- 사양은 [ERC-721](/eip-721/), [ERC-1155](/eip-1155/), [ERC-3525](/eip-3525/)를 기반 표준으로 나열합니다. 메타데이터가 JSON인 토큰이라면 어떤 토큰이든 사용할 수 있습니다.\n- 링크된 문서는 외부 URI에서 가져옵니다. 신뢰할 수 없는 입력으로 취급하고, 스키마에 맞춰 검증하며, 웹 페이지에 넣을 때는 주의하세요.\n- 링크된 URI가 변경 가능한 웹 서버에 있으면 발행 후에 NFT의 의미가 바뀔 수 있습니다. 콘텐츠 주소 기반 스토리지를 쓰면 이를 피할 수 있습니다.\n"},"zh":{"lang":"zh","tldr":"NFT 元数据的一个扩展草案，新增 `linked_data` 数组指向 schema 和数据文档，使 NFT 能够携带结构化的、JSON-LD 风格的语义信息。","tags":["nft","metadata","json-ld","semantic"],"related":[721,1155,3525],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7280/","markdown":"## 它解决什么问题？\n\nNFT 元数据（[ERC-721](/eip-721/) 中 `tokenURI` 返回的 JSON，或 [ERC-1155](/eip-1155/) 中的 `uri`）大多是一组扁平的字段：`name`、`description`、`image` 以及自由格式的 `attributes`。没有标准方式可以表达\"这个代币是一段视频，它的数据按这个 schema 描述\"，因此应用无法可靠地解读更丰富的信息。\n\nERC-7280 借用了 JSON-LD（链接数据）的思路：元数据指向一个 schema 和一个遵循该 schema 的数据文档。任何理解某个 schema 的应用就可以使用这些数据，展示 NFT 的网站还可以把链接的 JSON-LD 嵌入 HTML 的 head 中，让搜索引擎生成富结果。\n\n## 它如何运作\n\n该提案在现有元数据 JSON 中新增一个可选键 `linked_data`。它是一个**数组**，所以一个 NFT 可以同时用多个 schema 描述自己。每个元素有两个必需的对象：\n\n| 对象 | 字段 | 必需 | 含义 |\n| --- | --- | --- | --- |\n| `schema` | `uri` | 是 | schema 所在位置 |\n| `schema` | `name` | 是 | schema 的名称（例如 `VideoObject`） |\n| `schema` | `description` | 否 | schema 的人类可读说明 |\n| `data` | `uri` | 是 | 数据文档所在位置 |\n| `data` | `lang` | 否 | IETF 语言标签，例如 `en-US` |\n| `data` | `name`, `description` | 否 | 数据的可选标签 |\n\n消费方扫描 `linked_data`，挑出 schema 为自己所认识的条目，获取 `data.uri` 并使用结果。元数据中的其余内容保持不变，所以现有的钱包和市场只会忽略这个新键。\n\n## 示例代码\n\n带有一个 linked-data 条目的元数据：\n\n```json\n{\n  \"name\": \"Concert Clip #12\",\n  \"description\": \"Short video from the 2024 tour.\",\n  \"image\": \"https://example.org/images/12.png\",\n  \"linked_data\": [\n    {\n      \"schema\": {\n        \"name\": \"VideoObject\",\n        \"uri\": \"https://example.org/schemas/VideoObject.json\"\n      },\n      \"data\": {\n        \"uri\": \"https://example.org/data/clip12.json\",\n        \"lang\": \"en-US\"\n      }\n    }\n  ]\n}\n```\n\n在 TypeScript（ethers v6）中读取它，并挑选应用能理解的 schema：\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst nft = new Contract(nftAddress, [\"function tokenURI(uint256) view returns (string)\"], provider);\n\nconst meta = await (await fetch(await nft.tokenURI(12n))).json();\nconst video = (meta.linked_data ?? []).find((e: any) =\u003e e.schema?.name === \"VideoObject\");\nif (video) {\n  const data = await (await fetch(video.data.uri)).json();\n  console.log(\"linked video data:\", data);\n}\n```\n\n## 需要注意\n\n- **状态：Draft。** 字段名和结构仍可能变化，也不保证钱包或市场会读取 `linked_data`。\n- 尽管名字如此，这种格式只是\"类似\"JSON-LD：schema 和数据通过 URI 引用，而不是内联的 `@context` 文档。\n- 规范把 [ERC-721](/eip-721/)、[ERC-1155](/eip-1155/) 和 [ERC-3525](/eip-3525/) 列为基础标准；任何元数据为 JSON 的代币都可以使用它。\n- 被链接的文档是从外部 URI 获取的。请将其视为不可信输入：按 schema 校验，并在把它们嵌入网页时格外小心。\n- 如果被链接的 URI 位于可变的 Web 服务器上，NFT 的含义在铸造之后可能会改变。内容寻址存储可以避免这一点。\n"}}}
