aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-10-16 16:26:19 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-10-16 16:26:19 +0200
commitf45706d52e42dc9fef4a4b3b98f575c83aee12ec (patch)
treee2971f334ae0060fdf25a0bb581806e415ed4599
parent3d6f086c0ac32b25d770b9451af5fac9069b40f5 (diff)
downloadee-python-f45706d52e42dc9fef4a4b3b98f575c83aee12ec.tar.gz
ee-python-f45706d52e42dc9fef4a4b3b98f575c83aee12ec.tar.bz2
ee-python-f45706d52e42dc9fef4a4b3b98f575c83aee12ec.tar.xz
ee-python-f45706d52e42dc9fef4a4b3b98f575c83aee12ec.zip
digikey souffle: adding classifications and values.
-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).