From 5f12ee84322731ce9b846a27852999ff219c75b5 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 15 Aug 2019 13:56:51 +0200 Subject: kicad.dl: Always add fact-type/value for all components. Still adding the more specific values for known part types. bom: Use the correct URI for finding the value. Don't die if a part has both value and mpn, and they reference the same part. --- src/ee/souffle/kicad.dl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ee/souffle') diff --git a/src/ee/souffle/kicad.dl b/src/ee/souffle/kicad.dl index 734811c..06633aa 100644 --- a/src/ee/souffle/kicad.dl +++ b/src/ee/souffle/kicad.dl @@ -169,3 +169,8 @@ mounting_hole(Part) :- add_fact(Part, "http://purl.org/ee/fact-type/ee-component-type", "http://purl.org/ee/part-type#mounting-hole") :- mounting_hole(Part). + +// Value + +add_fact(Part, "http://purl.org/ee/fact-type/value", value) :- + fact(Part, "http://purl.org/ee/kicad-sch-fact-type#value", value). -- cgit v1.2.3