diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ee/souffle/kicad.dl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ee/souffle/kicad.dl b/src/ee/souffle/kicad.dl index 3df801f..734811c 100644 --- a/src/ee/souffle/kicad.dl +++ b/src/ee/souffle/kicad.dl @@ -72,6 +72,28 @@ add_fact(Part, "http://purl.org/ee/fact-type/ee-component-type", "http://purl.or inductor(Part). // --------------------------------------------------------------------------------------------------------------------- +// LED rules + +.decl led_symbol(lib:symbol, name:symbol) + +.decl led_lib(lib:symbol) +led_lib("led_SMD"). + +.decl led(uri:symbol) + +led(Part) :- + fact(Part, "http://purl.org/ee/kicad-sch-fact-type#footprint-library", lib), + led_lib(lib). + +led(Part) :- + fact(Part, "http://purl.org/ee/kicad-sch-fact-type#symbol-library", lib), + fact(Part, "http://purl.org/ee/kicad-sch-fact-type#symbol-name", name), + led_symbol(lib, name). + +add_fact(Part, "http://purl.org/ee/fact-type/ee-component-type", "http://purl.org/ee/part-type#led") :- + led(Part). + +// --------------------------------------------------------------------------------------------------------------------- // Net tie rules // Net ties and test points should probably not be marked as components to buy. Test points is possible to buy and |