From 0958273a71dd19c2a90471a182ccc5b90b14e5b4 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 7 Jan 2017 14:00:46 +0100 Subject: Renaming 'schematic' to 'project'. Renaming 'kicad-bom-to-ttl' to 'kicad-import-project'. Renaming 'digikey-download-for-schematic' to 'digikey-download-for-project'. Splitting out the Export xml file code into its own module. init: putting project.url and project.file in config.ini. init: putting db.update-url in config.ini if given on the command line. kicad-import-project: by default, assume that the user want to update local database, optionally write the ttl file to disk. cli.write_graph: create any missing parent directories. --- trygvis/eda/cli/db_stats.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'trygvis/eda/cli/db_stats.py') diff --git a/trygvis/eda/cli/db_stats.py b/trygvis/eda/cli/db_stats.py index aabc46a..babc53b 100755 --- a/trygvis/eda/cli/db_stats.py +++ b/trygvis/eda/cli/db_stats.py @@ -1,21 +1,21 @@ from trygvis.eda import cli -def run(): +def run(args: object): def db_stats(g): res = cli.sparql(g, """ -SELECT ?schematic ?label +SELECT ?project ?label WHERE { - ?schematic a kicad-type:schematic + ?project a kicad-type:project OPTIONAL { - ?schematic rdfs:label ?label + ?project rdfs:label ?label } } """) - cli.info("Found %d schematics in database" % len(res)) + cli.info("Found %d projects in database" % len(res)) for row in res: name = row.label if row.label is not None else "" - url = row.schematic + url = row.project cli.info("%s:" % name) cli.info(" URL: %s" % url) -- cgit v1.2.3