应用于schema.org的python函数
schemaorg的Python项目详细描述
#计划Python
本模块将为研究人员和用户提供应用schema.org的功能。 对他们的数据集、软件和其他世俗事物的定义。为了 使用python和web界面开发函数 提供已发布的规范,请参见[https://www.github.com/schemaorg/schemaorg](https://www.github.com/schemaorg/schemaorg)。
##这不是什么?
这个库不打算提供查询本体的高级功能, 而是访问定义并用它们标记内容。
##这是干什么的?
请参考[开发](https://openschemas.github.io/schemaorg/)文档 阅读我们正在研究的预期用例。
##组织
通常,我们从数据集和软件中提取元数据,然后 从schema.org将元数据转换为规范。我们最后生产的东西 可能是某种形式的json(例如json ld),可以嵌入到web中 页面或类似内容,用于增强搜索功能。因为特定的需要 Webby Place可能会有所不同,以及我们正在提取的数据类型,该模块提供 [模板](schemaorg/templates)目录中的“模板”。具体来说:
- The subfolders represent different use cases. For example, [templates/google](schemaorg/templates/google) has a simple html template, and a requirements file (called a recipe) to produce a Dataset and SoftwareSourceCode.
- Each subfolder, in an optional __init__.py file, also contains helper functions toward this goal. For example, the same google subfolder has such a file with a make_person function that users can quickly use to generate a person object.
- For each corresponding subfolder, there is generally an example in the [examples](examples) folder that also helps to see how it works.