Changes

Jump to: navigation, search

HAMR: Human/Authority Metadata Reconciliation

903 bytes added, 21:18, 7 February 2011
Code
* [http://gitref.org/ quick reference for Git]
* [https://github.com/ryscher/hamr Ryan's really stupid scratch implementation]
 
=== Draft Matching Algorithm ===
<pre>
function compareRecords(localDubCore, authDubCore)
for each element-type:
loc = array of local values
auth = array of authority values
// arrays are actually lists of dictionaries
// a1
// 0 value="Benson, Arnold", match="", strength=""
// 1 value="Terrence, D.", match="a2[3]", strength="100%"
compareElements(loc, auth)
 
 
function compareElements(loc, auth)
output = []
for each element in loc
for each element in auth
strength = string distance between the two elements
if strength = 100
//pop each element and add their values to output array
//output array is also list of dictionaries
//0 loc="Hector", auth="Hector", strength="100"
//1 loc="Albert", auth="Alberto", strength="90"
== Output Spec ==
12
edits

Navigation menu