Changes between Version 5 and Version 6 of CMDI 1.2/Resource proxies/ResourceRelation


Ignore:
Timestamp:
01/17/14 11:21:10 (10 years ago)
Author:
oschonef
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CMDI 1.2/Resource proxies/ResourceRelation

    v5 v6  
    123123== Discussion ==
    124124
    125 Discuss the topic in general below this point
    126 
    127125Florian (BAS): The first proposal makes a lot of sense. But if such a general relation
    128126mechanism is implemented, we should also consider to remove the special relation 'isPartOf'
     
    130128The second proposal is not very lucid to me. Can anybody add a practical use case where this
    131129is necessary?
     130  [[oschonef|Oliver (IDS)]]: The second version is a generalization of the first one. For some relations,
     131  it might lead to a more compact representation of the 1:N relations, e.g. you have 5 different annotations of a
     132  text file (e.g. different tools create POS annotations). With the first version, you'll need 5 !ResourceRelation
     133  elements, in the latter case only one. However, I don't think proposed XML serialization for solution 2 could me
     134  made better, e.g:
     135  {{{#!xml
     136<ResourceRelationList>
     137  <ResourceRelation>
     138    <RelationType dcr:datcat="http://www.isocat.org/datcat/DC-2318">annotates</RelationType>
     139      <Resource role="source" dcr:datcat="http://www.isocat.org/datcat/DC-4009" ref="rp1"/>
     140      <Resource role="target" dcr:datcat="http://www.isocat.org/datcat/DC-2656" ref="rp2"/>
     141    </Resource>
     142  </ResourceRelation>
     143</ResourceRelationList>
     144}}}
     145  where mandatory ''@ref'' references a !ResourceProxy and ''@dcr:datcat'' is optional. We need to discuss, if we want to make ''@role'' mandatory or not. I don't have a strong feeling in either direction. However, porper XSD magic can be used to ensure, that only one ''source'' role and at
     146  least one ''target'' role exists (XSD 1.1 assertions). Theoretically, one could also model N:M relations with this mechanism (by providing more ''source'' roles) and we need to
     147  to discuss, if we want to allow this.
     148  If we decide for this general relation mechanism, I agree with Florian to get rid of the [[CMDI 1.2/Resource proxies/IsPartOf|IsPartOfList]].