From 35e0e50852af05da847e703a4efa672bebb61270 Mon Sep 17 00:00:00 2001 From: cmdoret Date: Mon, 8 Jan 2024 14:53:43 +0100 Subject: [PATCH] fix: rm unused linkml-owl helper+undeclared linkml dep --- modo/introspection.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modo/introspection.py b/modo/introspection.py index aa99ca62..7d9a8aa6 100644 --- a/modo/introspection.py +++ b/modo/introspection.py @@ -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 @@ -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