semra
Getting Started
Installation
Mapping Assembly Pipeline
SeMRA Raw Semantic Mappings Database
Domain-specific Processed Mapping Databases
Prioritizing CURIEs in a Dataframe
Data Structure
Getting and Writing Semantic Mappings
Reference
semra.api Module
Functions
apply_mutations
assemble_evidences
assert_projection
count_component_sizes
count_source_target
deduplicate_evidence
filter_many_to_many
filter_mappings
filter_minimum_confidence
filter_prefixes
filter_self_matches
filter_subsets
flip
get_asymmetric_counter
get_identifier_index
get_index
get_many_to_many
get_observed_terms
get_priority_reference
get_symmetric_counter
get_terms
get_test_evidence
get_test_reference
hydrate_subsets
keep_object_prefixes
keep_prefixes
keep_subject_prefixes
print_source_target_counts
prioritize
prioritize_df
project
project_dict
str_source_target_counts
summarize_prefixes
tabulate_index
unindex
update_literal_mappings
validate_mappings
Classes
semra.inference Module
semra.rules Module
semra.vocabulary Module
semra.constants Module
Command Line Interface
Querying with Cypher
semra
Reference
get_asymmetric_counter
View page source
get_asymmetric_counter
get_asymmetric_counter
(
index
:
dict
[
tuple
[
str
,
str
]
,
set
[
str
]
]
,
priority
:
list
[
str
]
,
*
,
terms_exact
:
Mapping
[
str
,
Collection
[
str
]
]
,
terms_observed
:
Mapping
[
str
,
Collection
[
str
]
]
)
→
Counter
[
tuple
[
str
,
str
]
]
[source]
Create a symmetric mapping counts counter from a directed index.