- Timestamp:
- Feb 14, 2012, 6:42:07 PM (13 years ago)
- Location:
- fmts/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XF2N.m
r1354 r1359 206 206 Q 207 207 ; 208 VISTAOWL ; 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 ; 208 220 PROCESS(ZRTN,ZRDF,ZGRF,ZMETA,FARY) ; PROCESS AN INCOMING RDF FILE 209 221 ; ZRTN IS PASS BY REFERENCE AND RETURNS MESSAGES ABOUT THE PROCESSING … … 221 233 ;S C0XDOCID=$$PARSE^C0CNHIN(ZRDF,"C0XARRAY") ; PARSE WITH MXML 222 234 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 224 236 ;B 225 237 K @ZRDF ; DON'T NEED INPUT BUFFER ANYMORE 226 238 ; -- 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 228 241 S C0XNODE=$O(@ZDOM@(""),-1) 229 242 W !,C0XNODE," XML NODES PARSED" … … 260 273 S C0XTYPE("rdf:Description")=1 261 274 S C0XTYPE("owl:ObjectProperty")=1 275 S C0XTYPE("owl:Ontology")=1 262 276 S ZI=$O(@ZDOM@(1,"C","")) 263 277 I '$G(C0XTYPE(@ZDOM@(1,"C",ZI))) D Q ; not an rdf file 264 278 . W !,"Error. Not an RDF file. Cannot process." 265 . zwr ^TMP("MXMLDOM",$J,*)279 . ;zwr ^TMP("MXMLDOM",$J,*) 266 280 ; 267 281 ; -- now process the rdf description children … … 339 353 ; 340 354 SHOW(ZN) ; 341 ZWR ^TMP("MXMLDOM",$J,1,ZN,*) 355 ;ZWR ^TMP("MXMLDOM",$J,1,ZN,*) 356 ZWR ^TMP("MXMLDOM",16850,1,ZN,*) 342 357 Q 343 358 ; … … 384 399 . S C0XFDA(C0XTFN,"?+"_BATCNT_",",.02)=$O(ZIENS("IEN","ZG","")) 385 400 . 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","")) 387 402 . S C0XFDA(C0XTFN,"?+"_BATCNT_",",.05)=$O(ZIENS("IEN","ZO","")) 388 403 I BATCNT=BATMAX D ; BATCH IS DONE … … 441 456 F S ZI=$O(ZINARY(ZI)) Q:ZI="" D ; LOOK FOR MISSING STRINGS 442 457 . S ZV=$O(ZINARY(ZI,"")) 458 . I ZV["^" S ZV=$TR(ZV,"^","|") 443 459 . I $O(@C0XSN@("B",ZV,""))="" D ; 444 460 . . S ZCNT=ZCNT+1 … … 449 465 F S ZI=$O(ZINARY(ZI)) Q:ZI="" D ; NOT GET ALL IENS 450 466 . S ZV=$O(ZINARY(ZI,"")) 467 . I ZV["^" S ZV=$TR(ZV,"^","|") 451 468 . S ZIEN=$O(@C0XSN@("B",ZV,"")) ; THEY SHOULD BE THERE NOW 452 469 . I ZIEN="" D ; -
fmts/trunk/p/C0XUTIL.m
r1349 r1359 55 55 S C0XVOC("gpl")="http://georgetriples.org/" 56 56 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#" 57 60 Q 58 61 ;
Note:
See TracChangeset
for help on using the changeset viewer.