属性和类型

From semantic-mediawiki.org

属性和类型(数据类型)语义MediaWiki里输入语义数据的基本方式。属性可视作“wiki页面内值的分类”。它们可通过一种类似MediaWiki里链接语法的简单标记来使用:

[[属性名称::属性的值]]

该语句定义了有给定属性名称的属性的一个。使用该语句的页面只会显示的文本,而不会显示完整属性分配。

创建属性[edit]

创建注释[edit]

Annotations are generally referred to as assigning a value (e.g. 10, 1 Jan 1970, 1 km etc.) to a property hereby creating a value representation with a specific meaning (aka semantics).

  • In-text annotation explains in detail how to apply [[Property name::property value]] mark-up to a page
    • beware that according to 1, in future versions of MediaWiki (with Parsoid), this method might be deprecated.
  • Extra annotation explains in detail how to add {{#set: Property name=property value }} mark-up to a page
  • Inverse properties illustrates how a property with datatype Page can invert its direction

相关主题[edit]

  • Property links [[SomeProperty::@@@]] or [[SomeProperty::@@@en]]) allows creating local-specific links to property pages.
  • Parser functions contains a list of provided by Semantic MediaWiki and can be used to add more complex data such as recurring events, use of a "silent" annotation, or add subobject

References

  1. ^ gh:smw:4727