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

From TDWG Terms Wiki
Jump to: navigation, search
m (+docu)
m (+category)
Line 106: Line 106:
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
[[Category: Helper tool for ontologies]]
 
</includeonly>
 
</includeonly>

Revision as of 10:58, 26 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 (=first column):

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
skos: collection property: skos:Collection
skos: in scheme property: skos:inScheme
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

For displaying data in a fact box the template sets:

This display information is stored in indexed SMW-subobjects, e.g. #skos:inScheme-1, #skos:inScheme-2, #rdfs:subPropertyOf-1, #rdfs:subPropertyOf-2 etc. Saving these data in subobjects makes it easier to retrive, count and render these data. Using not indexed subobjects but standard SMW-assignments ([[property::xxxx]]) makes it impossible to count multiple values set on a page, it always returns 1.

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

See also