Skip to main content

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.17.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

owl_parser-0.1.17-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file owl-parser-0.1.17.tar.gz.

File metadata

  • Download URL: owl-parser-0.1.17.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for owl-parser-0.1.17.tar.gz
Algorithm Hash digest
SHA256 9b445f7187b5d000a44505c07cc3c7d1e8e6885a1f6196d4dbfe9602f03dadd0
MD5 3d465737eea444d4b58e6c3b729cc926
BLAKE2b-256 3b50c64f038310876806cb9dcf6bde8a29cbf6bf84bc2ee32d486e18f768c2e6

See more details on using hashes here.

File details

Details for the file owl_parser-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: owl_parser-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for owl_parser-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 556fc34153eef3ce33791fdd9b38674215cce71ed9e012ffc748f0cdb6cd660b
MD5 ae2a3305cf95597915e56cbeb88f5f7c
BLAKE2b-256 a35e4328d3ad958ea98809d6a0924d9b8b2cb581fa7fb04516bb8bdecc9db6bc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.18

2 files

This release

0.1.17 This release

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page