Skip to content

Commit

Permalink
fix: rm unused linkml-owl helper+undeclared linkml dep
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Jan 8, 2024
1 parent e3b24ce commit 35e0e50
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions modo/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pathlib import Path
from typing import Any, Optional

from linkml.generators.owlgen import MetadataProfile, OwlSchemaGenerator
from linkml_runtime.dumpers import rdflib_dumper
from linkml_runtime.utils.schemaview import SchemaView
from rdflib import Graph
Expand Down Expand Up @@ -59,17 +58,6 @@ def instance_to_graph(instance) -> Graph:
)


def load_schema_rdflib_graph() -> Graph:
"""Load the schema as an RDFLib Graph."""
metadata_profile = MetadataProfile.linkml
schema = OwlSchemaGenerator(
str(SCHEMA_PATH), metadata_profile=metadata_profile
)
ttl_data = schema.serialize(format="owl")
graph = Graph().parse(data=ttl_data, format="turtle")
return graph


def get_slot_range(slot_name: str) -> str:
"""Return the range of a slot."""
return load_schema().get_slot(slot_name).range
Expand Down

0 comments on commit 35e0e50

Please sign in to comment.