From 9eba62ef1d6b4896de693976116f69a9692332d9 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 20 May 2019 15:27:38 +0200 Subject: ee: o Adding FactType as a smaller wrapper around the fact uri. o Adding ee.part.Facts, used as Part.facts o Renaming 'type' uri to 'ee-component-type'. kicad-make-bom: Removing strategy functionality, replaced with part-apply-function. Moving default strategy contents into ee.kicad.functions. --- src/ee/kicad/sch_fact_types.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/ee/kicad/sch_fact_types.py (limited to 'src/ee/kicad/sch_fact_types.py') diff --git a/src/ee/kicad/sch_fact_types.py b/src/ee/kicad/sch_fact_types.py new file mode 100644 index 0000000..c9ea918 --- /dev/null +++ b/src/ee/kicad/sch_fact_types.py @@ -0,0 +1,18 @@ +from ee.part import FactType + + +def make_fact_key(key: str): + return "http://purl.org/ee/kicad-sch-fact-type#{}".format(key) + + +value = FactType(make_fact_key("value"), "Value") +component = FactType(make_fact_key("component"), "Value") + +symbol_library = FactType(make_fact_key("symbol-library"), "Value") +symbol_name = FactType(make_fact_key("symbol-name"), "Value") + +footprint = FactType(make_fact_key("footprint"), "Value") +footprint_library = FactType(make_fact_key("footprint-library"), "Value") +footprint_name = FactType(make_fact_key("footprint-name"), "Value") + +field = FactType(make_fact_key("field"), "Value") -- cgit v1.2.3