|
|||
(10 tussenliggende versies door 2 gebruikers niet weergegeven) | |||
Regel 51: | 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> |
||
Regel 62: | Regel 64: | ||
<!-- obsolete, the use of Semantic title is the preferred way now instead of Convert link --> |
<!-- 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>--> |
||
− | ''Breder concept:'' {{#show:{{#var:varPageName}} | ?Skosem:broader }}<br> |
+ |
<!--''Breder concept:'' {{#show:{{#var:varPageName}} | ?Skosem:broader }}<br>--> |
<!--''Smaller concept:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:broader::{{#var:varPageName}}]] | format=list | 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>--> |
||
− | ''Smaller concept:'' {{#show:{{#var:varPageName}} | ?Skosem:narrower }}<br>''Onderdeel van:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skosem:partOf | 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>--> |
− | ''Bestaat uit:'' {{#arraymap: {{#ask: [[Category:SKOS Concept VN]] [[Skosem:partOf::{{#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>--> |
− | ''Gerelateerd concept:'' {{#arraymap: {{#show:{{#var:varPageName}} | ?Skos:related | 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}}, |
'''Schema:''' {{#show: {{#var:varPageName}} | ?Skos:inScheme}}, |
||
'''Context:''' {{#show: {{#var:varPageName}} | ?Context}} |
'''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}} }} |
{{#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 91: | 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.