Changeset 118 for trunk/src/unit_tests


Ignore:
Timestamp:
08/25/09 09:55:29 (16 years ago)
Author:
lgiessmann
Message:

rdf-exporter: added functions/methods to the exporter module, thus exporting associations is also possible; added the types isi:name, isi:occurrence, isi:role and isi:name for the exported and mapped constructs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/unit_tests/poems_light.xtm

    r117 r118  
    22<tm:topicMap version="2.0" xmlns:tm="http://www.topicmaps.org/xtm/">
    33  <!-- this file contains constructs that are originally defined as TM and
    4        RDF, so certain constructs are not consistent because of test cases -->
     4       RDF. So certain constructs are not consistent because of test cases,
     5       but all are valid! -->
    56  <tm:topic id="goethe">
    6     <tm:subjectIdentifier href="http://some.where/author/Goehte"/>
     7    <tm:subjectIdentifier href="http://some.where/author/Goethe"/>
    78    <tm:instanceOf><tm:topicRef href="#author"/></tm:instanceOf>
    89    <tm:name>
     
    7879
    7980  <tm:topic id="zauberlehrling">
    80     <tm:subectIdentifier href="http://some.where/poem/Der_Zauberlehrling"/>
    81     <tm:subectIdentifier href="http://some.where/poem/Zauberlehrling"/>
    82     <tm:itemIdentity href="http://some.where/poem/Zauberlehrling_itemIdentity"/>
    83     <tm:subjectLocator href="http://some.where/resource"/>
     81    <tm:subjectIdentifier href="http://some.where/poem/Der_Zauberlehrling"/>
     82    <tm:subjectIdentifier href="http://some.where/poem/Zauberlehrling"/>
     83    <tm:itemIdentity href="http://some.where/poem/Zauberlehrling_itemIdentity_1"/>
     84    <tm:itemIdentity href="http://some.where/poem/Zauberlehrling_itemIdentity_2"/>
     85    <tm:subjectLocator href="http://some.where/resource_1"/>
     86    <tm:subjectLocator href="http://some.where/resource_2"/>
    8487    <tm:instanceOf><tm:topicRef href="#poem"/></tm:instanceOf>
    8588    <tm:occurrence>
     
    189192
    190193  <tm:topic id="title">
    191     <tm:subjetcIdentifier href="http://some.where/relationship/title"/>
     194    <tm:subjectIdentifier href="http://some.where/relationship/title"/>
    192195  </tm:topic>
    193196
     
    466469  </tm:association>
    467470
    468   <!-- the rdf:li elements are contained as a collection, to test the export
    469        of collections -->
     471  <!-- === the rdf:li elements are contained as a collection, to test the
     472       export of collections =============================================== -->
    470473  <tm:topic id="wrote">
    471474    <tm:subjectIdentifier href="http://some.where/relationship/wrote"/>
     
    576579    </tm:role>
    577580  </tm:association>
     581
     582  <!-- === tests some TM associations that owns mor than two roles ========= -->
     583  <tm:topic id="authorInfo">
     584    <tm:subjectIdentifier href="http://some.where/relationship/authorInfo"/>
     585  </tm:topic>
     586
     587  <tm:topic id="schiller">
     588    <tm:instanceOf><tm:topicRef href="#author"/></tm:instanceOf>
     589    <tm:name>
     590      <tm:type><tm:topicRef href="#firstName"/></tm:type>
     591      <tm:value>Johann Christoph Friedrich</tm:value>
     592    </tm:name>
     593    <tm:name>
     594      <tm:type><tm:topicRef href="#lastName"/></tm:type>
     595      <tm:value>von Schiller</tm:value>
     596    </tm:name>
     597    <tm:occurrence>
     598      <tm:type><tm:topicRef href="#authorInfo"/></tm:type>
     599      <tm:resourceRef href="http://de.wikipedia.org/wiki/Schiller"/>
     600    </tm:occurrence>
     601  </tm:topic>
     602
     603  <tm:topic id="associatedWithEachOther">
     604    <tm:subjectIdentifier href="http://some.where/relationship/associatedWithEachOther"/>
     605  </tm:topic>
     606
     607  <tm:topic id="writer">
     608    <tm:subjectIdentifier href="http://some.where/roletype/writer"/>
     609  </tm:topic>
     610
     611  <tm:topic id="literature">
     612    <tm:subjectIdentifier href="http://some.where/roletype/literature"/>
     613  </tm:topic>
     614 
     615  <tm:association>
     616    <tm:itemIdentity href="http://some.where/test-association"/>
     617    <tm:type><tm:topicRef href="#associatedWithEachOther"/></tm:type>
     618    <tm:role>
     619      <tm:type><tm:topicRef href="#writer"/></tm:type>
     620      <tm:topicRef href="#schiller"/>
     621    </tm:role>
     622    <tm:role>
     623      <tm:type><tm:topicRef href="#writer"/></tm:type>
     624      <tm:topicRef href="#goethe"/>
     625    </tm:role>
     626    <tm:role>
     627      <tm:type><tm:topicRef href="#literature"/></tm:type>
     628      <tm:topicRef href="#poem"/>
     629    </tm:role>
     630    <tm:role>
     631      <tm:type><tm:topicRef href="#literature"/></tm:type>
     632      <tm:topicRef href="#ballad"/>
     633    </tm:role>
     634  </tm:association>
    578635</tm:topicMap>
Note: See TracChangeset for help on using the changeset viewer.