Skip to content

Commit 36c21b0

Browse files
committed
Merge pull request #167 from paxtonhare/add_hr_hub
Add hr hub
2 parents fa85b79 + 3565cbe commit 36c21b0

File tree

48 files changed

+2621
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2621
-63
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ releases/
99
.classpath
1010
.project
1111
gradle-local.properties
12-
/quick-start/environment.properties
13-
/quick-start/assetInstallTime.properties
12+
environment.properties
13+
assetInstallTime.properties
1414
/quick-start/input
1515
/quick-start/plugins
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
<?xml version="1.0" ?><flow xmlns="http://marklogic.com/hub-in-a-box"><name>final</name><entity>Patients</entity><type>conformance</type><complexity>simple</complexity><data-format>application/xml</data-format><plugins></plugins></flow>
1+
<?xml version="1.0" ?>
2+
<!--This file is autogenerated. Please don't edit.-->
3+
<flow xmlns="http://marklogic.com/data-hub">
4+
<complexity>simple</complexity>
5+
<data-format>application/xml</data-format>
6+
<plugins></plugins>
7+
</flow>
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
<?xml version="1.0" ?><flow xmlns="http://marklogic.com/hub-in-a-box"><name>hl7</name><entity>Patients</entity><type>input</type><complexity>simple</complexity><data-format>application/xml</data-format><plugins></plugins></flow>
1+
<?xml version="1.0" ?>
2+
<!--This file is autogenerated. Please don't edit.-->
3+
<flow xmlns="http://marklogic.com/data-hub">
4+
<complexity>simple</complexity>
5+
<data-format>application/xml</data-format>
6+
<plugins></plugins>
7+
</flow>
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
<?xml version="1.0" ?><flow xmlns="http://marklogic.com/hub-in-a-box"><name>nppes</name><entity>patientrecords</entity><type>input</type><complexity>simple</complexity><data-format>application/xml</data-format><plugins></plugins></flow>
1+
<?xml version="1.0" ?>
2+
<!--This file is autogenerated. Please don't edit.-->
3+
<flow xmlns="http://marklogic.com/data-hub">
4+
<complexity>simple</complexity>
5+
<data-format>application/xml</data-format>
6+
<plugins></plugins>
7+
</flow>

examples/hr-hub/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Example HR Hub
2+
This example shows how to load data from 2 HR systems.
3+
4+
The data are separated into 2 folders under the input/ folder.
5+
```
6+
|-- input
7+
|-- AcmeTech
8+
|-- 32920.json
9+
|-- 34324.json
10+
|-- GlobalCorp
11+
|-- DeptTable.csv
12+
|-- EmployeeTable.csv
13+
|-- SalaryTable.csv
14+
```
15+
16+
# TLDR; How do I run it?
17+
Check out the [HR Hub Tutorial](http://marklogic.github.io/marklogic-data-hub/getting-started/#tutorial) on the Datahub Site.
18+
19+
# Global Corp
20+
Global Corp has exported the Employee data from a relational database. They are provided to you as csv files, one for each table.
21+
22+
# Acme Tech
23+
Acme Tech uses a SAAS for managing employees. The data is provided as JSON documents that came straight out of the SAAS REST API.
24+
25+
# What is this example?
26+
In this example we are loading the CSV table dumps from Global Corp and the JSON documents from Acme Tech into the Hub staging area. We then conform the two data sources into the final area by extracting common header fields. The header fields we extract are:
27+
28+
- Employee ID
29+
- Employee Hire Date
30+
- Employee Salary
31+
32+
# Wait. What is a data Hub?
33+
Get started over at the [Data Hub Site](http://marklogic.github.io/marklogic-data-hub)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"id": "32920",
3+
"firstName": "Rosanne",
4+
"lastName": "Henckle",
5+
"dateOfBirth": "05/19/1979",
6+
"hireDate": "11/12/2015",
7+
"salaryHistory": [
8+
{
9+
"effectiveDate": "11/12/2015",
10+
"salary": 63439
11+
},
12+
{
13+
"effectiveDate": "01/14/2016",
14+
"salary": 66300
15+
}
16+
]
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"id": "34324",
3+
"firstName": "Robert",
4+
"lastName": "Smith",
5+
"dateOfBirth": "01/01/1981",
6+
"hireDate": "09/01/2014",
7+
"salaryHistory": [
8+
{
9+
"effectiveDate": "09/01/2014",
10+
"salary": 59832
11+
},
12+
{
13+
"effectiveDate": "09/14/2015",
14+
"salary": 60832
15+
}
16+
]
17+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dept_num,dept_name
2+
1,Sales
3+
2,Marketing
4+
3,Engineering
5+
4,R&D
6+
5,Training

examples/hr-hub/input/GlobalCorp/EmployeeTable.csv

Lines changed: 1001 additions & 0 deletions
Large diffs are not rendered by default.

examples/hr-hub/input/GlobalCorp/SalaryTable.csv

Lines changed: 1001 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)