[isidorus-cvs] r149 - in trunk/src: . unit_tests
Lukas Giessmann
lgiessmann at common-lisp.net
Tue Nov 24 15:56:10 UTC 2009
Author: lgiessmann
Date: Tue Nov 24 10:56:09 2009
New Revision: 149
Log:
added an xtm2.0-reification test file
Added:
trunk/src/unit_tests/reification_xtm2.0.xtm (contents, props changed)
Modified:
trunk/src/isidorus.asd
Modified: trunk/src/isidorus.asd
==============================================================================
--- trunk/src/isidorus.asd (original)
+++ trunk/src/isidorus.asd Tue Nov 24 10:56:09 2009
@@ -112,6 +112,7 @@
(:static-file "poems_light.xtm")
(:static-file "full_mapping.rdf")
(:static-file "reification_xtm1.0.xtm")
+ (:static-file "reification_xtm2.0.xtm")
(:file "atom-conf")
(:file "unittests-constants"
:depends-on ("dangling_topicref.xtm"
Added: trunk/src/unit_tests/reification_xtm2.0.xtm
==============================================================================
--- (empty file)
+++ trunk/src/unit_tests/reification_xtm2.0.xtm Tue Nov 24 10:56:09 2009
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<!-- ======================================================================= -->
+<!-- Isidorus -->
+<!-- (c) 2008-2009 Marc Kuester, Christoph Ludwig, Lukas Giessmann -->
+<!-- -->
+<!-- Isidorus is freely distributable under the LGPL license. -->
+<!-- You can find a detailed description in trunk/docs/LGPL-LICENSE.txt. -->
+<!-- ======================================================================= -->
+
+<tm:topicMap xmlns:tm="http://www.topicmaps.org/xtm/" version="2.0">
+ <tm:topic id="homer">
+ <tm:subjectIdentifier href="http://simpsons.tv/homer"/>
+ <tm:name reifier="http://simpsons.tv/homer-name">
+ <tm:value>Homer Simpson</tm:value>
+ <tm:variant reifier="http://simpsons.tv/homer-name-variant">
+ <tm:scope><tm:topicRef href="#fullName"/></tm:scope>
+ <tm:resourceData>Homer Jay Simpson</tm:resourceData>
+ </tm:variant>
+ </tm:name>
+ <tm:occurrence reifier="http://simpsons.tv/homer-occurrence">
+ <tm:type><tm:topicRef href="#profession"/></tm:type>
+ <tm:resourceData>Safety Inspector</tm:resourceData>
+ </tm:occurrence>
+ </tm:topic>
+
+ <tm:topic id="marge">
+ <tm:subjectIdentifier href="http://simpsons.tv/marge"/>
+ <tm:name>
+ <tm:value>Marge Simpson</tm:value>
+ <tm:variant>
+ <tm:scope><tm:topicRef href="#fullName"/></tm:scope>
+ <tm:resourceData>Marjorie Simpson</tm:resourceData>
+ </tm:variant>
+ </tm:name>
+ <tm:occurrence>
+ <tm:type><tm:topicRef href="#profession"/></tm:type>
+ <tm:resourceData>Housewife</tm:resourceData>
+ </tm:occurrence>
+ </tm:topic>
+
+ <tm:topic id="fullName">
+ <tm:subjectIdentiifer href="http://simpsons.tv/fullName"/>
+ </tm:topic>
+
+ <tm:topic id="profession">
+ <tm:subjectIdentiifer href="http://simpsons.tv/profession"/>
+ </tm:topic>
+
+ <tm:topic id="married">
+ <tm:subjectIdentiifer href="http://simpsons.tv/married"/>
+ </tm:topic>
+
+ <tm:topic id="husband">
+ <tm:subjectIdentiifer href="http://simpsons.tv/husband"/>
+ </tm:topic>
+
+ <tm:topic id="wife">
+ <tm:subjectIdentiifer href="http://simpsons.tv/wife"/>
+ </tm:topic>
+
+ <tm:association reifier="http://simpsons.tv/married-association">
+ <tm:type><tm:topicRef href="#married"/></tm:type>
+ <tm:role reifier="http://simpsons.tv/married-husband-role">
+ <tm:type><tm:topicRef href="#husband"/></tm:type>
+ <tm:topicRef href="#homer"/>
+ </tm:role>
+ <tm:role>
+ <tm:type><tm:topicRef href="#wife"/></tm:type>
+ <tm:topicRef href="#marge"/>
+ </tm:role>
+ </tm:association>
+
+
+ <!-- === reifier-topics ================================================== -->
+ <tm:topic id="homer-name-reifier">
+ <tm:itemIdentity href="http://simpsons.tv/homer-name"/>
+ </tm:topic>
+
+ <tm:topic id="homer-name-variant-reifier">
+ <tm:itemIdentity href="http://simpsons.tv/homer-name-variant"/>
+ </tm:topic>
+
+ <tm:topic id="homer-occurrence-reifier">
+ <tm:itemIdentity href="http://simpsons.tv/homer-occurrence"/>
+ </tm:topic>
+
+ <tm:topic id="married-reifier">
+ <tm:itemIdentity href="http://simpsons.tv/married-association"/>
+ </tm:topic>
+
+ <tm:topic id="married-husband-reifier">
+ <tm:itemIdentity href="http://simpsons.tv/married-husband-role"/>
+ </tm:topic>
+</tm:topicMap>
More information about the Isidorus-cvs
mailing list