%{ Ousía Homepage (c) Andreas Stöckel, Benjamin Paaßen 2015 This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. }% \begin{ontology#webpage} % Main structure \struct#webpage[root=true] \field#title[subtree=true,optional=true] \childRef[ref=primitive] \field \childRef[ref=section] % Primitve text \struct#block \struct#primitive \struct#text[isa=primitive,transparent=true] \primitive[type=string] % Section \struct#section \field#title[subtree=true,optional=false] \childRef[ref=primitive] \field#subtitle[subtree=true,optional=true] \childRef[ref=primitive] \field \childRef[ref=block] \childRef[ref=subsection] % Subsection \struct#subsection \field#subtitle[subtree=true,optional=false] \childRef[ref=primitive] \field \childRef[ref=block] % Paragraph \struct#paragraph[isa=block,transparent=true] \field \childRef[ref=primitive] % Masthead, Pitch \struct#masthead[isa=section] \struct#pitch[isa=subsection] % IPA \struct#ipa[isa=primitive] \field#pronunciation[subtree=true,optional=false] \childRef[ref=text] \field \childRef[ref=primitive] % Footnote \struct#footnote[isa=primitive] \field \childRef[ref=primitive] % Nav and buttons \struct#nav[isa=subsection] \field \childRef[ref=button] \struct#button \attributes \attribute#href[type=string,default=#] \field \childRef[ref=primitive] \struct#link[isa=primitive] \attributes \attribute#href[type=string,default=#] \field#text \childRef[ref=primitive] % addresses \struct#contact[isa=block,transparent=true] \field \childRef[ref=address] \childRef[ref=phone] \childRef[ref=mail] \struct#address \primitive#name[type=string, subtree=true] \primitive#street[type=string, subtree=true] \primitive#number[type=int, subtree=true] \primitive#plz[type=string, subtree=true] \primitive#city[type=string, subtree=true] \typesystem#phone{ \enum#phone-type \entry{office} \entry{home} \entry{mobile} } \struct#phone \attributes \attribute#type[type=phone-type] \primitive#number[type=string] \struct#mail \primitive[type=string] \struct#dl[isa=block] \field \childRef[ref=item] \struct#item \field#title[subtree=true] \childRef[ref=primitive] \field \childRef[ref=primitive] \struct#img[isa=primitive] \attributes \attribute#src[type=string] \primitive#alt[type=string] % TODO: This is quiet ugly: We have two structures for basically the same % semantics (except one is a block while the other is a primitive) -- is there % some way to define this in a better way? \struct#code[isa=block] \attributes \attribute#lang[type=string,default=""] \field \childRef[ref=primitive] \struct#inlineCode[isa=primitive] \attributes \attribute#lang[type=string,default=""] \field \childRef[ref=primitive] \end{ontology}