-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathlexmatch-rules-oboinowl-default.yaml
77 lines (68 loc) · 1.86 KB
/
lexmatch-rules-oboinowl-default.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
rules:
- description: default
postconditions:
predicate_id: skos:closeMatch
weight: -0.02
- 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: shared 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 parentheses bound info from the label.
match: r'\([^)]*\)'
match_scope: "*"
replacement: ""
- synonymizer:
description: Remove box brackets bound info from the label.
match: r'\[[^)]*\]'
match_scope: "*"
replacement: ""