Changeset 172 for trunk/src/xml/rdf


Ignore:
Timestamp:
12/12/09 00:29:01 (15 years ago)
Author:
lgiessmann
Message:

added some more beauty to the xtm-importers in the reification-sections :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/xml/rdf/importer.lisp

    r154 r172  
    355355                           (list :instance-of role-type-2
    356356                                 :player sub-top))))
    357         ;(when reifier-id
    358           ;(make-reification reifier-id sub-top super-top
    359         ;                   assoc-type start-revision tm
    360         ;                   :document-id document-id))
    361357        (let ((assoc
    362358               (add-to-topicmap
     
    400396                           (list :instance-of roletype-2
    401397                                 :player instance-top))))
    402         ;(when reifier-id
    403         ;  (make-reification reifier-id instance-top type-top
    404         ;                   assoc-type start-revision tm
    405         ;                   :document-id document-id))
    406398        (let ((assoc
    407399               (add-to-topicmap
     
    510502                           (list :instance-of role-type-2
    511503                                 :player top))))
    512           ;(when ID
    513           ;  (make-reification ID top player-1 type-top start-revision
    514         ;                     tm :document-id document-id))
    515504          (let ((assoc
    516505                 (add-to-topicmap tm (make-construct 'AssociationC
     
    560549                                        :document-id document-id)))
    561550    (add-reifier reifiable-construct reifier-topic)))
    562 
    563 ;(defun make-reification (reifier-id subject object predicate start-revision tm
    564 ;                        &key document-id)
    565 ;  "Creates a reification construct."
    566 ;  (declare (string reifier-id))
    567 ;  (declare ((or OccurrenceC TopicC) object))
    568 ;  (declare (TopicC subject predicate))
    569 ;  (declare (TopicMapC tm))
    570 ;  (elephant:ensure-transaction (:txn-nosync t)
    571 ;    (let ((reifier (make-topic-stub reifier-id nil nil nil start-revision tm
    572 ;                                   :document-id document-id))
    573 ;         (predicate-arc (make-topic-stub *rdf-predicate* nil nil nil
    574 ;                                         start-revision
    575 ;                                         tm :document-id document-id))
    576 ;         (object-arc (make-topic-stub *rdf-object* nil nil nil start-revision
    577 ;                                      tm :document-id document-id))
    578 ;         (subject-arc (make-topic-stub *rdf-subject* nil nil nil
    579 ;                                       start-revision
    580 ;                                       tm :document-id document-id))
    581 ;         (statement (make-topic-stub *rdf-statement* nil nil nil start-revision
    582 ;                                     tm :document-id document-id)))
    583 ;      (make-instance-of-association reifier statement nil start-revision tm
    584 ;                                   :document-id document-id)
    585 ;      (make-association-with-nodes reifier subject subject-arc tm
    586 ;                                  start-revision :document-id document-id)
    587 ;      (make-association-with-nodes reifier predicate predicate-arc
    588 ;                                  tm start-revision :document-id document-id)
    589 ;      (if (typep object 'd:TopicC)
    590 ;         (make-association-with-nodes reifier object object-arc
    591 ;                                      tm start-revision
    592 ;                                      :document-id document-id)
    593 ;         (make-construct 'd:OccurrenceC
    594 ;                         :start-revision start-revision
    595 ;                         :topic reifier
    596 ;                         :themes (themes object)
    597 ;                         :instance-of (instance-of object)
    598 ;                         :charvalue (charvalue object)
    599 ;                         :datatype (datatype object))))))
    600551
    601552
     
    629580                                 :datatype datatype)))
    630581            (when ID
    631               ;(make-reification ID top occurrence type-top start-revision
    632         ;                       xml-importer::tm :document-id document-id))
    633582              (make-reification ID occurrence start-revision xml-importer::tm
    634583                                :document-id document-id))
Note: See TracChangeset for help on using the changeset viewer.