216 | | {{{#!js |
217 | | { |
218 | | topic_types: [ # -------------------------------- create types |
219 | | { |
220 | | value: "Example Name", |
221 | | uri: "dm4.example.name", |
222 | | data_type_uri: "dm4.core.text", |
223 | | index_mode_uris: ["dm4.core.fulltext"], |
224 | | } |
225 | | ], |
226 | | assoc_types: [ # -------------------- create association types |
227 | | { |
228 | | value: "Example Association", |
229 | | uri: "dm4.example.association", |
230 | | data_type_uri: "dm4.core.text" |
231 | | } |
232 | | ], |
233 | | topics: [ # --------------------------- create topic instances |
234 | | { |
235 | | value: "An example", |
236 | | type_uri: "dm4.example.name", |
237 | | uri: "dm4.example.topic.name" |
238 | | } |
239 | | ], |
240 | | associations: [ # --------------------------- associate topics |
241 | | { |
242 | | type_uri: "dm4.example.association", |
243 | | role_1: { |
244 | | topic_uri: "de.deepamehta.dm4-example", |
245 | | role_type_uri: "dm4.core.default" |
246 | | }, |
247 | | role_2: { |
248 | | topic_uri: "dm4.example.topic.name", |
249 | | role_type_uri: "dm4.core.default" |
| 216 | {{{#!td |
| 217 | {{{#!js |
| 218 | { |
| 219 | topic_types: [ # -------------------------------- create types |
| 220 | { |
| 221 | value: "Example Name", |
| 222 | uri: "dm4.example.name", |
| 223 | data_type_uri: "dm4.core.text", |
| 224 | index_mode_uris: ["dm4.core.fulltext"], |
251 | | } |
252 | | ] |
253 | | } |
254 | | }}} |
255 | | |
| 226 | ], |
| 227 | assoc_types: [ # -------------------- create association types |
| 228 | { |
| 229 | value: "Example Association", |
| 230 | uri: "dm4.example.association", |
| 231 | data_type_uri: "dm4.core.text" |
| 232 | } |
| 233 | ], |
| 234 | topics: [ # --------------------------- create topic instances |
| 235 | { |
| 236 | value: "An example", |
| 237 | type_uri: "dm4.example.name", |
| 238 | uri: "dm4.example.topic.name" |
| 239 | } |
| 240 | ], |
| 241 | associations: [ # --------------------------- associate topics |
| 242 | { |
| 243 | type_uri: "dm4.example.association", |
| 244 | role_1: { |
| 245 | topic_uri: "de.deepamehta.dm4-example", |
| 246 | role_type_uri: "dm4.core.default" |
| 247 | }, |
| 248 | role_2: { |
| 249 | topic_uri: "dm4.example.topic.name", |
| 250 | role_type_uri: "dm4.core.default" |
| 251 | } |
| 252 | } |
| 253 | ] |
| 254 | } |
| 255 | }}} |
| 256 | }}} |
| 257 | {{{#!td |
| 258 | [[Image(migration1_result.png)]] |
| 259 | }}} |