Version 2 (modified by jri, 13 years ago) (diff) |
---|
Topic
Example 1: a simple topic
{ "id": 2816, "uri": "", "type_uri": "dm4.contacts.city", "value": "Berlin", "composite": { } }
Example 2: a complex topic
{ "id": 2900, "uri": "", "type_uri": "dm4.files.file", "value": "freifunk-geomap.png", "composite": { "dm4.files.file_name": "freifunk-geomap.png", "dm4.files.path": "/home/jri/freifunk-geomap.png", "dm4.files.size": 767016, "dm4.files.media_type": "image/png", "dm4.files.content": "<img src=\"/proxy/file:%2Fhome%2Fjri%2Ffreifunk-geomap.png\"></img>" } }
Example 3: an even more complex topic
{ "id": 2735, "uri": "", "type_uri": "dm4.contacts.person", "value": "Jörg", "composite": { "dm4.contacts.person_name": { "dm4.contacts.first_name": "Jörg", "dm4.contacts.last_name": "Richter" }, "dm4.contacts.phone_entry": { "dm4.contacts.phone_label": "home", "dm4.contacts.phone_number": "123 456 78" }, "dm4.contacts.email_address": "jri@deepamehta.de", "dm4.webbrowser.url": "www.deepamehta.de", "dm4.contacts.address_entry": { "dm4.contacts.address_label": "home", "dm4.contacts.address": { "dm4.contacts.street": "My Street 23", "dm4.contacts.postal_code": "12345", "dm4.contacts.city": "Berlin", "dm4.contacts.country": "Germany" } }, "dm4.notes.text": "<p>Software Developer</p>" } }
Association
Example 2: association that connects 2 topics
{ "id": 2797, "uri": "", "type_uri": "dm4.core.composition", "value": "", "composite": { }, "role_1": { "topic_id": 2735, "role_type_uri": "dm4.core.whole" }, "role_2": { "topic_id": 2794, "role_type_uri": "dm4.core.part" } }
Example 2: association that connects a topic with an association
{ "id": 2798, "uri": "", "type_uri": "dm4.core.instantiation", "value": "", "composite": { }, "role_1": { "topic_id": 60, "role_type_uri": "dm4.core.type" }, "role_2": { "assoc_id": 2797, "role_type_uri": "dm4.core.instance" } }