Commit 45b365cd authored by Tobinsk's avatar Tobinsk
Browse files

Merge branch '8-typology-undefined' into 'master'

Resolve "typology undefined"

Closes #8

See merge request histhub/wikidata-normalizer!16
parents 81730d65 b71c0f33
......@@ -161,7 +161,7 @@ class WikiNormalizer extends Transform {
// Check for geographical instances
return obj.claims.P31.map((instanceOf) => {
try {
return instanceOf.mainsnak.datavalue.value.id;
return instanceOf.mainsnak.datavalue.value.id || null;
} catch (err) {}
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment