Skip to content

EXT_structural_metadata - parent class #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 3d-tiles-next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions extensions/2.0/Vendor/EXT_structural_metadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Template for metadata entities. Classes provide a list of property definitions.

Classes are defined as entries in the `schema.classes` dictionary, indexed by class ID. Class IDs must be alphanumeric identifiers matching the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`.

A class may specify a `parent` class, forming a class hierarchy. A class instance contains property values for its class as well as ancestor classes. Classes in a hierarchy cannot have the same property ID. Cyclical inheritance is disallowed.

> **Example:** A "Tree" class, which might describe a table of tree measurements taken in a park. Property definitions are abbreviated here, and introduced in the next section.
>
> ```jsonc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"$ref": "class.property.schema.json"
}
},
"parent": {
"type": "string",
"minLength": 1,
"description": "The parent class ID. The class inherits all properties of its parent class and ancestor classes."
},
"extensions": {},
"extras": {}
}
Expand Down
Loading