Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
changed dateOfdeath to dateOfDeath
Browse files Browse the repository at this point in the history
  • Loading branch information
smurp committed Oct 16, 2013
1 parent ecc1097 commit cdcee47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions orlando2RDFregex4.txt
Expand Up @@ -50,7 +50,7 @@ livedInRegion|<LOCATION RELATIONTO="LIVED">[<\w ="->:_]+?<REGION[<\w ="-:_]+>([\
livedInRegion|<LOCATION RELATIONTO="LIVED">[<\w ="->:_]+?<REGION REG="([\w ,']+)"
livedInGeog|<LOCATION RELATIONTO="LIVED">[<\w ="->:_]+?<GEOG [<\w ="-:_]+>([\w ,']+)</GEOG>
livedInGeog|<LOCATION RELATIONTO="LIVED">[<\w ="->:_]+?<GEOG REG="([\w ,]+)"
dateOfdeath|<DEATH>.+?</DEATH>|<DATE VALUE="([\d-]+?)"
dateOfDeath|<DEATH>.+?</DEATH>|<DATE .+?VALUE="([\d-]+?)"
diedInSettlement|<DEATH>.+?</DEATH>|<SETTLEMENT.+?>([\w ,']+)</SETTLEMENT>
diedInSettlement|<DEATH>.+?</DEATH>|<SETTLEMENT CURRENT="([\w ]+?)"
diedInRegion|<DEATH>.+?</DEATH>|<REGION.+?>([\w ,']+?)</REGION>
Expand Down Expand Up @@ -147,4 +147,4 @@ sheInfluencedConnectionToName|<RECEPTION>.+?</RECEPTION>|<RSHEINFLUENCED>.+?</RS
penaltiesConnectionToName|<RECEPTION>.+?</RECEPTION>|<RPENALTIES>.+?</RPENALTIES><NAME.+?STANDARD="([\w, ]+?)"
recognitionsConnectionToName|<RECEPTION>.+?</RECEPTION>|<RRECOGNITIONS>.+?</RRECOGNITIONS><NAME.+?STANDARD="([\w, ]+?)"
responsesConnectionToName|<RECEPTION>.+?</RECEPTION>|<RRESPONSES>.+?</RRESPONSES><NAME.+?STANDARD="([\w, ]+?)"
textConnectionToGenre|<TEXTUALFEATURES>.+?</TEXTUALFEATURES>|<TITLE>.+?</TITLE>|<TGENRE GENRENAME="([\w ]+?)"
textConnectionToGenre|<TEXTUALFEATURES>.+?</TEXTUALFEATURES>|<TITLE>.+?</TITLE>|<TGENRE GENRENAME="([\w ]+?)"
10 changes: 5 additions & 5 deletions orlando_timeline.js
Expand Up @@ -4,7 +4,7 @@ var example_data = [
"dateOfBirth": [
"1823-08-11"
],
"dateOfdeath": [
"dateOfDeath": [
"1901-03-24"
],
"standardName": [
Expand All @@ -16,7 +16,7 @@ var example_data = [
"dateOfBirth": [
"1880-03-21"
],
"dateOfdeath": [
"dateOfDeath": [
"1949-08-08"
],
"standardName": [
Expand Down Expand Up @@ -84,7 +84,7 @@ var onLoad = function() {
var dtPrs = function(orlDt) {
var parts = orlDt.split('-');
var d = new Date(parts[0],
parts[1]?parts[1]:0,
parts[1]?parseInt(parts[1])-1:-1,
parts[2]?parts[2]:0,
0,0,0,0);
//console.log(d,"<==",orlDt);
Expand All @@ -103,9 +103,9 @@ var addTimelineEventFromOrlandoEntity = function(orlEnt,evtSrc){
caption: orlEnt.standardName[0],
description: orlEnt.standardName[0]+" ("+orlEnt.ID+")"
};
if (orlEnt.dateOfBirth && orlEnt.dateOfdeath) args.durationEvent = true;
if (orlEnt.dateOfBirth && orlEnt.dateOfDeath) args.durationEvent = true;
if (orlEnt.dateOfBirth) args.start = dtPrs(orlEnt.dateOfBirth[0]);
if (orlEnt.dateOfdeath) args.end = dtPrs(orlEnt.dateOfdeath[0]);
if (orlEnt.dateOfDeath) args.end = dtPrs(orlEnt.dateOfDeath[0]);
simEvt = new Timeline.DefaultEventSource.Event(args);
//console.log(args);
evtSrc.add(simEvt);
Expand Down

0 comments on commit cdcee47

Please sign in to comment.