Difference between revisions of "Template:Concept relation/doc"
Line 45: | Line 45: | ||
*:(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: 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: 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) | |
Revision as of 08:29, 23 October 2012
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).
Contents
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 Display text:
Group | Display text | Property page |
---|---|---|
1 | skos: collection | vann:termGroup |
10 | dcterms: has part | dcterms:hasPart |
10 | dcterms: is part of | dcterms:isPartOf |
10 | rdfs: see also | rdfs:seeAlso |
10 | rdfs: subclass of | rdfs:subClassOf |
10 | rdfs: subproperty of | rdfs:subPropertyOf |
10 | skos: has broader match | skos:broadMatch |
10 | skos: has close match | skos:closeMatch |
10 | skos: has exact match | skos:exactMatch |
10 | skos: has narrower match | skos:narrowMatch |
10 | skos: has related match | skos:relatedMatch |
10 | skos: is in mapping relation with | skos:mappingRelation |
20 | owl: disjoint with | owl:disjointWith |
20 | owl: equivalent class | owl:equivalentClass |
20 | owl: equivalent property | owl:equivalentProperty |
20 | owl: inverse of | owl:inverseOf |
30 | biorel: adjacent to | biorel:adjacent to |
30 | biorel: aligned with | biorel:aligned with |
30 | biorel: connected to | biorel:connected to |
30 | biorel: derived by descent from | biorel:derived by descent from |
30 | biorel: derives from | biorel:derives from |
30 | biorel: develops from | biorel:develops from |
30 | biorel: develops from part of | biorel:develops from part of |
30 | biorel: develops in | biorel:develops in |
30 | biorel: develops into | biorel:develops into |
30 | biorel: has habitat | biorel:has habitat |
30 | biorel: has part | biorel:has part |
30 | biorel: has participant | biorel:has participant |
30 | biorel: has site of | biorel:has site of |
30 | biorel: is bearer of | biorel:is bearer of |
30 | biorel: is preceded by | biorel:is preceded by |
30 | biorel: occurs in | biorel:occurs in |
30 | biorel: overlaps | biorel:overlaps |
30 | biorel: part of | biorel:part of |
30 | biorel: participates in | biorel:participates in |
30 | biorel: precedes | biorel:precedes |
30 | biorel: produced by | biorel:produced by |
30 | biorel: produces | biorel:produces |
30 | biorel: spatially disjoint from | biorel:spatially disjoint from |
30 | biorel: surrounds | biorel:surrounds |
30 | biorel: variant of | biorel:variant of |
Some relations have special auto-complete functions:
- skos: in scheme -- autocomplete on class: Concept Scheme (title case) with skos:ConceptScheme (Simple Knowledge Organization System (SKOS))
- skos: collection -- autocomplete on class: Concept Collection (title case) with vann:termGroup (Vocabulary for annotating vocabulary descriptions)
- (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
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 data in a fact box of template: Concept other templates are used:
- Template: Concept/render relation as form link (for concept scheme, and concept collection)
- Template: Concept/render relation as list item (for all other relations)
Those templates #ask for property values set on property pages that (re)define relations. These are display- and sorting properties:
- property: terms-internal:conceptRelationDisplayText (for display, e.g. further used in forms)
- property: terms-internal:conceptRelationDisplayGroup (for sorting purposes, lowest value is the first one, highest the last)
Auto-generated list for Form Concept
Auto-generated list of relation values for Form:Concept (field: relation):
- skos: collection, dcterms: has part, 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, biorel: adjacent to, biorel: aligned with, biorel: connected to, biorel: derived by descent from, biorel: derives from, biorel: develops from, biorel: develops from part of, biorel: develops in, biorel: develops into, biorel: has habitat, biorel: has part, biorel: has participant, biorel: has site of, biorel: is bearer of, biorel: is preceded by, biorel: occurs in, biorel: overlaps, biorel: part of, biorel: participates in, biorel: precedes, biorel: produced by, biorel: produces, biorel: spatially disjoint from, biorel: surrounds, biorel: variant of
Dependencies
See also
- template: Concept scheme
- Template: Concept/render relation as form link (for concept scheme, and concept collection)
- Template: Concept/render relation as list item (for all other relations)
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: