Skip to content

Commit

Permalink
Update metadata and about page
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse authored and skalee committed Jul 5, 2020
1 parent 2d1ea70 commit add9ab8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 13 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ JSON_PP := json_pp -json_opt pretty,relaxed,utf8
# _site/api/concepts/*.json files are processed with jekyll-tidy-json plugin
GENERATED_JSONS := _site/api/concepts/*.jsonld

all: _site | postprocess
all: _site

clean:
rm -rf _site
Expand All @@ -29,9 +29,12 @@ bundle:
_source/_data/info.yaml: isotc211-glossary/tc211-termbase.meta.yaml
cp -f $< $@

_source/_data/metadata.yaml: isotc211-glossary/metadata.yaml
_source/_data/metadata.yaml: metadata.yaml
cp -f $< $@

metadata.yaml:
scripts/generate_metadata.rb

serve:
bundle exec jekyll serve

Expand Down
17 changes: 6 additions & 11 deletions _source/_pages/about.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ layout: base-page
title: About
permalink: /about/
bodyClass: page
nav_items: [concepts, posts,stats, feedback, registers]
nav_items: [concepts, posts, stats, feedback, registers]
---
:page-liquid:

Geolexica is the online glossary for geographic information technology from
ISO/TC 211 Geolexica is the online glossary for geographic information technology from
https://www.iso.org/committee/54904.html[ISO/TC 211 Geographic information/Geomatics].

The name "`geolexica`" is a combination of the Greek prefix "`geo-`"
(of and pertaining to the Earth) and the suffix "`lexica`"
derived from the Greek "`lexiko`", counterpart of the English
"`lexicon`" (vocabulary).

Terminology entries in Geolexica fully reflect entries given in the
ISO/TC 211 Multi-Lingual Glossary of Terms (MLGT), where its
authoritative English terms originate from ISO/TC 211 standards.
Expand All @@ -31,13 +26,13 @@ Specifically:

== Current content ({{ site.data.metadata.version }} edition)

The current contents in Geolexica are from the 4th release of the
The current contents in Geolexica are from the 5th release of the
MLGT ({{ site.data.metadata.version }} edition), consisting of:

* over 1,060 English language terminology entries (terms/definitions)
from published ISO/TC 211 standards as of October 2017;
* {{ site.data.metadata.concept_count }} English language terminology entries (terms/definitions)
from published ISO/TC 211 standards as of June 2020;

* over 7,600 translated terminology entries (full or partial)
* {{ site.data.metadata.term_count }} translated terminology entries (full or partial)
covering fourteen languages, which represents close to all of
the participating countries in ISO/TC 211.

Expand Down
25 changes: 25 additions & 0 deletions scripts/generate_metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env ruby

require 'yaml'

terms = []
Dir['isotc211-glossary/concepts/*.yaml'].map do |yaml_file|
terms << YAML.load(IO.read(yaml_file))
puts "Processing #{yaml_file}"
end

term_count = terms.map do |t|
t.keys.length - 2
end.sum

meta = {
'concept_count' => terms.length,
'term_count' => term_count,
'version' => '20200602'
}

File.open('metadata.yaml', 'w') do |file|
file.write(meta.to_yaml)
end

puts "Done."

0 comments on commit add9ab8

Please sign in to comment.