OntoDL Style Sheet Directive: OntoDL.StyleName: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „== Syntax == The following syntax does not define a directive to be placed into an OntoDL file, because the ''OntoDL.StyleName'' directive does not come with a…“) |
(→Examples) |
||
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 23: | Zeile 23: | ||
! style="text-align:left; width:6em" | Style Sheet !! !! style="text-align:left; width:30em" | Text !! !! style="text-align:left" | ''Comment'' | ! style="text-align:left; width:6em" | Style Sheet !! !! style="text-align:left; width:30em" | Text !! !! style="text-align:left" | ''Comment'' | ||
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:110%">#heading 2 codesystem .Name ( .URI )</span>|| || | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:110%">#heading 2 codesystem .Name ( .URI )</span>|| || see [[OntoDL Style Sheet Directive: heading|''#heading directive'']]. |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:110%">#heading 3-4 concept .Display ( .Name )</span>|| || | + | | OntoDL|| ||style="background:#fff588"| <span style="font-family:Courier;font-size:110%">#heading 3-4 concept .Display ( .Name )</span>|| || see [[OntoDL Style Sheet Directive: heading|''#heading directive'']]. |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | Überschrift 2|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:120%">'''Clinics and Wards (http://hospital.com/clinics)'''</span>|| || | + | | Überschrift 2|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:120%">'''Clinics and Wards (http://hospital.com/clinics)'''</span>|| || A new terminology is defined. |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL.Description|| ||style="background:#fff588"| <span style="font-family:Times;font-size:100%">This terminology provides a list of all clinics and wards.</span>|| || | + | | OntoDL.Description|| ||style="background:#fff588"| <span style="font-family:Times;font-size:100%">This terminology provides a list of all clinics and wards.</span>|| || The style of this paragraph starts with "OntoDL.". The OntoDL interpreter takes the second part of the style name as a property name. Therefore this paragraph is assigned to the ''Description''-property of the codesystem-object that represents the newly defined terminology. |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | Überschrift 3|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:110%">'''Cardiologic Clinic, Prof. Smyth (cardiologic clinic) '''</span>|| || | + | | Überschrift 3|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:110%">'''Cardiologic Clinic, Prof. Smyth (cardiologic clinic) '''</span>|| || A new concept is defined. |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL.Designation[Language=de]|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:100%">Kardiologische Klinik</span>|| || | + | | OntoDL.Designation[Language=de]|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:100%">Kardiologische Klinik</span>|| || This paragraph is assigned to the ''Designation''-property of the concept with the text language set to German ("de"). |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL.Definition|| ||style="background:#fff588"| <span style="font-family:Times;font-size:100%">''The cardiologic clinic is located in the Red-House-Building.''</span>|| || | + | | OntoDL.Definition|| ||style="background:#fff588"| <span style="font-family:Times;font-size:100%">''The cardiologic clinic is located in the Red-House-Building.''</span>|| || This paragraph is considered to be the definition of the concept "cardiologic clinic". |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | Überschrift 4|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:100%">'''''Cardiologic care ward for Women and Children (ward 51.1) '''''</span>|| || | + | | Überschrift 4|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:100%">'''''Cardiologic care ward for Women and Children (ward 51.1) '''''</span>|| || |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL.Designation[Language=de]|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:100%">Kardiologische Station für Frauen und Kinder</span>|| || | + | | OntoDL.Designation[Language=de]|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:100%">Kardiologische Station für Frauen und Kinder</span>|| || |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL.Definition|| ||style="background:#fff588"| <span style="font-family:Times;font-size:100%">''Ward 51.1 is located on the first floor.''</span>|| || | + | | OntoDL.Definition|| ||style="background:#fff588"| <span style="font-family:Times;font-size:100%">''Ward 51.1 is located on the first floor.''</span>|| || |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | Überschrift 4|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:100%">'''''Cardiologic care ward for Intensive Care (ward 51.2) '''''</span>|| || | + | | Überschrift 4|| ||style="background:#fff588"| <span style="font-family:Arial;font-size:100%">'''''Cardiologic care ward for Intensive Care (ward 51.2) '''''</span>|| || |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
| − | | OntoDL.Definition|| ||style="background:#fff588"| <span style="font-family:Times;font-size:100%">''Ward 51.2 is located on the third floor. Access to the | + | | OntoDL.Definition|| ||style="background:#fff588"| <span style="font-family:Times;font-size:100%">''Ward 51.2 is located on the third floor. Access to the ward is restricted.''</span>|| || |
| − | |||
| − | |||
| − | |||
| − | |||
|} | |} | ||
<hr> | <hr> | ||
Aktuelle Version vom 10. September 2016, 21:46 Uhr
Syntax
The following syntax does not define a directive to be placed into an OntoDL file, because the OntoDL.StyleName directive does not come with any commands to be placed into the text. Instead it defines a syntax for custom MS Word style sheets, that looks as follows:
| CustomOntoDLStyle | := | OntoDL PropertyReference+ PropertyQualifer* |
Description
Examples
| Style Sheet | Text | Comment | ||
|---|---|---|---|---|
| OntoDL | #heading 2 codesystem .Name ( .URI ) | see #heading directive. | ||
| OntoDL | #heading 3-4 concept .Display ( .Name ) | see #heading directive. | ||
| Überschrift 2 | Clinics and Wards (http://hospital.com/clinics) | A new terminology is defined. | ||
| OntoDL.Description | This terminology provides a list of all clinics and wards. | The style of this paragraph starts with "OntoDL.". The OntoDL interpreter takes the second part of the style name as a property name. Therefore this paragraph is assigned to the Description-property of the codesystem-object that represents the newly defined terminology. | ||
| Überschrift 3 | Cardiologic Clinic, Prof. Smyth (cardiologic clinic) | A new concept is defined. | ||
| OntoDL.Designation[Language=de] | Kardiologische Klinik | This paragraph is assigned to the Designation-property of the concept with the text language set to German ("de"). | ||
| OntoDL.Definition | The cardiologic clinic is located in the Red-House-Building. | This paragraph is considered to be the definition of the concept "cardiologic clinic". | ||
| Überschrift 4 | Cardiologic care ward for Women and Children (ward 51.1) | |||
| OntoDL.Designation[Language=de] | Kardiologische Station für Frauen und Kinder | |||
| OntoDL.Definition | Ward 51.1 is located on the first floor. | |||
| Überschrift 4 | Cardiologic care ward for Intensive Care (ward 51.2) | |||
| OntoDL.Definition | Ward 51.2 is located on the third floor. Access to the ward is restricted. |