Changeset 1382
- Timestamp:
- Mar 22, 2012, 1:14:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XGET1.m
r1381 r1382 25 25 D USEFARY^C0XF2N("C0XFARY") 26 26 Q 27 ; 28 graph(sub,pred,obj,form,fary) ; extrinsic which returns a graph name 29 I '$D(fary) D ; 30 . S fary="C0XFARY" 31 . D INITFARY^C0XF2N(fary) 32 D USEFARY^C0XF2N(fary) 33 k triplertn ; start with a clean return 34 n zsub,zpred,zobj,zgraph,tmprtn 35 s zsub=$$IENOF($$EXT^C0XUTIL($g(sub)),fary) ; ien of subject 36 s zpred=$$IENOF($$EXT^C0XUTIL($g(pred)),fary) ; ien of predicate 37 s zobj=$$IENOF($$EXT^C0XUTIL($g(obj)),fary) ; ien of object 38 s zgraph=$$IENOF($g(graph),fary) ; ien of graph 39 W !,"s:",zsub," p:",zpred," o:",zobj 40 d trip(.tmprtn,zsub,zpred,zobj,zgraph,fary) 41 n ztmp 42 d trip(.ztmp,$g(sub),$g(pred),$g(obj),"",$g(fary)) 43 n zi,zg,zrtn 44 s zi=$o(tmprtn("")) 45 s zg=$$GET1^DIQ(C0XTFN,zi,.02,"E") ; 46 i zg="" q "" 47 s zrtn=zg 48 i $o(tmprtn(zi))'="" d 49 . s zrtn="" 50 q zrtn 27 51 ; 28 52 GRAPHS(RTN,C0XFARY) ; LIST ALL GRAPHS … … 265 289 f s zzz=$o(@zinary@(zzz)) q:zzz="" d ; 266 290 . n zs 267 . s zs=$$GET1^DIQ(C0XSFN,zzz_",",.01) 291 . ;s zs=$$GET1^DIQ(C0XSFN,zzz_",",.01) 292 . s zs=$$NSP^C0XUTIL(zzz) ; get namespaced string 268 293 . q:zs="" 269 . s zrary(zs)="" 294 . s zrary(zs)="" ; 270 295 q 271 296 ; … … 423 448 Q zout 424 449 ; 450 tagText(ztag) ; extrinsic which returns the location of the text 451 ; associated with ztag 452 n zs,zo 453 s zs=$$subject("fmts:tag",ztag) 454 i zs="" d q ; 455 . w !,"error, tag is either missing or there are more than one ",ztag 456 s zo=$$object(zs,"fmts:rdfSource") 457 i zo="" d q ; 458 . w !,"error, tag source not found ",zs 459 w !,zo 460 q $$WHERETXT^C0XF2N(zo) 461 ;
Note:
See TracChangeset
for help on using the changeset viewer.