Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Use an Ontology model to parse unstructured text
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
from owl_parser import owl_parser
results = owl_parser(
tokens,
ontology_name="<ontology-name>",
absolute_path="<absolute-path>")
FAQs
Parse Input Text using One-or-More Ontology (OWL) files
We found that owl-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.