Template:Concept relation

From Diversity Workbench
Jump to: navigation, search
[edit] [purge] Template-info.svg Template documentation

Template “Concept relation” sets relations which are further analysed/displayed in Template: Concept. Results appear in a floating fact box of a concept page (=a page having template: Concept on it).

Usage

On Concept pages (using Template/Form:Concept) the following The template call can be repeated any number of times:

 {{Concept relation 
 | relation = …
 | internal page = …
 }}
or relating
to an URI
 {{Concept relation 
 | relation = …
 | uri = …
 }}
 {{Concept relation 
 | relation = …
 | uri = {{Concept to imported URI|Article namespace Wiki page of imported concept}}
 }}

Use Template: Concept to imported URI if you reuse an imported page and want to relate to the imported URI.

Parameter “relation” can be any of the strings displayed in column relation value (note that skos:inScheme is handled by template: Concept scheme relation):

Grouprelation value (=Display text)Property page
1skos: collectionvann:termGroup
10dcterms: is part ofdcterms:isPartOf
10rdfs: see alsordfs:seeAlso
10rdfs: subclass ofrdfs:subClassOf
10rdfs: subproperty ofrdfs:subPropertyOf
10skos: has broader matchskos:broadMatch
10skos: has close matchskos:closeMatch
10skos: has exact matchskos:exactMatch
10skos: has narrower matchskos:narrowMatch
10skos: has related matchskos:relatedMatch
10skos: is in mapping relation withskos:mappingRelation
20owl: disjoint withowl:disjointWith
20owl: equivalent classowl:equivalentClass
20owl: equivalent propertyowl:equivalentProperty
20owl: inverse ofowl:inverseOf

Some relations are bound to categories to have auto-complete function available in forms:

Note: “rdfs: subclass of” and “rdfs: subproperty of” are no longer set to specific autocompletes, to avoid workflow complications (e.g. a skos concept may not yet have been defined as property or class)

Technical documentation

Add a new relation

  1. add the following properties to a property page:
    [[terms-internal:conceptRelationDisplayText::‹my display text›| ]]
    [[terms-internal:conceptRelationDisplayGroup::‹a number›| ]]<!-- the lower, the first it is displayed -->
  2. add new display texts (my display text from above) to Template:Concept relation/relation to property.

Related templates

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, add new relations here)
 └ Template:Concept relation/doc

For displaying relation data in the fact box of template: Concept the following templates are used:

Those templates evaluate display- and sorting properties set on a property page that itself is used as a relation:

Auto-generated list for Form Concept

Auto-generated list of relation values for Form:Concept (field: relation):

skos: collection, dcterms: is part of, rdfs: see also, rdfs: subclass of, rdfs: subproperty of, skos: has broader match, skos: has close match, skos: has exact match, skos: has narrower match, skos: has related match, skos: is in mapping relation with, owl: disjoint with, owl: equivalent class, owl: equivalent property, owl: inverse of

Dependencies

See also

Further import pages …

Hint: Before terms can be imported as annotation properties they need to be declared by a special page in the MediaWiki namespace followed by the local prefix you wish to use: "MediaWiki:Smw_import_local-namespace-prefix". A list of all imported vocabulary schemes is:

SMW import page
MediaWiki:Smw import biorel
MediaWiki:Smw import dc
MediaWiki:Smw import dcterms
MediaWiki:Smw import dwcattributes
MediaWiki:Smw import foaf
MediaWiki:Smw import owl
MediaWiki:Smw import rdf
MediaWiki:Smw import rdfs
MediaWiki:Smw import sioc
MediaWiki:Smw import skos
MediaWiki:Smw import vann
MediaWiki:Smw import vs
MediaWiki:Smw import xmpRights