From d8bb3aa6f51b331ef6ce3558707627be7a50c7ad Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 27 May 2019 15:16:12 +0200 Subject: souffle: o Allowing to set MPNs when importing facts. o ninja: Allowing the user to have its own datalog files under ee/custom/kicad-souffle.dl and ee/custom/$supplier-souffle.dl. make_bom: Generate per-field URIs for custom URIs. Better than making values that contain custom field name + value. --- src/ee/kicad/sch_fact_types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 index c9ea918..0e6ee1c 100644 --- a/src/ee/kicad/sch_fact_types.py +++ b/src/ee/kicad/sch_fact_types.py @@ -4,6 +4,9 @@ from ee.part import FactType def make_fact_key(key: str): return "http://purl.org/ee/kicad-sch-fact-type#{}".format(key) +def make_custom_field_key(field_name: str): + return "http://purl.org/ee/kicad-sch-custom-fact-type#{}".format(field_name) + value = FactType(make_fact_key("value"), "Value") component = FactType(make_fact_key("component"), "Value") @@ -14,5 +17,3 @@ 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