aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ee/souffle/digikey.dl8
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) :-