materials-schema-web is a static html generation tool for creating Type-Property bidirected schema.
Given arbitrary amount of Type
s and Property
s, this app can:
Type
or Property
by given name. Property
usage and used frequency in Type
Type
and Property
. npm ci
to install all library dependency.After the action finished, the generated static pages can now be found in the path public
npm run app
to start the app. The app will be hosted on port 3333.material.json
directly, all pages under public
folder will be deleted before generation of static pages.material.json
reuqires to execute npm start
again for update in html pages.A simplest sample of material.json
looks like this:
{
"dataTypes": [
{"id": "D1", "name": "Text"},
],
"types": [
{"id": "T100", "name": "Person", "properties": ["P1"]},
],
"properties": [
{"id": "P1", "name": "additionalName", "expectedTypes": ["D1"], "description": "xxxx"},
]
}
dataTypes: primitive type; no hyperlink will be generated with this type.
types: customized type; holds property
no hyperlink will be generated with this type.
Property
s' id
this Type hasproperties: primitive type; no hyperlink will be generated with this type.
Type
s' id
in which this Property
can be foundTBD