forked from D-Net/dnet-hadoop
bug fix in the query, it now exports only relations with non-hidden organizations
This commit is contained in:
parent
0857100fb8
commit
11b22b2d23
|
@ -1,7 +1,7 @@
|
||||||
-- relations approved by the user and suggested by the dedup
|
-- relations approved by the user and suggested by the dedup
|
||||||
SELECT
|
SELECT
|
||||||
local_id AS id1,
|
d.local_id AS id1,
|
||||||
oa_original_id AS id2,
|
d.oa_original_id AS id2,
|
||||||
'openaire____::openorgs' AS collectedfromid,
|
'openaire____::openorgs' AS collectedfromid,
|
||||||
'OpenOrgs Database' AS collectedfromname,
|
'OpenOrgs Database' AS collectedfromname,
|
||||||
false AS inferred,
|
false AS inferred,
|
||||||
|
@ -9,6 +9,10 @@ SELECT
|
||||||
0.99 AS trust,
|
0.99 AS trust,
|
||||||
'' AS inferenceprovenance
|
'' AS inferenceprovenance
|
||||||
FROM
|
FROM
|
||||||
oa_duplicates
|
oa_duplicates d
|
||||||
|
|
||||||
|
LEFT OUTER JOIN
|
||||||
|
organizations o ON (d.local_id = o.id)
|
||||||
|
|
||||||
WHERE
|
WHERE
|
||||||
reltype = 'is_similar' OR reltype = 'suggested';
|
(d.reltype = 'is_similar' OR d.reltype = 'suggested') AND (o.status != 'hidden');
|
Loading…
Reference in New Issue