{"id":25843087,"url":"https://github.com/incatools/tetool","last_synced_at":"2025-08-08T04:34:20.353Z","repository":{"id":71041379,"uuid":"95038185","full_name":"INCATools/tetool","owner":"INCATools","description":"NPM CLI tool for creating and manipulating INCA Form configuration files and directories","archived":false,"fork":false,"pushed_at":"2018-06-22T02:51:48.000Z","size":20,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T06:39:20.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/INCATools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-21T19:21:15.000Z","updated_at":"2018-06-26T17:34:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"9232e3d1-8636-408a-a785-bfde83485bfc","html_url":"https://github.com/INCATools/tetool","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/INCATools/tetool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Ftetool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Ftetool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Ftetool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Ftetool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/INCATools","download_url":"https://codeload.github.com/INCATools/tetool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INCATools%2Ftetool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269365530,"owners_count":24405229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-01T06:38:07.857Z","updated_at":"2025-08-08T04:34:20.345Z","avatar_url":"https://github.com/INCATools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tetool - Node CLI tool for managing table-editor configurations\n\n`tetool` builds a static website that incorporates [INCAForm](https://github.com/incatools/table-editor) to provide a way to edit CSV and TSV (collectively, XSV) files with guided autocomplete. The tool scans a source directory for [DOSDP](https://github.com/dosumis/dead_simple_owl_design_patterns)patterns and corresponding XSV files and produces the resulting static website in a form that may be served via GitHub Pages or any other web hosting mechanism.\n\n[![npm](https://img.shields.io/npm/v/tetool.svg)](https://www.npmjs.com/package/tetool)\n\n## Requirements\n\n* [Node.js](http://nodejs.org/) version 6.10.0 or higher\n\n## Installation\n\n`npm install -g tetool`\n\n\n## Usage\n\n\ttetool --help\n    tetool --site \u003ctargetSiteDir\u003e --title \u003ctargetSiteTitle\u003e\n    tetool --site \u003ctargetSiteDir\u003e --source \u003contologySourceDir\u003e\n    tetool --site \u003ctargetSiteDir\u003e --source \u003contologySourceDir\u003e@\u003cbranchName\u003e\n\n## Examples\n\n    tetool --site ../exposure-inca-form/ --title 'Exposure Ontology'\n    tetool --site ../exposure-inca-form/ --source ../environmental-exposure-ontology/\n    tetool --site ../planteome-inca-form/ --source ../plant-trait-ontology/@clean-dp\n\n### Building the IncaForm site for `exposure-inca-form`\n\nThis example assumes that a single ontology repo will be used. For this example, the local copy of the `environmental-exposure-ontology` repo will be used as a source of patterns and XSVs.\n\n- `cd` to the site directory, which may not yet contain a `docs/` directory:\n\tcd exposure-inca-form/\n- Use `tetool` to create a site directory:\n\ttetool --site ./\n- This will create `docs/`, `docs/configurations/`, and `docs/index.html`\n- Use `tetool` to augment the site directory with configurations based upon ontology source directories\n\ttetool --site ./ --source ../environmental-exposure-ontology/\n\n## Assumptions about the source directory structure\n\nIn order to simplify the use of `tetool`, we make the assumption that a source ontology repository has a hierarchy resembling that in https://github.com/EnvironmentOntology/environmental-exposure-ontology:\n    source-repo/\n        src/\n            ontology/\n                a.csv\n                b.csv\n                ...\n            patterns/\n                a.yaml\n                b.yaml\n                ...\n\nIn order to support Planteome, this was kludged to support structures like those in https://github.com/Planteome/plant-trait-ontology:\n    source-repo/\n        patterns/\n            a.yaml\n            a/\n                a.csv\n            b.yaml\n            b/\n                b.csv\n\n#### Known Issues\n\nThe current [GO ontology repo](https://github.com/geneontology/go-ontology) does not follow either of the file structures above, and therefore `tetool` will fail to find the appropriate patterns and XSV files when building the `docs/` site. The workaround is to hand-edit the generated files to add any patterns or XSV that were not detected.\n\nLonger term, `tetool` should be fixed to support a broader and perhaps a more general pattern-finding mechanism, or the user must have the ability to explicitly specify pattern files, rather than having them detected by `tetool`.\n\n\n## Developing `tetool`\n\n- Clone the repo\n- cd to the repo directory\n- npm install # Install dependencies\n- Invent!\n- npm install -g # Install tetool globally, from the local working directory\n\n\n### Version History\n\n0.0.1 - Initial version of tetool installed into NPM\n0.0.2 - Adds --local option for ease of development. Adds 'Thing' as a global class available for autocomplete. Add 'src/ontology/patterns' as a possible location to discover pattern files. Add more documentation to README.\n0.0.3 - Adds support for 'prebuilt' configurations, which are simply copied into the output directory. Adds support for an explicit output directory instead of the default '/docs'.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincatools%2Ftetool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincatools%2Ftetool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincatools%2Ftetool/lists"}