Changes between Version 1 and Version 2 of DataFormat


Ignore:
Timestamp:
02.09.2011 02:56:11 (13 years ago)
Author:
jri
Comment:

Association Examples

Legend:

Unmodified
Added
Removed
Modified
  • DataFormat

    v1 v2  
    2525  "composite": { 
    2626    "dm4.files.file_name": "freifunk-geomap.png", 
    27     "dm4.files.path": "/home/jri/freifunk-geomap.png" 
     27    "dm4.files.path": "/home/jri/freifunk-geomap.png", 
    2828    "dm4.files.size": 767016, 
    2929    "dm4.files.media_type": "image/png", 
    30     "dm4.files.content": "<img src=\"/proxy/file:%2Fhome%2Fjri%2Ffreifunk-geomap.png\"></img>", 
     30    "dm4.files.content": "<img src=\"/proxy/file:%2Fhome%2Fjri%2Ffreifunk-geomap.png\"></img>" 
    3131  } 
    3232} 
     
    6868== Association == 
    6969 
     70Example 2: association that connects 2 topics 
     71 
     72{{{ 
     73{ 
     74  "id": 2797, 
     75  "uri": "", 
     76  "type_uri": "dm4.core.composition", 
     77  "value": "", 
     78  "composite": { 
     79  }, 
     80  "role_1": { 
     81    "topic_id": 2735, 
     82    "role_type_uri": "dm4.core.whole" 
     83  }, 
     84  "role_2": { 
     85    "topic_id": 2794, 
     86    "role_type_uri": "dm4.core.part" 
     87  } 
     88} 
     89}}} 
     90 
     91Example 2: association that connects a topic with an association 
     92 
     93{{{ 
     94{ 
     95  "id": 2798, 
     96  "uri": "", 
     97  "type_uri": "dm4.core.instantiation", 
     98  "value": "", 
     99  "composite": { 
     100  }, 
     101  "role_1": { 
     102    "topic_id": 60, 
     103    "role_type_uri": "dm4.core.type" 
     104  }, 
     105  "role_2": { 
     106    "assoc_id": 2797, 
     107    "role_type_uri": "dm4.core.instance" 
     108  } 
     109} 
     110}}} 
     111 
    70112== Topic Type == 
    71113