summaryrefslogtreecommitdiff
path: root/prolog/problems/world_data
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/world_data')
-rw-r--r--prolog/problems/world_data/en.py3
-rw-r--r--prolog/problems/world_data/intro_en.html47
2 files changed, 48 insertions, 2 deletions
diff --git a/prolog/problems/world_data/en.py b/prolog/problems/world_data/en.py
index 3d3cbaf..dd0a328 100644
--- a/prolog/problems/world_data/en.py
+++ b/prolog/problems/world_data/en.py
@@ -2,7 +2,6 @@ name = 'The World Factbook'
description = '''\
<p>
Let's ask prolog some questions about our world, e.g. through which countries a given river flows or which
-two countries are most similar in terms of the size of their populations. For this purpose a database
-containing facts about the world has been loaded. The database comes from the almanac "The World Factbook".
+two countries are most similar in terms of the size of their populations. For this purpose a <a target="_blank" href="[%@resource intro_en.html%]">knowledge base</a> with facts about the world has been loaded. The database comes from the almanac "The World Factbook".
</p>
'''
diff --git a/prolog/problems/world_data/intro_en.html b/prolog/problems/world_data/intro_en.html
new file mode 100644
index 0000000..158a75d
--- /dev/null
+++ b/prolog/problems/world_data/intro_en.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>Prolog: The World Factbook</title>
+ <link rel="stylesheet" type="text/css" href="/css/codeq.css" />
+ <link rel="stylesheet" type="text/css" href="../../style.css" />
+</head>
+<body>
+
+<h1>Prolog: The World Factbook</h1>
+<p>
+The knowledge base for this set contains data about countries and geographic features from the <em>CIA World Factbook</em>. Facts are given using the following predicates:
+</p>
+
+<pre>
+country(Name, Code, Capital, Province, Area, Population)
+population(CountryCode, GrowthRate, Births)
+economy(CountryCode, GDP, Agriculture, Services, Industry, GDPperCapita, Inflation, Unemployment)
+language(CountryCode, Language, Percentage)
+ethnicGroup(CountryCode, Ethnicity, Percentage)
+religion(CountryCode, Religion, Percentage)
+borders(CountryCode1, CountryCode2, Length)
+continent(Name, Area)
+encompasses(CountryCode, Continent, Percentage)
+city(Name, CountryCode, Province, Population, Latitude, Longitude, Elevation)
+cityothername(Name, CountryCode, Province, OtherName)
+province(Name, CountryCode, Population, Area, Capital, CapitalProvince)
+provinceothername(Name, CountryCode, OtherName)
+sea(Name, Depth)
+river(Name, FlowsToRiver, FlowsToLake, FlowsToSea, Length, Basin,
+ SourceLatitude, SourceLongitude, SourceName, SourceElevation,
+ MouthLatitude, MouthLongitude)
+lake(Name, Area, Depth, Elevation, Type, River, Latitude, Longitude)
+riverthrough(River, Lake)
+island(Name, Group, Area, Elevation, Type, Latitude, Longitude)
+mountain(Name, Range, Height, Type, Latitude, Longitude)
+desert(Name, Area, Latitude, Longitude)
+geo_sea(Sea, CountryCode, Province)
+mergesWith(Sea1, Sea2)
+located(City, Province, CountryCode, River, Lake, Sea)
+islandIn(Island, Sea, Lake, River)
+mountainOnIsland(Mountain, Island)
+</pre>
+
+ </body>
+</html>