summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <dr@jones.dk>2013-06-01 16:58:50 +0200
committerJonas <dr@jones.dk>2013-06-01 16:58:50 +0200
commit3a4e74cc902059df840f32a57ecce9f21d420ad2 (patch)
treeb6c64f6804ca358637c6dbe6dc75ae0fd12ba6e0
parent39b7abf53de5f52605d01d62d7c41dfa0d43d003 (diff)
Display full-meal or non-meal food establishements as separate categories.
-rwxr-xr-xbin/rdf2hours6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/rdf2hours b/bin/rdf2hours
index f37ac1c..b99b14c 100755
--- a/bin/rdf2hours
+++ b/bin/rdf2hours
@@ -34,7 +34,8 @@ use HTML::HTML5::Writer;
# TODO: add override options --theme and (multivalued) --category
my @category = <<LIST =~ m/(\S.*\S)/g;
- <http://schema.org/FoodEstablishment>
+ full-meal food
+ non-meal food
<http://schema.org/GroceryStore>
non-grocery store
attraction
@@ -283,7 +284,8 @@ sub daterangedescribe {
sub categorydescribe {
my $cat = shift;
- $cat =~ s!<http://schema.org/FoodEstablishment>!spisesteder!;
+ $cat =~ s!full-meal food!spisesteder!;
+ $cat =~ s!non-meal food!caféer, slikbutikker o.l.!;
$cat =~ s!<http://schema.org/GroceryStore>!dagligvarebutikker!;
$cat =~ s!non-grocery store!øvrige butikker!;
$cat =~ s!attraction!attraktioner og museer!;