Changeset 1322 for fmts/trunk/p
- Timestamp:
- Dec 13, 2011, 2:41:53 PM (13 years ago)
- Location:
- fmts/trunk/p
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XF2N.m
r1294 r1322 38 38 S @ZFARY@("C0XTN")=$NA(^C0X(101)) ; TRIPLES GLOBAL NAME 39 39 S @ZFARY@("C0XSN")=$NA(^C0X(201)) ; STRING FILE GLOBAL NAME 40 S @ZFARY@("C0XDIR")="/home/glilly/ fmts/trunk/samples/"40 S @ZFARY@("C0XDIR")="/home/glilly/snomed/" 41 41 S @ZFARY@("BLKLOAD")=1 ; this file supports block load 42 42 S @ZFARY@("FMTSSTYLE")="F2N" ; fileman style … … 104 104 K INURL 105 105 K C0XFDA 106 K ^TMP("MXMLDOM",$J)106 ;K ^TMP("MXMLDOM",$J) 107 107 Q 108 108 ; … … 221 221 S C0XDLC2=$$NOW^XLFDT ; START OF PARSE 222 222 S C0XDOCID=$$EN^MXMLDOM(ZRDF,"W") 223 ;B 223 224 K @ZRDF ; DON'T NEED INPUT BUFFER ANYMORE 224 225 ; -- assign the MXLM dom global name to ZDOM … … 252 253 . S ZVOC=$P(ZI,"xmlns:",2) 253 254 . I ZVOC'="" S C0XVOC(ZVOC)=$G(@ZDOM@(1,"A",ZI)) 254 ;W !,"VOCABS:" ZWR C0XVOC255 W !,"VOCABS:" ZWR C0XVOC 255 256 ; 256 257 ; -- look for children called rdf:Description. quit if none. not an rdf file 257 258 ; 259 S C0XTYPE("rdf:Description")=1 260 S C0XTYPE("owl:ObjectProperty")=1 258 261 S ZI=$O(@ZDOM@(1,"C","")) 259 I $G(@ZDOM@(1,"C",ZI))'="rdf:Description"D Q ; not an rdf file262 I '$G(C0XTYPE(@ZDOM@(1,"C",ZI))) D Q ; not an rdf file 260 263 . W !,"Error. Not an RDF file. Cannot process." 264 . zwr ^TMP("MXMLDOM",$J,*) 261 265 ; 262 266 ; -- now process the rdf description children … … 268 272 . ; -- TODO: check to see if this is right in general 269 273 . ; 270 . IF $G(@ZDOM@(1,"C",ZI))'="rdf:Description"D Q ;274 . IF '$G(C0XTYPE(@ZDOM@(1,"C",ZI))) D Q ; 271 275 . . W !,"SKIPPING NODE: ",ZI 272 276 . ; -- now looking for the subject for the triples
Note:
See TracChangeset
for help on using the changeset viewer.