Skip to content

Commit

Permalink
add onet cubes
Browse files Browse the repository at this point in the history
  • Loading branch information
hermosillajelmy committed Oct 31, 2023
1 parent 2dfc412 commit 1058411
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 0 deletions.
19 changes: 19 additions & 0 deletions schema/dim_shared_cip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Schema name="tesseract-api" default_locale="en">
<SharedDimension name="CIP">
<Hierarchy name="CIP">
<Table name="ipeds_dims_cip"/>
<Level key_column="cip2" name_column="cip2_name" name="CIP2">
<Property key_column="cip2_name_long" name="CIP2 Full Name"/>
<Property key_column="cip2_description" name="CIP2 Description"/>
</Level>
<Level key_column="cip4" name_column="cip4_name" name="CIP4">
<Property key_column="cip4_name_long" name="CIP4 Full Name"/>
<Property key_column="cip4_description" name="CIP4 Description"/>
</Level>
<Level key_column="cip" name_column="cip_name" name="CIP6">
<Property key_column="cip_name_long" name="CIP6 Full Name"/>
<Property key_column="cip_description" name="CIP6 Description"/>
</Level>
</Hierarchy>
</SharedDimension>
</Schema>
11 changes: 11 additions & 0 deletions schema/dim_shared_pums.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Schema name="tesseract-api" default_locale="en">
<SharedDimension name="PUMS Occupation">
<Hierarchy name="PUMS Occupation">
<Table name="pums_dims_soc"/>
<Level key_column="great_grandparent" name_column="great_grandparent_name" name="Major Occupation Group"/>
<Level key_column="grandparent" name_column="grandparent_name" name="Minor Occupation Group"/>
<Level key_column="parent" name_column="parent_name" name="Broad Occupation"/>
<Level key_column="id" name_column="name" name="Detailed Occupation"/>
</Hierarchy>
</SharedDimension>
</Schema>
9 changes: 9 additions & 0 deletions schema/dim_shared_skill.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Schema name="tesseract-api" default_locale="en">
<SharedDimension name="Skill Element">
<Hierarchy name="Skill Element">
<Table name="dim_skill" />
<Level name="Skill Element Group" key_column="element_group_id" name_column="element_group_name" key_type="str"/>
<Level name="Skill Element" key_column="element_id" name_column="element_name" key_type="str"/>
</Hierarchy>
</SharedDimension>
</Schema>
42 changes: 42 additions & 0 deletions schema/onet_by_cip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<Schema name="tesseract-api" default_locale="en">
<Cube name="onet_by_cip">
<Annotation name="source_name">O*NET Online</Annotation>
<Annotation name="source_description">The O*Net Skills is a dataset containing detailed descriptions of the required and used skills for specific occupations. The O*Net dataset is sponsored by the United States Department of Labor.</Annotation>
<Annotation name="dataset_name">O*NET by Classification of Instructional Programs</Annotation>
<Annotation name="dataset_link">http://www.onetonline.org/</Annotation>
<Annotation name="topic">Education</Annotation>
<Annotation name="subtopic">Skills</Annotation>

<Table name="onet_by_cip" />

<DimensionUsage foreign_key="cip_code" name="CIP" source="CIP" />
<DimensionUsage name="Skill Element" foreign_key="element_id" source="Skill Element" />

<Dimension name="Year" foreign_key="year" type="time">
<Annotation name="dim_type">TIME</Annotation>
<Hierarchy name="Year" primary_key="Year">
<Level name="Year" key_column="year" key_type="u16"/>
</Hierarchy>
</Dimension>

<Measure aggregator="avg" key_column="im" name="IM Value">
<Annotation name="aggregation_method">NONE</Annotation>
<Annotation name="units_of_measurement">NONE</Annotation>
<Annotation name="details">Not used for presentation</Annotation>
<Annotation name="hide_in_ui">true</Annotation>
</Measure>

<Measure aggregator="avg" key_column="lv" name="LV Value">
<Annotation name="aggregation_method">NONE</Annotation>
<Annotation name="units_of_measurement">NONE</Annotation>
<Annotation name="details">Not used for presentation</Annotation>
<Annotation name="hide_in_ui">true</Annotation>
</Measure>

<Measure aggregator="avg" key_column="total_score" name="Total Score">
<Annotation name="aggregation_method">NONE</Annotation>
<Annotation name="units_of_measurement">NONE</Annotation>
<Annotation name="details">Calculated by IM Value * LV Value</Annotation>
</Measure>
</Cube>
</Schema>
48 changes: 48 additions & 0 deletions schema/onet_by_pums.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<Schema name="tesseract-api" default_locale="en">
<Cube name="onet_by_pums">
<Annotation name="source_name">O*NET Online</Annotation>
<Annotation name="source_description">The O*Net Skills is a dataset containing detailed descriptions of the required and used skills for specific occupations. The O*Net dataset is sponsored by the United States Department of Labor.</Annotation>
<Annotation name="dataset_name">O*NET by PUMS Occupation</Annotation>
<Annotation name="dataset_link">http://www.onetonline.org/</Annotation>
<Annotation name="topic">Economy</Annotation>
<Annotation name="subtopic">Skills</Annotation>

<Table name="onet_by_pums"/>

<DimensionUsage foreign_key="pums_code" name="PUMS Occupation" source="PUMS Occupation" />
<DimensionUsage name="Skill Element" foreign_key="element_id" source="Skill Element" />

<Dimension name="Year" foreign_key="year" type="time">
<Annotation name="dim_type">TIME</Annotation>
<Hierarchy name="Year" primary_key="Year">
<Level name="Year" key_column="year" key_type="u16"/>
</Hierarchy>
</Dimension>

<Measure aggregator="avg" key_column="im" name="IM Value">
<Annotations>
<Annotation name="aggregation_method">NONE</Annotation>
<Annotation name="units_of_measurement">NONE</Annotation>
<Annotation name="details">Not used for presentation</Annotation>
<Annotation name="hide_in_ui">true</Annotation>
</Annotations>
</Measure>

<Measure aggregator="avg" key_column="lv" name="LV Value">
<Annotations>
<Annotation name="aggregation_method">NONE</Annotation>
<Annotation name="units_of_measurement">NONE</Annotation>
<Annotation name="details">Not used for presentation</Annotation>
<Annotation name="hide_in_ui">true</Annotation>
</Annotations>
</Measure>

<Measure aggregator="avg" key_column="total_score" name="Total Score">
<Annotations>
<Annotation name="aggregation_method">NONE</Annotation>
<Annotation name="units_of_measurement">NONE</Annotation>
<Annotation name="details">Calculated by IM Value * LV Value</Annotation>
</Annotations>
</Measure>
</Cube>
</Schema>

0 comments on commit 1058411

Please sign in to comment.