Difference between revisions of "Template:Property"

From Wikispooks
Jump to navigation Jump to search
(An effort to pin down the RDF)
 
(prettify)
Line 7: Line 7:
 
|{{t|domain}}        = description of the domain of the property (which subjects it applies to)
 
|{{t|domain}}        = description of the domain of the property (which subjects it applies to)
 
|{{t|range}}        = description of the range of the property (which values it can take)
 
|{{t|range}}        = description of the range of the property (which values it can take)
|{{t|type}}          = the property type
+
|{{t|type}}          = the property type <!--
<!--|member        = a member of the subject resource
+
|{{t|member}}       = a member of the subject resource
 
|{{t|seeAlso}}      = further information about the subject resource
 
|{{t|seeAlso}}      = further information about the subject resource
 
|{{t|isDefinedBy}}  = the definition of the subject resource-->
 
|{{t|isDefinedBy}}  = the definition of the subject resource-->
Line 19: Line 19:
 
|-
 
|-
 
|RDF Logic:  
 
|RDF Logic:  
*Subject: {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }}
+
*{{BLUE|Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }}
*Predicate: {{PAGENAME}}
+
*{{BLUE|Predicate:&nbsp;}} {{PAGENAME}}
*Object: {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} ({{#if: {{{type|}}}|(type [[Has type::{{{type|}}}]])|{{RED|Error: Unspecified {{t|type}} parameter!}} }})
+
*{{BLUE|Object:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} ({{#if: {{{type|}}}|(type [[Has type::{{{type|}}}]])|{{RED|Error: Unspecified {{t|type}} parameter!}} }})
 
|}
 
|}
  
 
[[Category:WikiSpooks Templates]]
 
[[Category:WikiSpooks Templates]]

Revision as of 18:44, 16 December 2013

This template provides a standard format for the descriptions of property pages. It takes the following arguments:

|comment = a description of the subject resource
|subPropertyOf = the parent property of this property (only applies to subproperties)
|domain = description of the domain of the property (which subjects it applies to)
|range = description of the range of the property (which values it can take)
|type = the property type


SMW.png '
RDF Logic:
  • Subject:      Error: Unspecified domain parameter!
  • Predicate:  Property
  • Object:        Error: Unspecified range parameter! (Error: Unspecified type parameter!)