Skip to content

LoTeK-Zone/dataset-multi-level-tree-test-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi Level Example Trees

Version License Data Demo Status

Neutral example tree datasets for testing tree views, JSON views, XML views, parsers, import pipelines, and hierarchical UI components.

Description

This repository provides neutral hierarchical example data for developers who need ready-to-use trees for:

  • tree view components
  • JSON viewers
  • XML viewers
  • parser tests
  • import and export tests
  • hierarchical UI prototypes
  • sample datasets for development and debugging

The dataset is intentionally broad, neutral, and non-branded.

Screenshot

Demo Example Trees Screenshot

Click the preview image to open the full-size screenshot.

Included Formats

The same dataset is provided in multiple formats:

  • Markdown
  • Nested Tree JSON
  • Flat Nodes Tree JSON
  • Nested Tree XML
  • Flat Nodes Tree XML
  • Flat Nodes Tree CSV
  • Flat Nodes Tree SQL

A small HTML demo is also included for loading and rendering the supported data files locally.

Dataset Overview

The dataset currently includes the following tree groups and topics:

Trees with 2 Levels

  • Buildings - 2 Level Trees - 24 Items
  • Cables and Signal Types - 2 Level Trees - 30 Items
  • Celestial Bodies - 2 Level Trees - 23 Items
  • Computer Ports and Connectors - 2 Level Trees - 32 Items
  • Computer Types - 2 Level Trees - 33 Items
  • Geometric Shapes and Solids - 2 Level Trees - 28 Items
  • Mythical Creatures - 2 Level Trees - 28 Items
  • Plant Forms - 2 Level Trees - 23 Items
  • Tools - 2 Level Trees - 24 Items
  • Weather and Natural Phenomena - 2 Level Trees - 25 Items

Trees with 3 Levels

  • Electrical Components - 3 Level Trees - 43 Items
  • Geometric Shapes and Solids - 3 Level Trees - 50 Items
  • Musical Instruments - 3 Level Trees - 42 Items
  • Rocks and Minerals - 3 Level Trees - 26 Items
  • Vehicle Types - 3 Level Trees - 29 Items

Trees with 4 Levels

  • Buildings - 4 Level Trees - 77 Items
  • Computer Types - 4 Level Trees - 70 Items
  • Hi-Fi Devices - 4 Level Trees - 88 Items
  • Landscape Forms - 4 Level Trees - 69 Items

Trees with 5 Levels

  • Chemical Elements - 5 Level Trees - 141 Items
  • Clothing Types - 5 Level Trees - 195 Items
  • Container and Storage Types - 5 Level Trees - 149 Items
  • Furniture Types - 5 Level Trees - 138 Items
  • Machines and Mechanical Components - 5 Level Trees - 156 Items
  • Materials - 5 Level Trees - 110 Items
  • Signage, Symbols and Markings - 5 Level Trees - 131 Items
  • Tools and Equipment - 5 Level Trees - 157 Items
  • Vehicle Types - 5 Level Trees - 74 Items

Trees with 6 Levels

  • Materials - 6 Level Trees - 245 Items
  • Plant Types - 6 Level Trees - 158 Items

Trees with 7 Levels

  • Clothing Types - 7 Level Trees - 284 Items

Trees with 8 Levels

  • Animal Types - 8 Level Trees - 214 Items

Total

  • 32 Trees with 2916 Items

Level Counting Rule

Level counting uses this convention:

  • the single root node is treated as Level 0
  • Level 0 is not counted as part of the named depth group
  • the first child layer below the root is Level 1
  • the next layer is Level 2
  • and so on

Example:

  • Root node only = Level 0
  • Root -> Category -> Item = 2 Levels
  • Root -> Category -> Subcategory -> Item = 3 Levels

Data Characteristics

The datasets are designed to be:

  • neutral
  • reusable
  • non-political
  • non-branded
  • safe for public developer examples
  • suitable for shallow and deep nesting tests

Topics are chosen to avoid unnecessary controversy and to work well as generic structural data.

Demo

The included demo can load and render:

  • Markdown trees
  • Flat Nodes CSV
  • Flat Nodes JSON
  • Nested Tree JSON
  • Flat Nodes XML
  • Nested Tree XML

Open demo.example-trees.html in a browser and load one of the supported files.

Filter Behavior

The demo filter uses simple text matching on the full visible text content of each rendered tree block.

This means:

  • the filter checks the complete text of one tree block as a single string
  • matching is case-insensitive
  • if the entered text appears anywhere inside that tree block, the whole block stays visible
  • if the entered text does not appear, the whole block is hidden

Important limitations:

  • the filter does not search individual nodes separately
  • the filter does not reduce a tree to only matching branches
  • the filter does not highlight matches
  • a single matching word anywhere in one tree keeps the entire tree visible

Example:

  • searching for tower keeps every tree visible that contains tower somewhere in its text
  • searching for a term that does not exist in a tree hides that whole tree block

This is intended as a very simple demo filter, not as a full node-level tree search.

Use Cases

Examples:

  • test a recursive tree renderer
  • test flat node to tree reconstruction
  • test XML import
  • test CSV import
  • benchmark nested data handling
  • verify expand and collapse behavior
  • populate sample data in internal tools

Repository Structure

Show repository structure
data-example-trees
├── assets
│   ├── css
│   │   └── demo.example-trees.css               # Stylesheet for the local HTML demo
│   ├── img
│   │   └── screenshot-demo-example-trees.jpg    # Screenshot preview for the README
│   └── js
│       └── demo.example-trees.js                # Parser and renderer for the local HTML demo
├── data
│   ├── example-trees.flat-nodes-tree.csv        # Flat node dataset in CSV format
│   ├── example-trees.flat-nodes-tree.json       # Flat node dataset in JSON format
│   ├── example-trees.md                         # Markdown dataset source file
│   ├── example-trees.flat-nodes-tree.sql        # Flat node dataset as SQL insert data
│   ├── example-trees.flat-nodes-tree.xml        # Flat node dataset in XML format
│   ├── example-trees.nested-tree.json           # Nested tree dataset in JSON format
│   └── example-trees.nested-tree.xml            # Nested tree dataset in XML format
├── CHANGELOG.md                                 # Version history
├── demo.example-trees.html                      # Simple local demo for loading and viewing the datasets
├── LICENSE                                      # License Text
└── README.md                                    # Project overview, usage notes, and dataset description

About

Neutral multi-level (2-8 levels) example tree datasets for tree views, parsers, JSON views, XML views, and hierarchical UI testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors