From f45706d52e42dc9fef4a4b3b98f575c83aee12ec Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 16 Oct 2019 16:26:19 +0200 Subject: digikey souffle: adding classifications and values. --- src/ee/souffle/digikey.dl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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). -- cgit v1.2.3