Skip to content

Commit

Permalink
Fix CI errors (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-vu authored Nov 10, 2023
1 parent bdde902 commit 2f1505b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sand = 'sand.__main__:cli'
[tool.poetry.dependencies]
# restricting the upper bound python version to 3.12, due to RestrictedPython dependency.
python = ">=3.8,<3.12"
kgdata = "^5.3.4"
kgdata = "^5.3.5"
sem-desc = "^5.1.0"
peewee = "^3.15.2"
Flask = "^2.2.2"
Expand Down
8 changes: 6 additions & 2 deletions sand/extensions/export/drepr/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from collections import defaultdict
from io import BytesIO, StringIO
from typing import List, Set
Expand All @@ -21,7 +23,7 @@
Resource,
ResourceType,
)
from kgdata.dbpedia.datasets.ontology_dump import aggregated_triples
from kgdata.misc.resource import RDFResource
from rdflib import RDF, Graph, URIRef
from slugify import slugify
from sm.misc.funcs import assert_not_null
Expand Down Expand Up @@ -241,7 +243,9 @@ def post_processing(
source2triples = defaultdict(list)
for s, p, o in g:
source2triples[s].append((s, p, o))
resources = [aggregated_triples(x) for x in source2triples.items()]
resources = [
RDFResource.from_triples(k, ts) for k, ts in source2triples.items()
]

new_triples = []
for node in outliterals:
Expand Down
2 changes: 2 additions & 0 deletions sand/helpers/dependency_injection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import functools
from contextlib import contextmanager
from inspect import signature
Expand Down

0 comments on commit 2f1505b

Please sign in to comment.