Changeset 241


Ignore:
Timestamp:
03/21/10 19:17:59 (15 years ago)
Author:
lgiessmann
Message:

new-datamodel: changed some code sections that caused problems with the package "xml"

Location:
branches/new-datamodel/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/new-datamodel/src/model/datamodel.lisp

    r240 r241  
    2323           :VersionedConstructC
    2424           :ReifiableConstructC
     25           :ScopableC
     26           :TypableC
    2527           :TopicMapC
    2628           :AssociationC
  • TabularUnified branches/new-datamodel/src/xml/rdf/importer.lisp

    r234 r241  
    6868                     (from-topic-elem-to-stub top-elem revision
    6969                                              :xtm-id *rdf-core-xtm*)))
    70                  (add-to-topicmap xml-importer::tm top))))))))
     70                 (add-to-tm xml-importer::tm top))))))))
    7171
    7272
     
    356356                                 :player sub-top))))
    357357        (let ((assoc
    358                (add-to-topicmap
     358               (add-to-tm
    359359                tm
    360360                (make-construct 'AssociationC
     
    397397                                 :player instance-top))))
    398398        (let ((assoc
    399                (add-to-topicmap
     399               (add-to-tm
    400400                tm
    401401                (make-construct 'AssociationC
     
    450450                                         :start-revision start-revision)))))
    451451              (handler-case (let ((top
    452                                    (add-to-topicmap
     452                                   (add-to-tm
    453453                                    tm
    454454                                    (make-construct
     
    503503                                 :player top))))
    504504          (let ((assoc
    505                  (add-to-topicmap tm (make-construct 'AssociationC
     505                 (add-to-tm tm (make-construct 'AssociationC
    506506                                                     :start-revision start-revision
    507507                                                     :instance-of type-top
     
    532532                               :player object-topic))))
    533533        (let ((assoc
    534                (add-to-topicmap
     534               (add-to-tm
    535535                tm (make-construct 'AssociationC
    536536                                   :start-revision start-revision
  • TabularUnified branches/new-datamodel/src/xml/rdf/map_to_tm.lisp

    r161 r241  
    189189        (d::delete-construct assoc-top)
    190190        (with-tm (start-revision document-id tm-id)
    191           (add-to-topicmap
     191          (add-to-tm
    192192           xml-importer::tm
    193193           (let ((association
     
    230230        (occurrence-topics (get-isi-occurrences top start-revision))
    231231        (name-topics (get-isi-names top start-revision)))
    232     (bound-subject-identifiers top new-psis)
    233     (bound-subject-locators top new-locators)
    234     (bound-item-identifiers top new-item-ids)
     232    (bound-subject-identifiers top new-psis start-revision)
     233    (bound-subject-locators top new-locators start-revision)
     234    (bound-item-identifiers top new-item-ids start-revision)
    235235    (map 'list #'(lambda(occurrence-topic)
    236236                   (map-isi-occurrence top occurrence-topic start-revision))
     
    561561
    562562
    563 (defun bound-item-identifiers (construct identifiers)
     563(defun bound-item-identifiers (construct identifiers start-revision)
    564564  "Bounds the passed item-identifier to the passed construct."
    565565  (declare (ReifiableConstructC construct))
     
    570570                 (item-identifiers construct))
    571571        (d::delete-construct id)
    572         (setf (identified-construct id) construct)))
     572        (add-item-identifier (identified-construct id :revision start-revision)
     573                             construct :revision start-revision)))
    573574  construct)
    574575
    575576
    576 (defun bound-subject-identifiers (top identifiers)
     577(defun bound-subject-identifiers (top identifiers start-revision)
    577578  "Bounds the passed psis to the passed topic."
    578579  (declare (TopicC top))
     
    583584                 (psis top))
    584585        (d::delete-construct id)
    585         (setf (identified-construct id) top)))
     586        (add-psi (identified-construct id :revision start-revision)
     587                                top :revision start-revision)))
    586588  top)
    587589
    588590
    589 (defun bound-subject-locators (top locators)
     591(defun bound-subject-locators (top locators start-revision)
    590592  "Bounds the passed locators to the passed topic."
    591593  (declare (TopicC top))
     
    596598                 (locators top))
    597599        (d::delete-construct id)
    598         (setf (identified-construct id) top)))
     600        (add-locator (identified-construct id :revision start-revision)
     601                     top :revision start-revision)))
    599602  top)
    600603
Note: See TracChangeset for help on using the changeset viewer.