Metaphrase Editing API
v1.0

Summary

Metaphrase is a database of Concepts, each of which have a number of elements attached to them: a Concept ID, one or more Atoms, and any number of Semantic Types, Definitions and Relationships. An update interface, then, needs to support the following actions:

All edit transactions will be logged on the server.

Index


EV1 (add element)
EV1 takes a Concept ID and an element, and adds the element to the specified Concept. The element may be any of the following (the fields are "\t"-separated):
ATOM	<source>/<termgp>/<code>	<term>
STY	<TUI>
DEF	<definition>
<rel type>	<Concept ID>	<rela>	<source>

EV2 (delete element)
EV2 is an "undo" for EV1; it takes the same arguments. When successful, the specified element is simply removed from the database.


EV3 (create Concept)
EV3 takes an Atom, and returns a new Concept ID. The newly created Concept will have "local" status. The return is prepended to the arguments in the log (instead of being put in the edit_log_return table).


EV4 (delete Concept)
EV4 takes a Concept ID and deletes the concept, returning the elements of the concept.


EV9 (create Source)
EV9 creates a new source in the database. The argument is of the form:
<SAB>     <local|UMLS>      <description>     <root(s)>


EV12 (set precedence)
EV12 takes two arguments of the form "<SAB>/<termgp>", the first is a new source/termgroup to be inserted in the precedence list just before (ahead of) the second argument.

Note that it is not an error to specify a precedence before the corresponding source has been created (via EV7 or EV9), since the precedence must be defined for every source/termgroup which appears in an enhancements file before the enhancements can be loaded.


EV13 (create Semantic Type or Relation)
EV13 creates a new Semantic Type or Relation in the database. The argument is of either of the following forms:
STY     <TUI>      <name>     <STN>
REL     <TUI>      <name>     <STN>     <inverse>

Copyright © 1999 Lexical Technology, Inc. All rights reserved.

Lexical, Metaphrase, and the Metaphrase Enabled logo are registered trademarks of Lexical Technology, Inc.