Changeset 1368 for fmts/trunk/p/C0XRDF.m


Ignore:
Timestamp:
Feb 27, 2012, 11:51:28 PM (13 years ago)
Author:
George Lilly
Message:

changes for getGraph and rdf out

File:
1 edited

Legend:

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

    r1367 r1368  
    3939 I ZPRED[":" D  Q  ;
    4040 . I ZPRED="rdf:type" D  Q  ;
    41  . . D ADD(ZARY,"rdf:type rdf:Resource="""_ZOBJ_"""/>")
    42  . N ZA,ZB
     41 . . D ADD(ZARY,"rdf:type rdf:Resource="""_$$EXT^C0XUTIL(ZOBJ)_"""/>")
     42 . N ZA,ZB,ZC
    4343 . S ZA=$P(ZPRED,":",1)
    4444 . S ZB=$P(ZPRED,":",2)
    45  . D ADD(ZARY,"<"_ZA_" xmlns="""_ZB_""">"_ZOBJ_"</"_ZA_">")
     45 . S ZC=C0XVOC(ZA)
     46 . D ADD(ZARY,"<"_ZB_" xmlns="""_ZC_""">"_$$EXT^C0XUTIL(ZOBJ)_"</"_ZB_">")
    4647 Q
    4748 ;
     
    7071 f  s zi=$o(zary(zi)) q:zi=""  d  ; for each subject
    7172 . n zii s zii=""
    72  . D DICTSTART("rdfout",zi)
     73 . D DICTSTART("rdfout",$$EXT^C0XUTIL(zi))
    7374 . f  s zii=$o(zary(zi,zii)) q:zii=""  d  ; for each pred^obj pair
    7475 . . d DASSERT("rdfout",$p(zii,"^",1),$p(zii,"^",2))
Note: See TracChangeset for help on using the changeset viewer.