Skip to content

Commit

Permalink
Adds data source properties to elasticsearch, wikipedia and google-dr…
Browse files Browse the repository at this point in the history
…ive (#1282)
  • Loading branch information
rvztz authored Sep 19, 2023
1 parent 92e18c3 commit 9a3e24f
Show file tree
Hide file tree
Showing 18 changed files with 468 additions and 70 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## 0.10.16-dev1
## 0.10.16-dev2


### Enhancements

* **Adds data source properties to Airtable, Confluence and Discord connectors** These properties (date_created, date_modified, version, source_url, record_locator) are written to element metadata during ingest, mapping elements to information about the document source from which they derive. This functionality enables downstream applications to reveal source document applications, e.g. a link to a GDrive doc, Salesforce record, etc.
* **Adds data source properties to Airtable, Confluence, Discord, Elasticsearch, Google Drive, and Wikipedia connectors** These properties (date_created, date_modified, version, source_url, record_locator) are written to element metadata during ingest, mapping elements to information about the document source from which they derive. This functionality enables downstream applications to reveal source document applications, e.g. a link to a GDrive doc, Salesforce record, etc.

### Features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"type": "Title",
"element_id": "0baaf6f25d1c5da82d9e4a3229cd45bd",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "0"
}
},
"filetype": "text/plain"
},
"text": "American"
Expand All @@ -12,7 +19,14 @@
"type": "Title",
"element_id": "0d15a8bf4961deb609a392a8444e3520",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "0"
}
},
"filetype": "text/plain"
},
"text": "Cecil Hepworth"
Expand All @@ -21,7 +35,14 @@
"type": "NarrativeText",
"element_id": "a1515877c1c63770057b2615cce25c5d",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "0"
}
},
"filetype": "text/plain"
},
"text": "Alice follows a large white rabbit down a \"Rabbit-hole\". She finds a tiny door. When she finds a bottle labeled \"Drink me\", she does, and shrinks, but not enough to pass through the door. She then eats something labeled \"Eat me\" and grows larger. She finds a fan when enables her to shrink enough to get into the \"Garden\" and try to get a \"Dog\" to play with her. She enters the \"White Rabbit's tiny House,\" but suddenly resumes her normal size. In order to get out, she has to use the \"magic fan.\""
Expand All @@ -30,7 +51,14 @@
"type": "NarrativeText",
"element_id": "58ec505c394f8af4fc5c62bad6973652",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "0"
}
},
"filetype": "text/plain"
},
"text": "She enters a kitchen, in which there is a cook and a woman holding a baby. She persuades the woman to give her the child and takes the infant outside after the cook starts throwing things around. The baby then turns into a pig and squirms out of her grip. \"The Duchess's Cheshire Cat\" appears and disappears a couple of times to Alice and directs her to the Mad Hatter's \"Mad Tea-Party.\" After a while, she leaves."
Expand All @@ -39,7 +67,14 @@
"type": "NarrativeText",
"element_id": "fffac28d27f8cea00e96f1e876a1d1f8",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "0"
}
},
"filetype": "text/plain"
},
"text": "The Queen invites Alice to join the \"ROYAL PROCESSION\": a parade of marching playing cards and others headed by the White Rabbit. When Alice \"unintentionally offends the Queen\", the latter summons the \"Executioner\". Alice \"boxes the ears\", then flees when all the playing cards come for her. Then she wakes up and realizes it was all a dream."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"type": "Title",
"element_id": "0baaf6f25d1c5da82d9e4a3229cd45bd",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "1"
}
},
"filetype": "text/plain"
},
"text": "American"
Expand All @@ -12,7 +19,14 @@
"type": "Title",
"element_id": "576608bb13aa67420e79d575e0e26071",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "1"
}
},
"filetype": "text/plain"
},
"text": "Wallace McCutcheon and Ediwin S. Porter"
Expand All @@ -21,7 +35,14 @@
"type": "NarrativeText",
"element_id": "d30707943c5b8e45088e21b0a9ba6f1a",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "1"
}
},
"filetype": "text/plain"
},
"text": "Boone's daughter befriends an Indian maiden as Boone and his companion start out on a hunting expedition. While he is away, Boone's cabin is attacked by the Indians, who set it on fire and abduct Boone's daughter. Boone returns, swears vengeance, then heads out on the trail to the Indian camp. His daughter escapes but is chased. The Indians encounter Boone, which sets off a huge fight on the edge of a cliff. A burning arrow gets shot into the Indian camp. Boone gets tied to the stake and tortured. The burning arrow sets the Indian camp on fire, causing panic. Boone is rescued by his horse, and Boone has a knife fight in which he kills the Indian chief. [2]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"type": "Title",
"element_id": "0baaf6f25d1c5da82d9e4a3229cd45bd",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "2"
}
},
"filetype": "text/plain"
},
"text": "American"
Expand All @@ -12,7 +19,14 @@
"type": "Title",
"element_id": "b764cdc0eab7137467211272fa539f12",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "2"
}
},
"filetype": "text/plain"
},
"text": "Unknown"
Expand All @@ -21,7 +35,14 @@
"type": "NarrativeText",
"element_id": "2659129a67b301911027d0ea747109e4",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "2"
}
},
"filetype": "text/plain"
},
"text": "Before heading out to a baseball game at a nearby ballpark, sports fan Mr. Brown drinks several highball cocktails. He arrives at the ballpark to watch the game, but has become so inebriated that the game appears to him in reverse, with the players running the bases backwards and the baseball flying back into the pitcher's hand. After the game is over, Mr. Brown is escorted home by one of his friends. When they arrive at Brown's house, they encounter his wife who becomes furious with the friend and proceeds to physically assault him, believing he is responsible for her husband's severe intoxication. [1]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"type": "Title",
"element_id": "0baaf6f25d1c5da82d9e4a3229cd45bd",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "3"
}
},
"filetype": "text/plain"
},
"text": "American"
Expand All @@ -12,7 +19,14 @@
"type": "Title",
"element_id": "9496aba3ea633310e2d669820269ad00",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "3"
}
},
"filetype": "text/plain"
},
"text": "Edwin Stanton Porter"
Expand All @@ -21,7 +35,14 @@
"type": "NarrativeText",
"element_id": "6ead4aca7b509813147c41699dd1a7d4",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "3"
}
},
"filetype": "text/plain"
},
"text": "The plot is that of a black woman going to the dentist for a toothache and being given laughing gas. On her way walking home, and in other situations, she can't stop laughing, and everyone she meets \"catches\" the laughter from her, including a vendor and police officers."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"type": "Title",
"element_id": "0baaf6f25d1c5da82d9e4a3229cd45bd",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "4"
}
},
"filetype": "text/plain"
},
"text": "American"
Expand All @@ -12,7 +19,14 @@
"type": "Title",
"element_id": "9abdc842ab4bacbaa4da45cec2ef7e0d",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "4"
}
},
"filetype": "text/plain"
},
"text": "D. W. Griffith"
Expand All @@ -21,7 +35,14 @@
"type": "NarrativeText",
"element_id": "b8004022d0994669c5fdb4ec8a5088a9",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "4"
}
},
"filetype": "text/plain"
},
"text": "On a beautiful summer day a father and mother take their daughter Dollie on an outing to the river. The mother refuses to buy a gypsy's wares. The gypsy tries to rob the mother, but the father drives him off. The gypsy returns to the camp and devises a plan. They return and kidnap Dollie while her parents are distracted. A rescue crew is organized, but the gypsy takes Dollie to his camp. They gag Dollie and hide her in a barrel before the rescue party gets to the camp. Once they leave the gypsies and escapes in their wagon. As the wagon crosses the river, the barrel falls into the water. Still sealed in the barrel, Dollie is swept downstream in dangerous currents. A boy who is fishing in the river finds the barrel, and Dollie is reunited safely with her parents."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"type": "Title",
"element_id": "0baaf6f25d1c5da82d9e4a3229cd45bd",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "5"
}
},
"filetype": "text/plain"
},
"text": "American"
Expand All @@ -12,7 +19,14 @@
"type": "Title",
"element_id": "9abdc842ab4bacbaa4da45cec2ef7e0d",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "5"
}
},
"filetype": "text/plain"
},
"text": "D. W. Griffith"
Expand All @@ -21,7 +35,14 @@
"type": "NarrativeText",
"element_id": "8e16a508f3df737af12e84d9cba2c7d0",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "5"
}
},
"filetype": "text/plain"
},
"text": "A thug accosts a girl as she leaves her workplace but a man rescues her. The thug vows revenge and, with the help of two friends, attacks the girl and her rescuer again as they're going for a walk. This time they succeed in kidnapping the rescuer. He is bound and gagged and taken away in a cart. The girl runs home and gets help from several neighbors. They track the ruffians down to a cabin in the mountains where the gang has trapped their victim and set the cabin on fire. A thug and Rescuer fight on the roof of the house."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"type": "Title",
"element_id": "0baaf6f25d1c5da82d9e4a3229cd45bd",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "6"
}
},
"filetype": "text/plain"
},
"text": "American"
Expand All @@ -12,7 +19,14 @@
"type": "Title",
"element_id": "2ac7798b427181278fb2b450e28f4902",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "6"
}
},
"filetype": "text/plain"
},
"text": "D.W. Griffith"
Expand All @@ -21,7 +35,14 @@
"type": "NarrativeText",
"element_id": "9e92dee6e0d6ef246f51d7f8f4eb8c01",
"metadata": {
"data_source": {},
"data_source": {
"version": 1,
"record_locator": {
"url": "http://localhost:9200",
"index_name": "movies",
"document_id": "6"
}
},
"filetype": "text/plain"
},
"text": "A young couple decides to elope after being caught in the midst of a romantic moment by the woman's angry father. They make plans to leave, but a thief discovers their plans and hides in their trunk and waits for the right moment to steal their belongings."
Expand Down
Loading

0 comments on commit 9a3e24f

Please sign in to comment.