Concept relation

Da Conti e principi di Porcia e Brugnera.
Versione del 5 ago 2014 alle 23:12 di Federico (Discussione | contributi)

(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
[edit] [purge] Template-info.png 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
10Rdfs: seeAlsoRdfs:seeAlso

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

  • skos: in scheme — autocomplete on class: Concept Scheme (title case) with
  • skos: collection — autocomplete on class: Concept Collection (title case) with
    (Note: vann:termGroup relates to the skos concept collection (label in picklist is "skos: collection"); skos has not property from concept to collection (only the inverse))
    (Note: we chose to present a pseudo-property "skos: collection" to the user)

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, Rdfs: seeAlso

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 Bio
MediaWiki:Smw import Dc
MediaWiki:Smw import Dcclass
MediaWiki:Smw import Dcmitype
MediaWiki:Smw import Dcterms
MediaWiki:Smw import Event
MediaWiki:Smw import Foaf
MediaWiki:Smw import Owl
MediaWiki:Smw import Rdf
MediaWiki:Smw import Rdfs
MediaWiki:Smw import Rel
MediaWiki:Smw import Skos
MediaWiki:Smw import Vann
MediaWiki:Smw import Vs