| 115 | Example 1: a simple topic type |
| 116 | |
| 117 | {{{ |
| 118 | { |
| 119 | "id": 943, |
| 120 | "uri": "dm4.webbrowser.url", |
| 121 | "type_uri": "dm4.core.topic_type", |
| 122 | "value": "URL", |
| 123 | "composite": { |
| 124 | }, |
| 125 | "data_type_uri": "dm4.core.text", |
| 126 | "index_mode_uris": [ |
| 127 | "dm4.core.key", |
| 128 | "dm4.core.fulltext" |
| 129 | ], |
| 130 | "assoc_defs": [ |
| 131 | ], |
| 132 | "view_config_topics": [ |
| 133 | ] |
| 134 | } |
| 135 | }}} |
| 136 | |
| 137 | Example 2: a complex topic type |
| 138 | |
| 139 | {{{ |
| 140 | { |
| 141 | "id": 959, |
| 142 | "uri": "dm4.webbrowser.web_resource", |
| 143 | "type_uri": "dm4.core.topic_type", |
| 144 | "value": "Web Resource", |
| 145 | "composite": { |
| 146 | }, |
| 147 | "data_type_uri": "dm4.core.composite", |
| 148 | "index_mode_uris": [ |
| 149 | ], |
| 150 | "assoc_defs": [ |
| 151 | { |
| 152 | "id": 964, |
| 153 | "uri": "dm4.webbrowser.url", |
| 154 | "assoc_type_uri": "dm4.core.composition_def", |
| 155 | "whole_topic_type_uri": "dm4.webbrowser.web_resource", |
| 156 | "whole_role_type_uri": "dm4.core.whole", |
| 157 | "whole_cardinality_uri": "dm4.core.one", |
| 158 | "part_topic_type_uri": "dm4.webbrowser.url", |
| 159 | "part_role_type_uri": "dm4.core.part", |
| 160 | "part_cardinality_uri": "dm4.core.one", |
| 161 | "view_config_topics": [ |
| 162 | ] |
| 163 | }, |
| 164 | { |
| 165 | "id": 974, |
| 166 | "uri": "dm4.webbrowser.web_resource_description", |
| 167 | "assoc_type_uri": "dm4.core.composition_def", |
| 168 | "whole_topic_type_uri": "dm4.webbrowser.web_resource", |
| 169 | "whole_role_type_uri": "dm4.core.whole", |
| 170 | "whole_cardinality_uri": "dm4.core.one", |
| 171 | "part_topic_type_uri": "dm4.webbrowser.web_resource_description", |
| 172 | "part_role_type_uri": "dm4.core.part", |
| 173 | "part_cardinality_uri": "dm4.core.one", |
| 174 | "view_config_topics": [ |
| 175 | ] |
| 176 | } |
| 177 | ], |
| 178 | "view_config_topics": [ |
| 179 | { |
| 180 | "id": 988, |
| 181 | "uri": "", |
| 182 | "type_uri": "dm4.webclient.view_config", |
| 183 | "value": "/de.deepamehta.webbrowser/images/earth.png", |
| 184 | "composite": { |
| 185 | "dm4.webclient.icon": "/de.deepamehta.webbrowser/images/earth.png", |
| 186 | "dm4.webclient.add_to_create_menu": true, |
| 187 | "dm4.webclient.is_searchable_unit": true |
| 188 | } |
| 189 | } |
| 190 | ] |
| 191 | } |
| 192 | }}} |
| 193 | |