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

From TDWG Terms Wiki
Jump to: navigation, search
m (Usage)
m (Usage)
Line 27: Line 27:
  
 
Parameter “relation” can be one of the following strings:
 
Parameter “relation” can be one of the following strings:
# [[property: obo_rel:adjacent_to|obo_rel: adjacent to]]
+
{| class = "wikitable sortable"
# [[property: obo_rel:contained_in|obo_rel: contained in]]
+
|-
# [[property: obo_rel:derives_from|obo_rel: derives from]]
+
! used string<br/>(e.g. in forms)
# [[property: obo_rel:has_agent|obo_rel: has agent]]
+
! maps to
# [[property: obo_rel:integral_part_of|obo_rel: integral part of]]
+
|-
# [[property: obo_rel:located_in|obo_rel: located in]]
+
| obo_rel: adjacent to || [[property: obo_rel:adjacent_to]]
# [[property: obo_rel:part_of|obo_rel: part of]]
+
|-
# [[property: obo_rel:preceded_by|obo_rel: preceded by]]
+
| obo_rel: contained in || [[property: obo_rel:contained_in]]
# [[property: obo_rel:proper_part_of|obo_rel: proper part of]]
+
|-
# [[property: obo_rel:transformation_of|obo_rel: transformation of]]
+
| obo_rel: derives from || [[property: obo_rel:derives_from]]
# [[property: skos:hasBoaderMatch|skos: has broader match]]
+
|-
# [[property: skos:hasCloseMatch|skos: has close match]]
+
| obo_rel: has agent || [[property: obo_rel:has_agent]]
# [[property: skos:hasExactMatch|skos: has exact match]]
+
|-
# [[property: skos:hasNarrowerMatch|skos: has narrower match]]
+
| obo_rel: integral part of || [[property: obo_rel:integral_part_of]]
# [[property: skos:hasParticipant|skos: has participant]]
+
|-
# [[property: skos:hasRelatedMatch|skos: has related match]]
+
| obo_rel: located in || [[property: obo_rel:located_in]]
# [[property: skos:isInMappingRelationWith|skos: is in mapping relation with]]
+
|-
# [[property: rdfs:seeAlso|rdfs: see also]]
+
| obo_rel: part of || [[property: obo_rel:part_of]]
# [[property: rdfs:subclassOf|rdfs: subclass of]]
+
|-
# [[property: rdfs:subPropertyOf|rdfs: subproperty of]]
+
| obo_rel: preceded by || [[property: obo_rel:preceded_by]]
 +
|-
 +
| obo_rel: proper part of || [[property: obo_rel:proper_part_of]]
 +
|-
 +
| obo_rel: transformation of || [[property: obo_rel:transformation_of]]
 +
|-
 +
| skos: has broader match || [[property: skos:hasBoaderMatch]]
 +
|-
 +
| skos: has close match || [[property: skos:hasCloseMatch]]
 +
|-
 +
| skos: has exact match || [[property: skos:hasExactMatch]]
 +
|-
 +
| skos: has narrower match || [[property: skos:hasNarrowerMatch]]
 +
|-
 +
| skos: has participant || [[property: skos:hasParticipant]]
 +
|-
 +
| skos: has related match || [[property: skos:hasRelatedMatch]]
 +
|-
 +
| skos: is in mapping relation with || [[property: skos:isInMappingRelationWith]]
 +
|-
 +
| rdfs: see also || [[property: rdfs:seeAlso]]
 +
|-
 +
| rdfs: subclass of || [[property: rdfs:subclassOf]]
 +
|-
 +
| rdfs: subproperty of || [[property: rdfs:subPropertyOf]]
 +
|}
  
 
=== Technical documentation ===
 
=== Technical documentation ===

Revision as of 15:52, 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” sets a SMW-subobject and template: concept queries these data to display them in a fact box.

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 an URI
 {{Concept relation 
 | relation = …
 | uri = …
 }}

Parameter “relation” can be one of the following strings:

used string
(e.g. in forms)
maps to
obo_rel: adjacent to property: obo_rel:adjacent_to
obo_rel: contained in property: obo_rel:contained_in
obo_rel: derives from property: obo_rel:derives_from
obo_rel: has agent property: obo_rel:has_agent
obo_rel: integral part of property: obo_rel:integral_part_of
obo_rel: located in property: obo_rel:located_in
obo_rel: part of property: obo_rel:part_of
obo_rel: preceded by property: obo_rel:preceded_by
obo_rel: proper part of property: obo_rel:proper_part_of
obo_rel: transformation of property: obo_rel:transformation_of
skos: has broader match property: skos:hasBoaderMatch
skos: has close match property: skos:hasCloseMatch
skos: has exact match property: skos:hasExactMatch
skos: has narrower match property: skos:hasNarrowerMatch
skos: has participant property: skos:hasParticipant
skos: has related match property: skos:hasRelatedMatch
skos: is in mapping relation with property: skos:isInMappingRelationWith
rdfs: see also property: rdfs:seeAlso
rdfs: subclass of property: rdfs:subclassOf
rdfs: subproperty of property: rdfs:subPropertyOf

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