Changeset 449 for trunk/src/json/JTM


Ignore:
Timestamp:
05/03/11 08:21:49 (14 years ago)
Author:
lgiessmann
Message:

datamodel + unit-tests: added the function filter-type-instance-topics that takes a list of topics and a topic map object. The result value is a list of topics that contains no tmdm:type, tmdm:instance, and tmdm:type-instance topics, if they are not used as theme, type (in other constructs than type-instance-associations), player, and reifier => adopted the corresponding unit-tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/json/JTM/jtm_tools.lisp ΒΆ

    r447 r449  
    8080      (let* ((tm-tops
    8181              (if tm
    82                   (delete-if #'(lambda(top)
    83                                  (not (find-item-by-revision top revision)))
    84                              (topics tm))
     82                  (let ((inner-tops
     83                         (delete-if #'(lambda(top)
     84                                        (not (find-item-by-revision top revision)))
     85                                    (topics tm))))
     86                    (if (eql jtm-format :1.1)
     87                        (filter-type-instance-topics inner-tops tm
     88                                                     :revision revision)
     89                        inner-tops))
    8590                  (get-all-topics revision)))
    8691             (tm-assocs
Note: See TracChangeset for help on using the changeset viewer.