https://github.com/pr0ck0/bfobuddy
A simple command line tool for bootstrapping ontology development with BFO.
https://github.com/pr0ck0/bfobuddy
barry-smith bfo ontology owl rdf ttl
Last synced: 2 months ago
JSON representation
A simple command line tool for bootstrapping ontology development with BFO.
- Host: GitHub
- URL: https://github.com/pr0ck0/bfobuddy
- Owner: PR0CK0
- Created: 2022-07-22T16:36:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T21:17:39.000Z (almost 4 years ago)
- Last Synced: 2024-01-26T09:19:02.402Z (over 2 years ago)
- Topics: barry-smith, bfo, ontology, owl, rdf, ttl
- Language: Python
- Homepage:
- Size: 484 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bfobuddy
A simple command line tool for bootstrapping ontology development with BFO.
Bare minimum command line script for quickly building a BFO-based taxonomy. This script is a proof-of-concept; more functionality to come.
Made because Protege is an awful platform and should be used as little as possible. BFO is the basis of extension for representing anything in reality.
## Use
Download [bfobuddy.py](bfobuddy.py), then call it in command window like:
```
python bfobuddy.py [input file location]
```
Example file [input.txt](input.txt) provided.
* Interact by typing the number of the class you want to extend (e.g., 0)
* Type the number twice to assert it as a sibling class (e.g., 00), in cases where you do not want to go further down BFO's taxonomy (e.g., for the commonly-extended class Process)
* Once you iterate through all your classes, a file [out.ttl](out.ttl) is put into the same directory.

# Requirements
* Python 3
* First line of input file must be your intended IRI (e.g., http://test.org/test/) (do not forget your IRI end delimiter (/ or #))
* Second line of input file must be your intended prefix (e.g., testo)
* All other lines in file are class names you want to represent in BFO. Ensure these words only use letters and numbers.
# Limitations
* Cannot currently extend classes you create, only BFO classes. This script is a prototype and will be made better in the future.