Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Apr 4, 2024
1 parent 397a65e commit f415ab0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/semra/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ def get_raw_mappings(configuration: Configuration) -> t.List[Mapping]:
def process(
mappings: t.List[Mapping],
upgrade_prefixes=None,
remove_prefix_set: t.Optional[t.Collection[str]]=None,
keep_prefix_set: t.Optional[t.Collection[str]]=None,
post_remove_prefixes: t.Optional[t.Collection[str]]=None,
post_keep_prefixes: t.Optional[t.Collection[str]]=None,
remove_prefix_set: t.Optional[t.Collection[str]] = None,
keep_prefix_set: t.Optional[t.Collection[str]] = None,
post_remove_prefixes: t.Optional[t.Collection[str]] = None,
post_keep_prefixes: t.Optional[t.Collection[str]] = None,
*,
remove_imprecise: bool = True,
) -> t.List[Mapping]:
Expand Down
5 changes: 4 additions & 1 deletion src/semra/sources/wikidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
from semra.rules import EXACT_MATCH, UNSPECIFIED_MAPPING
from semra.struct import Mapping, MappingSet, SimpleEvidence

__all__ = ["get_wikidata_mappings"]
__all__ = [
"get_wikidata_mappings",
"get_wikidata_mappings_by_prefix",
]


def get_wikidata_mappings(prop: str, predicate: t.Optional[Reference] = None) -> t.List[Mapping]:
Expand Down

0 comments on commit f415ab0

Please sign in to comment.