Difference between revisions of "Template:Concept relation/doc"

From TDWG Terms Wiki
Jump to: navigation, search
m (concept mapping → concept relation)
m (adjusted docu)
Line 1: Line 1:
 
{{Documentation/subpage}}
 
{{Documentation/subpage}}
 +
 +
Template “{{lcfirst: {{PAGENAME}} }}” sets a {{abbr|SMW}}-subobject and [[template: concept]] queries these data to display them in a fact box.
 +
 
TODO: [http://www.w3.org/TR/rdf-schema/#ch_range rdfs:range] do we need this? --[[User:Andreas Plank|Andreas Plank]] 17:30, 28 August 2012 (CEST)
 
TODO: [http://www.w3.org/TR/rdf-schema/#ch_range rdfs:range] do we need this? --[[User:Andreas Plank|Andreas Plank]] 17:30, 28 August 2012 (CEST)
 
NOTE: This template was named “concept relation” and not ”concept mapping” because, e.g. disjunct is ''not'' a mapping but a relation.
 
NOTE: This template was named “concept relation” and not ”concept mapping” because, e.g. disjunct is ''not'' a mapping but a relation.
Line 5: Line 8:
 
=== Usage ===
 
=== Usage ===
 
It should be called in the following format:
 
It should be called in the following format:
 +
{|
 +
|-
 +
|
 
<pre>
 
<pre>
 
  {{Concept relation  
 
  {{Concept relation  
  | relation =
+
  | relation =
  one of
+
  | internal page =
    obo_rel: adjacent to
+
    obo_rel: contained in
+
    obo_rel: derives from
+
    obo_rel: has agent
+
    obo_rel: integral part of
+
    obo_rel: located in
+
    obo_rel: part of
+
    obo_rel: preceded by
+
    obo_rel: proper part of
+
    obo_rel: transformation of
+
    skos: has broader match
+
    skos: has close match
+
    skos: has exact match
+
    skos: has narrower match
+
    skos: has participant
+
    skos: has related match
+
    skos: is in mapping relation with
+
    rdfs: see also
+
    rdfs: subclass of
+
    rdfs: subproperty of
+
 
+
  | internal page =  
+
| uri =
+
 
  }}
 
  }}
 
</pre>
 
</pre>
 +
| or relating to {{abbr|URI}}
 +
|
 +
<pre>
 +
{{Concept relation
 +
| relation = …
 +
| uri = …
 +
}}
 +
</pre>
 +
|}
 +
 +
Parameter “relation” can be one of:
 +
# [[property:obo_rel: adjacent to|obo_rel:adjacent to]]
 +
# [[property: obo_rel:contained_in|obo_rel: contained in]]
 +
# [[property: obo_rel:derives_from|obo_rel: derives from]]
 +
# [[property: obo_rel:has_agent|obo_rel: has agent]]
 +
# [[property: obo_rel:integral_part_of|obo_rel: integral part of]]
 +
# [[property: obo_rel:located_in|obo_rel: located in]]
 +
# [[property: obo_rel:part_of|obo_rel: part of]]
 +
# [[property: obo_rel:preceded_by|obo_rel: preceded by]]
 +
# [[property: obo_rel:proper_part_of|obo_rel: proper part of]]
 +
# [[property: obo_rel:transformation_of|obo_rel: transformation of]]
 +
# [[property: skos:hasBoaderMatch|skos: has broader match]]
 +
# [[property: skos:hasCloseMatch|skos: has close match]]
 +
# [[property: skos:hasExactMatch|skos: has exact match]]
 +
# [[property: skos:hasNarrowerMatch|skos: has narrower match]]
 +
# [[property: skos:hasParticipant|skos: has participant]]
 +
# [[property: skos:hasRelatedMatch|skos: has related match]]
 +
# [[property: skos:isInMappingRelationWith|skos: is in mapping relation with]]
 +
# [[property: rdfs:seeAlso|rdfs: see also]]
 +
# [[property: rdfs:subclassOf|rdfs: subclass of]]
 +
# [[property: rdfs:subPropertyOf|rdfs: subproperty of]]
 +
  
 
=== Technical documentation ===
 
=== Technical documentation ===
 
  {{#titleparts: {{PAGENAME}} | 1 | 1 }}
 
  {{#titleparts: {{PAGENAME}} | 1 | 1 }}
 +
  ├ [[Template:Concept relation/return listelement from query]] return a list element to format an #ask-query with “format = template“ in an #ask-query
 
   ├ [[Template:Concept relation/relation to property]] (map relation-string from template input to correct property page)
 
   ├ [[Template:Concept relation/relation to property]] (map relation-string from template input to correct property page)
 
   └ [[Template:Concept relation/doc]]
 
   └ [[Template:Concept relation/doc]]

Revision as of 15:34, 7 September 2012

This is a documentation subpage for Template:Concept relation (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Template “concept relation/doc” sets a SMW-subobject and template: concept queries these data to display them in a fact box.

TODO: rdfs:range do we need this? --Andreas Plank 17:30, 28 August 2012 (CEST) NOTE: This template was named “concept relation” and not ”concept mapping” because, e.g. disjunct is not a mapping but a relation.

Usage

It should be called in the following format:

 {{Concept relation 
 | relation = …
 | internal page = …
 }}
or relating to URI
 {{Concept relation 
 | relation = …
 | uri = …
 }}

Parameter “relation” can be one of:

  1. obo_rel:adjacent to
  2. obo_rel: contained in
  3. obo_rel: derives from
  4. obo_rel: has agent
  5. obo_rel: integral part of
  6. obo_rel: located in
  7. obo_rel: part of
  8. obo_rel: preceded by
  9. obo_rel: proper part of
  10. obo_rel: transformation of
  11. skos: has broader match
  12. skos: has close match
  13. skos: has exact match
  14. skos: has narrower match
  15. skos: has participant
  16. skos: has related match
  17. skos: is in mapping relation with
  18. rdfs: see also
  19. rdfs: subclass of
  20. rdfs: subproperty of


Technical documentation

Concept relation
 ├ Template:Concept relation/return listelement from query return a list element to format an #ask-query with “format = template“ in an #ask-query 
 ├ Template:Concept relation/relation to property (map relation-string from template input to correct property page)
 └ Template:Concept relation/doc

Dependency on http://www.mediawiki.org/wiki/Extension:Variables

See also