Template:Class: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
(sorting of labels)
(added a few label languages)
Line 9: Line 9:
  <td width="400px">{{#if:{{{rdfs:label@en|}}}|{{{rdfs:label@en}}}|<span style="color:red">please define an English label</span>}}</td>
  <td width="400px">{{#if:{{{rdfs:label@en|}}}|{{{rdfs:label@en}}}|<span style="color:red">please define an English label</span>}}</td>
</tr>
</tr>
{{#if:{{{rdfs:label@ca|}}}|<tr>
{{#if:{{{rdfs:label@ar|}}}|<tr>
<td width="150px">rdfs:label@ar</td>
<td>{{{rdfs:label@ar}}}</td></tr>}} {{#if:{{{rdfs:label@bn|}}}|<tr>
<td width="150px">rdfs:label@bn</td>
<td>{{{rdfs:label@bn}}}</td></tr>}} {{#if:{{{rdfs:label@ca|}}}|<tr>
  <td width="150px">rdfs:label@ca</td>
  <td width="150px">rdfs:label@ca</td>
  <td>{{{rdfs:label@ca}}}</td></tr>}} {{#if:{{{rdfs:label@de|}}}|<tr>
  <td>{{{rdfs:label@ca}}}</td></tr>}} {{#if:{{{rdfs:label@cs|}}}|<tr>
<td width="150px">rdfs:label@cs</td>
<td>{{{rdfs:label@cs}}}</td></tr>}} {{#if:{{{rdfs:label@de|}}}|<tr>
  <td width="150px">rdfs:label@de</td>
  <td width="150px">rdfs:label@de</td>
  <td>{{{rdfs:label@de}}}</td></tr>}} {{#if:{{{rdfs:label@el|}}}|<tr>
  <td>{{{rdfs:label@de}}}</td></tr>}} {{#if:{{{rdfs:label@el|}}}|<tr>
Line 21: Line 27:
  <td>{{{rdfs:label@fr}}}</td></tr>}} {{#if:{{{rdfs:label@ga|}}}|<tr>
  <td>{{{rdfs:label@fr}}}</td></tr>}} {{#if:{{{rdfs:label@ga|}}}|<tr>
  <td width="150px">rdfs:label@ga</td>
  <td width="150px">rdfs:label@ga</td>
  <td>{{{rdfs:label@ga}}}</td></tr>}} {{#if:{{{rdfs:label@hr|}}}|<tr>
  <td>{{{rdfs:label@ga}}}</td></tr>}} {{#if:{{{rdfs:label@hi|}}}|<tr>
<td width="150px">rdfs:label@hi</td>
<td>{{{rdfs:label@hi}}}</td></tr>}} {{#if:{{{rdfs:label@hr|}}}|<tr>
  <td width="150px">rdfs:label@hr</td>
  <td width="150px">rdfs:label@hr</td>
  <td>{{{rdfs:label@hr}}}</td></tr>}} {{#if:{{{rdfs:label@hu|}}}|<tr>
  <td>{{{rdfs:label@hr}}}</td></tr>}} {{#if:{{{rdfs:label@hu|}}}|<tr>

Revision as of 11:10, 28 February 2012

The {{Class}} template can be used to define ontology classes.

Usage

{{Class 
| rdfs:label@en          =
| rdfs:label@..          =
| rdfs:comment@en        =
| rdfs:comment@..        =
| rdfs:subClassOf     =
| owl:equivalentClass =
| owl:disjointWith    =
| specificProperties  =
}}

Meanings

  • rdfs:label@en: should be defined to provide a human-readable version of a class name. Use ISO language code 639-1 (e.g. @en).
  • rdfs:comment@en: should be defined to provide a human-readable description of a class. Use ISO language code 639-1 (e.g. @en).
  • rdfs:subClassOf: is used to state that all the instances of one class are instances anothers.
  • owl:equivalentClass:
  • owl:disjointWith:
  • specificProperties: refine property units for this class using SpecificProperty template.

Example

The definition of the DBpedia ontology class Artist:

{{Class
| rdfs:label@en      = Artist
| rdfs:comment@en    =
| rdfs:subClassOf = Person
}}

It will be rendered to this table: This is the definition of an ontology class.

Show all properties available for this class.

Show class in class hierarchy.

Read more about editing the ontology schema.

You can see the result of your edit on DBpedia Live (this is BETA!): http://live.dbpedia.org/ontology/Class

Ontology class (help)
rdfs:label@en Artist
rdfs:comment@en
rdfs:subClassOf Person
owl:equivalentClass
owl:disjointWith