aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ee/souffle/digikey.dl24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ee/souffle/digikey.dl b/src/ee/souffle/digikey.dl
index b1c65b0..e48b234 100644
--- a/src/ee/souffle/digikey.dl
+++ b/src/ee/souffle/digikey.dl
@@ -54,3 +54,27 @@ supplier_device_package_to_footprint("SOD-323", "SOD-323").
add_fact(part, "http://purl.org/ee/fact-type/footprint", footprint) :-
fact(part, SUPPLIER_DEVICE_PACKAGE, dk),
supplier_device_package_to_footprint(dk, footprint).
+
+// Component classifications
+
+.decl resistor(part: symbol)
+add_fact(Part, "http://purl.org/ee/fact-type/ee-component-type", "http://purl.org/ee/part-type#resistor") :-
+ resistor(Part).
+
+.decl dk_resistance(part: symbol, resistance: symbol)
+dk_resistance(Part, Value) :- fact(Part, "http://purl.org/ee/digikey-fact-key#2085", Value).
+
+.decl capacitor(part: symbol)
+add_fact(Part, "http://purl.org/ee/fact-type/ee-component-type", "http://purl.org/ee/part-type#capacitor") :-
+ capacitor(Part).
+
+.decl dk_capacitance(part: symbol, resistance: symbol)
+dk_capacitance(Part, Value) :- fact(Part, "http://purl.org/ee/digikey-fact-key#2049", Value).
+
+.decl inductor(part: symbol)
+add_fact(Part, "http://purl.org/ee/fact-type/ee-component-type", "http://purl.org/ee/part-type#inductor") :-
+ inductor(Part).
+
+.decl crystal(part: symbol)
+add_fact(Part, "http://purl.org/ee/fact-type/ee-component-type", "http://purl.org/ee/part-type#crystal") :-
+ crystal(Part).