Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix outdated prefix map #297

Merged
merged 6 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sssom/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
import uuid
from typing import Optional

from linkml.generators.jsonldcontextgen import ContextGenerator

from sssom.constants import SCHEMA_YAML

from .external_context import sssom_external_context
from .internal_context import sssom_context
from .typehints import Metadata, MetadataType, PrefixMap

# HERE = pathlib.Path(__file__).parent.resolve()
Expand All @@ -26,6 +29,7 @@ def get_jsonld_context():

:return: JSON-LD context
"""
sssom_context = ContextGenerator(SCHEMA_YAML).serialize()
return json.loads(sssom_context, strict=False)


Expand Down
165 changes: 0 additions & 165 deletions sssom/internal_context.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_parse_obographs(self):
write_table(msdf, file)
self.assertEqual(
len(msdf.df),
9878,
9876,
f"{self.obographs_file} has the wrong number of mappings.",
)

Expand Down