From 2deeb192e12e8b0a18c01bf9bd52561db9e9661b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 15 Oct 2019 12:48:13 +0200 Subject: souffle rule: Adding rule: dk_manufacturer_part_to_common_footprint. --- src/ee/souffle/digikey.dl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/ee/souffle/digikey.dl b/src/ee/souffle/digikey.dl index e168db9..fad22dd 100644 --- a/src/ee/souffle/digikey.dl +++ b/src/ee/souffle/digikey.dl @@ -24,12 +24,20 @@ fact(part, "http://purl.org/ee/fact-type/footprint", res) :- . */ +.decl dk_manufacturer_part_to_common_footprint(mpn:symbol, common_footprint:symbol) + +add_fact(part, "http://purl.org/ee/fact-type/footprint", common_footprint) :- + part_pn(part, _, mpn), + dk_manufacturer_part_to_common_footprint(mpn, common_footprint). + .decl dk_to_ipc(dk:symbol, ipc:symbol) dk_to_ipc("0402 (1005 Metric)", "1005"). dk_to_ipc("0402 (1006 Metric)", "1005"). // compatible enough +dk_to_ipc("0603 (1608 Metric)", "1608"). dk_to_ipc("0805 (2012 Metric)", "2012"). dk_to_ipc("1206 (3216 Metric)", "3216"). +dk_to_ipc("1210 (3225 Metric)", "3225"). dk_to_ipc("1812 (4532 Metric)", "4532"). add_fact(part, "http://purl.org/ee/fact-type/footprint", ipc) :- -- cgit v1.2.3