|
|||
(20 tussenliggende versies door 3 gebruikers niet weergegeven) | |||
Regel 13: | Regel 13: | ||
{{#vardefine:varPageName|{{#if: {{{Page name|}}}| {{{Page name}}} | {{PAGENAME}} }} }} |
{{#vardefine:varPageName|{{#if: {{{Page name|}}}| {{{Page name}}} | {{PAGENAME}} }} }} |
||
{{#vardefine:varModel|{{#show: {{#var:varPageName}} | ?Model link | link=none | default={{#var:varPageName}} }} }} |
{{#vardefine:varModel|{{#show: {{#var:varPageName}} | ?Model link | link=none | default={{#var:varPageName}} }} }} |
||
+ | {{#vardefine:varPrefLabel|{{ucfirst:{{#show: {{#var:varModel}} | ?prefLabel}} }} }} |
||
+ | {{#vardefine:varHeadingNL|{{#show: {{#var:varModel}} | ?Heading nl}} }} |
||
+ | {{#vardefine:varHeading|{{#show: {{#var:varModel}} | ?Heading}} }} |
||
+ | {{#vardefine:varSemanticTitle|{{#show: {{#var:varModel}} | ?Semantic title}} }} |
||
+ | {{#vardefine:varHeading|{{#if: {{#var:varHeading}} | {{#var:varHeading}} | {{{Heading|}}} }} }} |
||
+ | {{#set:Semantic title|{{#var:varSemanticTitle}}}} |
||
+ | {{#set:prefLabel|{{#var:varPrefLabel}}}} |
||
+ | {{#set:Heading nl|{{#var:varHeadingNL}}}} |
||
+ | {{#set:Self={{PAGENAME}}}} |
||
+ | {{DISPLAYTITLE:{{#var:varHeading}}}} |
||
+ | {{#set:Heading={{#show:{{#var:varHeading}}}}}} |
||
+ | <!-- make sure that the Skos:properties narrower and hasPart are bidirectional --> |
||
+ | {{#set:Skosem:narrower={{#ask: [[Category:SKOS Concept VN]] [[Skosem:broader::{{#var:varPageName}}]] | link=none}}|+sep=,}} |
||
+ | {{#set:Skosem:hasPart={{#ask: [[Category:SKOS Concept VN]] [[Skosem:partOf::{{#var:varPageName}}]] | link=none}}|+sep=,}} |
||
{{#set:Heading={{{Heading|}}}}} |
{{#set:Heading={{{Heading|}}}}} |
||
+ | <!-- derived properties --> |
||
+ | {{#set:Skos:definition={{#show: {{#var:varModel}} | ?Skos:definition}}}} |
||
</div> |
</div> |
||
<!-- use this construct to create links without the " VN" part |
<!-- use this construct to create links without the " VN" part |
||
Regel 35: | Regel 51: | ||
It works when rendered in a template, as in the follwing query |
It works when rendered in a template, as in the follwing query |
||
--> |
--> |
||
− | {{#ask: [[ |
+ | {{#ask: [[{{#var:varModel}}]] |
− | | ?Skos:definition |
+ | | ?Skos:definition=
|
| mainlabel=- |
| mainlabel=- |
||
| format=template |
| format=template |
||
| template=Text formatter |
| template=Text formatter |
||
}} |
}} |
||
+ | {{#widget:EM3DNavigator}} |
||
+ | <br> |
||
<!-- use this construct to create links without the " VN" part |
<!-- use this construct to create links without the " VN" part |
||
{{#arraymap: ''query (met link=none)'' |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
{{#arraymap: ''query (met link=none)'' |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
||
--> |
--> |
||
+ | <!-- obsolete, the use of Semantic title is the preferred way now instead of Convert link --> |
||
+ | <!-- |
||
''Thesaurus:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:inScheme | link=none}} |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
''Thesaurus:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:inScheme | link=none}} |,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
||
''Deelgebied in thesaurus:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Context | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
''Deelgebied in thesaurus:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Context | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
||
+ | --> |
||
<!--''Naam:'' {{#show: {{#show: {{#var:varPageName}} | ?Model link | link=none}} | ?Skos:prefLabel }}<br>--> |
<!--''Naam:'' {{#show: {{#show: {{#var:varPageName}} | ?Model link | link=none}} | ?Skos:prefLabel }}<br>--> |
||
− | ''Alternatieve naam:'' {{#show: {{#show: {{#var:varPageName}} | ?Model link | link=none}} | ?Skos:altLabel }}<br> |
+ |
<!--''Alternatieve naam:'' {{#show: {{#show: {{#var:varPageName}} | ?Model link | link=none}} | ?Skos:altLabel }}<br>--> |
− | ''Breder concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:broader | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
+ |
<!--''Breder concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:broader | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>-->
|
− | ''Smaller concept:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:broader::{{#var:varPageName}}]] | format=list | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
+ |
<!--''Breder concept:'' {{#show:{{#var:varPageName}} | ?Skosem:broader }}<br>--> |
− | ''Onderdeel van:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:partOf | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
+ |
<!--''Smaller concept:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:broader::{{#var:varPageName}}]] | format=list | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>--> |
− | ''Bestaat uit:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:partOf::{{#var:varPageName}}]] | format=list | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
+ |
<!--''Smaller concept:'' {{#show:{{#var:varPageName}} | ?Skosem:narrower }}<br>''Onderdeel van:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:partOf | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>--> |
− | ''Gerelateerd concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:related | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br> |
+ |
<!--''Bestaat uit:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:partOf::{{#var:varPageName}}]] | format=list | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>--> |
+ |
<!--''Gerelateerd concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:related | link=none}}|,|@@@@| {{Convert link | Link name VN=@@@@}} }}<br>-->
|
||
+ | '''Schema:''' {{#show: {{#var:varPageName}} | ?Skos:inScheme}}, |
||
+ | '''Context:''' {{#show: {{#var:varPageName}} | ?Context}} |
||
+ | {{#vardefine:varBroader|{{#show: {{#var:varPageName}} | ?Skosem:broader}}}}{{#if: {{#var:varBroader}} | <br />'''Overkoepelend:''' {{#var:varBroader}} }}{{#vardefine:varNarrower|{{#show: {{#var:varPageName}} | ?Skosem:narrower}}}}{{#if: {{#var:varNarrower}} | <br />'''Specifiek:''' {{#var:varNarrower}} }}{{#vardefine:varPartOf|{{#show: {{#var:varPageName}} | ?Skosem:partOf}}}}{{#if: {{#var:varPartOf}} | <br />'''Onderdeel van:''' {{#var:varPartOf}} }}{{#vardefine:varHasPart|{{#ask: [[Category:SKOS Concept VN]][[Skosem:partOf::{{#var:varPageName}}]]}}}}{{#if: {{#var:varHasPart}} | <br />'''Onderdelen:''' {{#var:varHasPart}} }}{{#vardefine:varRelated|{{#show: {{#var:varPageName}} | ?Skos:related}}}}{{#if: {{#var:varRelated}} | <br />'''Verwant:''' {{#var:varRelated}} }} |
||
+ | {{#ifeq: {{#ask: [[Category:Context VN]] [[Concerns::{{#var:varPageName}} | format=count]]}} |0|| |
||
+ | '''Betreft:''' <br /> |
||
+ | {{#ask: [[Category:Context VN]] [[Concerns::{{#var:varPageName}}]] |
||
+ | | format=datatables |
||
+ | }} |
||
+ | }} <!-- end ifeq --> |
||
<!-- |
<!-- |
||
{{Beeldmateriaal show|Page name={{#var:varModel}}}} |
{{Beeldmateriaal show|Page name={{#var:varModel}}}} |
||
Regel 69: | Regel 100: | ||
}} |
}} |
||
}} |
}} |
||
+ | <br> |
||
</includeonly> |
</includeonly> |
This is the "SKOS Concept show" template. It should be called in the following format:
{{SKOS Concept VN show |Page name= |Heading= }}
Edit the page to see the template text.