Mapping Rules Datamodel

A datamodel for specifying lexical mapping rules. Rules consist of preconditions which are used to match elements to match on, and postconditions which are used to generate new elements. Each rule can be assigned a weight, these weights are summed and then a logit function applied to obtain an SSSOM-compatible confidence score.

URI: https://w3id.org/oak/mapping-rules-datamodel

Name: mapping-rules-datamodel

Classes

Class

Description

Activity

Generic grouping for any lexical operation

        LexicalTransformation

An atomic lexical transformation applied on a term (string) yielding a transformed string

        LexicalTransformationPipeline

A collection of atomic lexical transformations that are applied in serial fashion

Any

None

LexicalGrouping

A grouping of ontology elements by a shared lexical term

LexicalIndex

An index over an ontology keyed by lexical unit

MappingRule

An individual mapping rule, if preconditions match the postconditions are applied

MappingRuleCollection

A collection of mapping rules

Postcondition

None

Precondition

A pattern to be matched against an individual SSSOM mapping

RelationshipToTerm

A relationship of an ontology element to a lexical term

RuleSet

A set of rules for generating synonyms or alternate lexical elements.

Synonymizer

Specification of a rule for generating a synonym or alternate lexical element.

Test

A unit test for a rule, specifies an intended output for an input

Slots

Slot

Description

description

element

element_term

the original term used in the element

groupings

all groupings

in_place

Whether the rule is applied in place or not

input

Input string for the rule

mapping_source_one_of

The source of the mapping to be matched

match

Reg-ex rule to match substrings in labels

match_scope

Synonym scope of the reg-ex rule, e

minimum_confidence

name

object_match_field_one_of

The field in the object to be matched

object_source_one_of

The source of the object to be matched

oneway

if true then subject and object can be switched and predicate inverted

output

Output based on the rule

params

Any parameters to be applied to the transformation algorithm

pipeline

pipelines

all pipelines used to build the index

postconditions

conditions that apply if preconditions match

preconditions

all of the criteria that must be true before a rule is fired

predicate

predicate_id

The predicate that is inferred

predicate_id_one_of

The predicate to be matched

prefix

The prefix that qualifies for the rule

qualifier

Type of match for the new synonym generated

relationships

All ontology elements grouped and their relationship to the normalized term

replacement

Reg-ex rule to replace substrings in labels

rules

all rules

source

subject_match_field_one_of

The field in the subject to be matched

subject_source_one_of

The source of the subject to be matched

synonymized

synonymizer

Normalizing rules to labels

term

A normalized term that groups ontology elements

tests

Unit tests for each rules

transformations

transformations_included_in

type

The type of transformation

weight

Weighting of the rule

Enumerations

Enumeration

Description

TransformationType

A controlled datamodels of the types of transformation that can be applied to

Types

Type

Description

Boolean

A binary (true or false) value

Curie

a compact URI

Date

a date (year, month and day) in an idealized calendar

DateOrDatetime

Either a date or a datetime

Datetime

The combination of a date and time

Decimal

A real number with arbitrary precision that conforms to the xsd:decimal speci…

Double

A real number that conforms to the xsd:double specification

Float

A real number that conforms to the xsd:float specification

Integer

An integer

Jsonpath

A string encoding a JSON Path

Jsonpointer

A string encoding a JSON Pointer

Ncname

Prefix part of CURIE

Nodeidentifier

A URI, CURIE or BNODE that represents a node in a model

Objectidentifier

A URI or CURIE that represents an object in the model

RegularExpressionString

Sparqlpath

A string encoding a SPARQL Property Path

String

A character string

Time

A time object represents a (local) time of day, independent of any particular…

Uri

a complete URI

Uriorcurie

a URI or a CURIE

Subsets

Subset

Description