-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding lexical matches to uPheno pipeline
- Loading branch information
Showing
6 changed files
with
12,350 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
rules: | ||
- description: default | ||
postconditions: | ||
predicate_id: skos:closeMatch | ||
weight: 0.0 | ||
|
||
- description: exact to exact | ||
preconditions: | ||
subject_match_field_one_of: | ||
- oio:hasExactSynonym | ||
- rdfs:label | ||
- skos:prefLabel | ||
object_match_field_one_of: | ||
- oio:hasExactSynonym | ||
- rdfs:label | ||
- skos:prefLabel | ||
postconditions: | ||
predicate_id: skos:exactMatch | ||
weight: 2.0 | ||
|
||
- description: >- | ||
label to label; note this is additive with the exact to exact rule, | ||
so the score just represents an additional small boost | ||
preconditions: | ||
subject_match_field_one_of: | ||
- rdfs:label | ||
object_match_field_one_of: | ||
- rdfs:label | ||
postconditions: | ||
predicate_id: skos:exactMatch | ||
weight: 0.5 | ||
- description: xref match | ||
preconditions: | ||
subject_match_field_one_of: | ||
# - oio:hasDbXref | ||
- skos:exactMatch | ||
object_match_field_one_of: | ||
# - oio:hasDbXref | ||
- skos:exactMatch | ||
postconditions: | ||
predicate_id: skos:exactMatch | ||
weight: 4.0 | ||
|
||
- preconditions: | ||
subject_match_field_one_of: | ||
- oio:hasExactSynonym | ||
- rdfs:label | ||
object_match_field_one_of: | ||
- oio:hasBroadSynonym | ||
postconditions: | ||
predicate_id: skos:broadMatch | ||
weight: 2.0 | ||
|
||
- preconditions: | ||
subject_match_field_one_of: | ||
- oio:hasExactSynonym | ||
- rdfs:label | ||
object_match_field_one_of: | ||
- oio:hasNarrowSynonym | ||
postconditions: | ||
predicate_id: skos:narrowMatch | ||
weight: 2.0 | ||
|
||
- synonymizer: | ||
description: Remove box brackets bound info from the label. | ||
match: '\[[^)]*\]' | ||
match_scope: "*" | ||
replacement: "" | ||
|
||
- synonymizer: | ||
description: Remove variant from the label (for matching wbphenotype). | ||
match: 'aberrant' | ||
match_scope: "*" | ||
replacement: "" | ||
|
||
- synonymizer: | ||
description: Remove abnormally from the label. | ||
match: 'abnormally' | ||
match_scope: "*" | ||
replacement: "" | ||
|
||
- synonymizer: | ||
description: Remove abnormal from the label. | ||
match: 'abnormal' | ||
match_scope: "*" | ||
replacement: "" | ||
|
||
- synonymizer: | ||
description: Remove aberrant from the label (for matching dicty). | ||
match: 'aberrant' | ||
match_scope: "*" | ||
replacement: "" | ||
|
||
- synonymizer: | ||
description: Replace "'s" by "s" in the label. | ||
match: "[']s" | ||
match_scope: "*" | ||
replacement: "s" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters