Changeset 1384 for fmts/trunk/p
- Timestamp:
- Mar 23, 2012, 12:34:28 PM (13 years ago)
- Location:
- fmts/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XF2N.m
r1383 r1384 142 142 S BATMAX=10000 ; TRY BATCHES OF THIS SIZE 143 143 N ZGRAPH,ZSUBJECT 144 S ZGRAPH="_:G"_$$LKY 5; RANDOM GRAPH NAME144 S ZGRAPH="_:G"_$$LKY9 ; RANDOM GRAPH NAME 145 145 S ZSUBJECT=$$ANONS() ; RANDOM ANOYMOUS SUBJECT 146 146 D ADD(ZGRAPH,ZSUBJECT,"fmts:url",ZNAME,FARY) 147 147 N ZTXTNM 148 S ZTXTNM="_TXT_INCOMING_RDF_FILE_"_ZNAME_"_"_$$LKY 5; NAME FOR TEXT NODE148 S ZTXTNM="_TXT_INCOMING_RDF_FILE_"_ZNAME_"_"_$$LKY9 ; NAME FOR TEXT NODE 149 149 D ADD(ZGRAPH,ZSUBJECT,"fmts:fileSource",ZTXTNM,FARY) 150 150 D ADD(ZGRAPH,ZSUBJECT,"fmts:fileTag",$$name2tag(ZNAME),FARY) … … 259 259 ; -- populate the metagraph to point to the graph with status unfinished 260 260 S METAS=$$ANONS ; GET AN ANONOMOUS RANDOM SUBJECT 261 I '$D(ZMETA) S ZMETA="_:G"_$$LKY 5; RANDOM GRAPH NAME FOR METAGRAPH261 I '$D(ZMETA) S ZMETA="_:G"_$$LKY9 ; RANDOM GRAPH NAME FOR METAGRAPH 262 262 D ADD(ZMETA,METAS,"fmts:about",ZGRF,FARY) ; POINT THE META TO THE GRAPH 263 263 D ADD(ZMETA,METAS,"fmts:status","unfinished",FARY) ; mark as unfinished … … 377 377 ; 378 378 ANONS() ; RETURNS AN ANONOMOUS SUBJECT 379 Q "iDPsDPss"_$$LKY 5379 Q "iDPsDPss"_$$LKY9 380 380 ; 381 381 NEWG(NGRAPH,NMETA) ; CREATES A NEW META GRAPH, MARKS IT AS UNFINISHED 382 382 ; THEN CREATES A NEW GRAPH AND POINTS THE METAGRAPH TO IT 383 383 ; NGRAPH AND NMETA ARE PASSED BY REFERENCE AND ARE THE RETURN 384 S NGRAPH="G"_$$LKY 5384 S NGRAPH="G"_$$LKY9 385 385 S NMETA=NGRAPH_"A" 386 386 Q -
fmts/trunk/p/C0XRDF.m
r1371 r1384 44 44 . S ZB=$P(ZPRED,":",2) 45 45 . S ZC=C0XVOC(ZA) 46 . I ZOBJ["nodeID:" D Q ; 47 . . D ADD(ZARY,"<"_ZB_" xmlns="""_ZC_""" rdf:nodeID="""_$$EXT^C0XUTIL(ZOBJ)_"""/>") 46 48 . D ADD(ZARY,"<"_ZB_" xmlns="""_ZC_""">"_$$EXT^C0XUTIL(ZOBJ)_"</"_ZB_">") 47 49 Q
Note:
See TracChangeset
for help on using the changeset viewer.