Skip to content

Knowledge-Graphs-Book/HTML-Book

Repository files navigation

KG Book in HTML

This is the repository where we put the sources for the HTML version of the book Knowledge Graphs by Hogan et al., published by Springer (previously Morgan & Claypool). The book is itself an extended version of the technical report with the same title and authors. There is also an HTML version of the technical report.

The HTML version was generated from PHP scripts, regex search replace, and a lot of perspiration. The bibliography is partly generated using bibtexbrowser, a PHP library by Martin Monperrus available under the GNU General Public License. The math formulas are generated from LaTeX code using KaTeX, a JavaScript libray available under the MIT License. The syntax highlight for HTML in Figure 6.2 and the BibTeX code in the bibliography and the preamble are rendered using Prism, a JavaScript library under the MIT License. The BibTeX file used for the bibliography was made by the authors. Most figures are in Scalable Vector Graphic, generated from TikZ figures used in the LaTeX version of the technical report. All other PHP scripts, CSS, HTML files were created by Antoine Zimmermann. The picture at the top of the HTML page uses the background image of the book cover from Morgan & Claypool (used with authorisation) on which is added text in HTML with hyperlinks to the authors' biographies.

The fonts used in the HTML page are all freely available:

  • The main text uses Charis SIL, available under SIL Open Font License
  • The titles of the chapters and sections use Quattrocento, a Google Font available under SIL Open Font License
  • The teletype font (i.e., fixed width font) is Hasklig, available under SIL Open Font License
  • The font used in the directed edge-labelled graphs (at nodes and edges) is cmss8, a font available from the Comprehensive TEX Archive Network under a non-free license, copyright 1994 Basil K. Malyshev.
  • The fonts used in the math formulas are packaged with the KaTeX JavaScript library.

The typography of the web page was influenced by Matthew Butterick's practical typography and are taking elements from Morgan & Claypool's book version, especially the colours.