从 Schema.org 获取 JSON-LD 信息 [英] Get JSON-LD information from Schema.org

查看:70
本文介绍了从 Schema.org 获取 JSON-LD 信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以与在 中拥有 RDF 版本相同的方式获得 Schema.org 的 JSON-LD 表示http://topbraid.org/schema/.

我看到 Schema.org 的主页用 JSON-LD 表示,但没有 RDF 版本中的类型定义.

I see the main page of Schema.org is represented with JSON-LD, but there are not type definitions as there are in the RDF version.

对于第二个问题,如果 JSON-LD 解析器无法访问 JSON-LD 中的此类信息,它如何理解 Schema.org 的 Person 类型的属性?

For a second question, how can a JSON-LD parser understand the properties of a Schema.org's Person type if it cannot access to such information in JSON-LD?

推荐答案

Schema.org 的规范表示HTML+RDFa.

RDFa 与 JSON-LD 一样,是 RDF 序列化.如果需要,使用您最喜欢的 RDF 工具将 RDFa 转换为 JSON-LD 应该很容易.

RDFa is, like JSON-LD, a RDF serialization. It should be easy to convert from RDFa to JSON-LD with your favorite RDF tool, if needed.

https://schema.org/docs/tree.jsonld 下,一个 JSON-可以下载 LD 文件,它似乎描述了所有类型(但没有属性).(对应问题:添加整个类型层次结构的 JSON(-LD) 视图em>.)

Under https://schema.org/docs/tree.jsonld a JSON-LD file can be downloaded which seems to describe all types (but no properties). (Corresponding issue: Add a JSON(-LD) view of the entire type hierarchy.)

http://schema.org/docs/jsonldcontext.json 下,JSON-可以下载 LD 上下文文件,它似乎包含所有类型和属性.但它没有说明属性包含哪些域/范围.

Under http://schema.org/docs/jsonldcontext.json the JSON-LD context file can be downloaded which seems to contain all types and properties. But it doesn’t state which included domain/range the properties have.

问题添加更多导出格式(例如提供但在 schema.rdfs 已过时).org) 跟踪提供 RDFa 以外的其他格式的想法/计划.

The issue Add more export formats (e.g. as offered but obsolete at schema.rdfs.org) tracks ideas/plans to provide other formats than RDFa.

这篇关于从 Schema.org 获取 JSON-LD 信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆