2018-10-23 11:56:18 +00:00
|
|
|
section{* An example ontology for a scholarly paper*}
|
|
|
|
|
|
|
|
theory technical_report
|
|
|
|
imports "scholarly_paper"
|
|
|
|
begin
|
|
|
|
|
2018-11-27 11:53:02 +00:00
|
|
|
doc_class table_of_contents =
|
|
|
|
depth :: int <= 3
|
|
|
|
|
|
|
|
doc_class front_matter =
|
|
|
|
style :: string
|
2018-10-23 11:56:18 +00:00
|
|
|
|
|
|
|
doc_class "chapter" = text_section +
|
|
|
|
style :: string
|
|
|
|
|
|
|
|
doc_class report =
|
|
|
|
style_id :: string <= "''LNCS''"
|
|
|
|
version :: "(int \<times> int \<times> int)" <= "(0,0,0)"
|
2018-11-13 14:19:02 +00:00
|
|
|
accepts "(title ~~
|
2018-10-23 11:56:18 +00:00
|
|
|
\<lbrakk>subtitle\<rbrakk> ~~
|
|
|
|
\<lbrace>author\<rbrace>\<^sup>+ ~~
|
2018-11-27 11:53:02 +00:00
|
|
|
\<lbrakk>front_matter\<rbrakk> ~~
|
2018-10-23 11:56:18 +00:00
|
|
|
abstract ~~
|
2018-11-27 11:53:02 +00:00
|
|
|
\<lbrakk>table_of_contents\<rbrakk> ~~
|
2018-10-23 11:56:18 +00:00
|
|
|
introduction ~~
|
|
|
|
\<lbrace>technical || example\<rbrace>\<^sup>+ ~~
|
|
|
|
conclusion ~~
|
2018-11-27 11:53:02 +00:00
|
|
|
\<lbrakk>table_of_contents\<rbrakk> ~~
|
2018-10-23 11:56:18 +00:00
|
|
|
bibliography)"
|
|
|
|
|
|
|
|
end
|
|
|
|
|