Changeset 1359 for fmts


Ignore:
Timestamp:
Feb 14, 2012, 6:42:07 PM (13 years ago)
Author:
George Lilly
Message:

changes to support VistAOWL

Location:
fmts/trunk/p
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XF2N.m

    r1354 r1359  
    206206 Q
    207207 ;
     208VISTAOWL ;
     209 S ZRDF=$NA(^TMP("C0X",542,"FILEIN"))
     210 S ZNAME="/home/glilly/vistaowl/VistAOWL.owl"
     211 S ZGRAPH="_:G431590209"
     212 S FARY="C0XFARY"
     213 D INITFARY(FARY)
     214 S C0XDOCID=1
     215 S BATCNT=0
     216 S BATMAX=10000
     217 D PROCESS(.G,ZRDF,ZGRAPH,ZNAME,FARY)
     218 Q
     219 ;
    208220PROCESS(ZRTN,ZRDF,ZGRF,ZMETA,FARY) ; PROCESS AN INCOMING RDF FILE
    209221 ; ZRTN IS PASS BY REFERENCE AND RETURNS MESSAGES ABOUT THE PROCESSING
     
    221233 ;S C0XDOCID=$$PARSE^C0CNHIN(ZRDF,"C0XARRAY") ; PARSE WITH MXML
    222234 S C0XDLC2=$$NOW^XLFDT ; START OF PARSE
    223  S C0XDOCID=$$EN^MXMLDOM(ZRDF,"W")
     235 ;S C0XDOCID=$$EN^MXMLDOM(ZRDF,"W") ; DON'T PARSE JUST NOW
    224236 ;B
    225237 K @ZRDF ; DON'T NEED INPUT BUFFER ANYMORE
    226238 ; -- assign the MXLM dom global name to ZDOM
    227  S ZDOM=$NA(^TMP("MXMLDOM",$J,C0XDOCID))
     239 ;S ZDOM=$NA(^TMP("MXMLDOM",$J,C0XDOCID))
     240 S ZDOM=$NA(^TMP("MXMLDOM",16850,C0XDOCID)) ;VISTAOWL DOM
    228241 S C0XNODE=$O(@ZDOM@(""),-1)
    229242 W !,C0XNODE," XML NODES PARSED"
     
    260273 S C0XTYPE("rdf:Description")=1
    261274 S C0XTYPE("owl:ObjectProperty")=1
     275 S C0XTYPE("owl:Ontology")=1
    262276 S ZI=$O(@ZDOM@(1,"C",""))
    263277 I '$G(C0XTYPE(@ZDOM@(1,"C",ZI))) D  Q  ; not an rdf file
    264278 . W !,"Error. Not an RDF file. Cannot process."
    265  . zwr ^TMP("MXMLDOM",$J,*)
     279 . ;zwr ^TMP("MXMLDOM",$J,*)
    266280 ;
    267281 ; -- now process the rdf description children
     
    339353 ;
    340354SHOW(ZN) ;
    341  ZWR ^TMP("MXMLDOM",$J,1,ZN,*)
     355 ;ZWR ^TMP("MXMLDOM",$J,1,ZN,*)
     356 ZWR ^TMP("MXMLDOM",16850,1,ZN,*)
    342357 Q
    343358 ;
     
    384399 . S C0XFDA(C0XTFN,"?+"_BATCNT_",",.02)=$O(ZIENS("IEN","ZG",""))
    385400 . S C0XFDA(C0XTFN,"?+"_BATCNT_",",.03)=$O(ZIENS("IEN","ZS",""))
    386  . S C0XFDA(C0XTFN,"?+"_BATCNT_",",.04)=$O(ZIENS("IEN","ZP",""))
     401 . S C0XFDA(C0XTFN,"?+"_ATCNT_",",.04)=$O(ZIENS("IEN","ZP",""))
    387402 . S C0XFDA(C0XTFN,"?+"_BATCNT_",",.05)=$O(ZIENS("IEN","ZO",""))
    388403 I BATCNT=BATMAX D  ; BATCH IS DONE
     
    441456 F  S ZI=$O(ZINARY(ZI)) Q:ZI=""  D  ; LOOK FOR MISSING STRINGS
    442457 . S ZV=$O(ZINARY(ZI,""))
     458 . I ZV["^" S ZV=$TR(ZV,"^","|")
    443459 . I $O(@C0XSN@("B",ZV,""))="" D  ;
    444460 . . S ZCNT=ZCNT+1
     
    449465 F  S ZI=$O(ZINARY(ZI)) Q:ZI=""  D  ; NOT GET ALL IENS
    450466 . S ZV=$O(ZINARY(ZI,""))
     467 . I ZV["^" S ZV=$TR(ZV,"^","|")
    451468 . S ZIEN=$O(@C0XSN@("B",ZV,"")) ; THEY SHOULD BE THERE NOW
    452469 . I ZIEN="" D  ;
  • fmts/trunk/p/C0XUTIL.m

    r1349 r1359  
    5555 S C0XVOC("gpl")="http://georgetriples.org/"
    5656 S C0XVOC("cg")="http://datasets.caregraf.org/"
     57 S C0XVOC("mv")="http://metavista.name/foundation#"
     58 S C0XVOC("rdfs")="http://www.w3.org/2000/01/rdf-schema#"
     59 S C0XVOC("os")="http://osehra.org/ns#"
    5760 Q
    5861 ;
Note: See TracChangeset for help on using the changeset viewer.