 // Investigators sometimes have end dates that predate the end of the award.
 // For now I'm going to stick this in the relationship.  I'm not really sure
 // this is the best way to do it:
-MERGE (person)<-[awd:awarded_to]-(award)
+MERGE (person)<-[awd:Awarded_to]-(award)
 ON CREATE SET awd.RoleCode = line.`Investigator.RoleCode`,
               awd.StartDate = invStartDate,
               awd.EndDate   = invEndDate


// Since we add the AwardID along the relationship paths, we need to do the awards first.
// We know that all awards have unique AwardIDs:
MERGE (award:Award {AwardID: line.AwardID})

MERGE (institution:Institution { Name: UPPER(line.`Institution.Name`) } )

// The `person` has a fairly limited and there's a problem here that
// common names are going to get duplicated.

// This whole set of relationships gets a basic pass, where we go through 
MERGE (po)-[mgd:Handled]->(award)
	ON CREATE SET mgd.AwardID = [] + line.AwardID
	ON MATCH SET  mgd.AwardID = mgd.AwardID + line.AwardID;
