diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-10-15 12:48:13 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-10-15 13:37:49 +0200 |
commit | 2deeb192e12e8b0a18c01bf9bd52561db9e9661b (patch) | |
tree | a1c084380912fab1ff8d41776ba5d1670b9c9c5b | |
parent | d801a8e3c61ba1a9e3effd85826f5d4d01f002e7 (diff) | |
download | ee-python-2deeb192e12e8b0a18c01bf9bd52561db9e9661b.tar.gz ee-python-2deeb192e12e8b0a18c01bf9bd52561db9e9661b.tar.bz2 ee-python-2deeb192e12e8b0a18c01bf9bd52561db9e9661b.tar.xz ee-python-2deeb192e12e8b0a18c01bf9bd52561db9e9661b.zip |
souffle rule: Adding rule: dk_manufacturer_part_to_common_footprint.
-rw-r--r-- | src/ee/souffle/digikey.dl | 8 |
1 files changed, 8 insertions, 0 deletions
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) :- |