diff --git a/ontology-build.rb b/ontology-build.rb index 5a44378..055fbe4 100644 --- a/ontology-build.rb +++ b/ontology-build.rb @@ -119,6 +119,7 @@ }.group_by{ |r| r["#{theme}_class"] }.collect{ |classs, sc| sc0 = sc[0] sc = sc.collect{ |rr| + rr['attributes'].any?{ |a| a == '' } and raise "Error: invalid attribute: #{rr['attributes'].inspect}" value = rr['name_over_value'] || rr['value'] [value, { label: { en: value, fr: rr['name:fr'] },