Skip to content
Snippets Groups Projects
Commit 25817700 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Only use 'is_a' and 'part_of'.

parent f4c6e275
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,10 @@ $dbh->do(
INSERT INTO closure
(child_term_id, parent_term_id, distance, subparent_term_id)
SELECT child_term_id, parent_term_id, 1, child_term_id
FROM relation r
FROM relation r,
relation_type rt
WHERE rt.name IN ('is_a', 'part_of')
AND r.relation_type_id = rt.relation_type_id
) );
my $select_sth = $dbh->prepare(
......
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