Ontology Parser (owl-parser)
Use an Ontology model to parse unstructured text
Under the hood
This is the root level method.
The input parameters and return values have well-described data types.
def owl_parser(tokens: list,
ontology_name: str,
absolute_path: str) -> list:
Enforcer.is_list_of_dicts(tokens)
Enforcer.is_str(ontology_name)
FileIO.exists_or_error(absolute_path)
from owl_finder.multiquery.bp import FindOntologyData
from owl_parser.bp import MutatoAPI
finder = FindOntologyData(ontologies=[ontology_name],
absolute_path=absolute_path)
results = MutatoAPI(finder).swap(tokens)
Enforcer.is_list_of_dicts(results)
return results
Import
from owl_parser import owl_parser
Usage
results = owl_parser(
tokens,
ontology_name="<ontology-name>",
absolute_path="<absolute-path>")
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
owl-parser-0.1.14.tar.gz
(13.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file owl-parser-0.1.14.tar.gz.
File metadata
- Download URL: owl-parser-0.1.14.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.1.13 CPython/3.8.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b053b3dc28a97c46ccbc30670be6058ca8d981f6a9f67e929c885146f8f5665
|
|
| MD5 |
7ed229d4a9ab53f2265ace7997f2c8f3
|
|
| BLAKE2b-256 |
bb6e0b959d8d3532b060a239a76a6f0ba2328a78079d8790d9776c4a367a43e8
|
File details
Details for the file owl_parser-0.1.14-py3-none-any.whl.
File metadata
- Download URL: owl_parser-0.1.14-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.1.13 CPython/3.8.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
797dbef78d371944e87dc7a9c5f08d8836db98db4e95788a59fd3c5719130e64
|
|
| MD5 |
3b6f5c45a729155c308b586fdf540a92
|
|
| BLAKE2b-256 |
cfde9d8693b460ffc08fac626c14d3e11d13b610a66a848b12f2222eb7985977
|