Changeset 1384 for fmts/trunk


Ignore:
Timestamp:
Mar 23, 2012, 12:34:28 PM (13 years ago)
Author:
George Lilly
Message:

fixed nodeID rdf processing

Location:
fmts/trunk/p
Files:
2 edited

Legend:

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

    r1383 r1384  
    142142 S BATMAX=10000 ; TRY BATCHES OF THIS SIZE
    143143 N ZGRAPH,ZSUBJECT
    144  S ZGRAPH="_:G"_$$LKY5 ; RANDOM GRAPH NAME
     144 S ZGRAPH="_:G"_$$LKY9 ; RANDOM GRAPH NAME
    145145 S ZSUBJECT=$$ANONS() ; RANDOM ANOYMOUS SUBJECT
    146146 D ADD(ZGRAPH,ZSUBJECT,"fmts:url",ZNAME,FARY)
    147147 N ZTXTNM
    148  S ZTXTNM="_TXT_INCOMING_RDF_FILE_"_ZNAME_"_"_$$LKY5 ; NAME FOR TEXT NODE
     148 S ZTXTNM="_TXT_INCOMING_RDF_FILE_"_ZNAME_"_"_$$LKY9 ; NAME FOR TEXT NODE
    149149 D ADD(ZGRAPH,ZSUBJECT,"fmts:fileSource",ZTXTNM,FARY)
    150150 D ADD(ZGRAPH,ZSUBJECT,"fmts:fileTag",$$name2tag(ZNAME),FARY)
     
    259259 ; -- populate the metagraph to point to the graph with status unfinished
    260260 S METAS=$$ANONS ; GET AN ANONOMOUS RANDOM SUBJECT
    261  I '$D(ZMETA) S ZMETA="_:G"_$$LKY5 ; RANDOM GRAPH NAME FOR METAGRAPH
     261 I '$D(ZMETA) S ZMETA="_:G"_$$LKY9 ; RANDOM GRAPH NAME FOR METAGRAPH
    262262 D ADD(ZMETA,METAS,"fmts:about",ZGRF,FARY) ; POINT THE META TO THE GRAPH
    263263 D ADD(ZMETA,METAS,"fmts:status","unfinished",FARY) ; mark as unfinished
     
    377377 ;
    378378ANONS() ; RETURNS AN ANONOMOUS SUBJECT
    379  Q "iDPsDPss"_$$LKY5
     379 Q "iDPsDPss"_$$LKY9
    380380 ;
    381381NEWG(NGRAPH,NMETA) ; CREATES A NEW META GRAPH, MARKS IT AS UNFINISHED
    382382 ; THEN CREATES A NEW GRAPH AND POINTS THE METAGRAPH TO IT
    383383 ; NGRAPH AND NMETA ARE PASSED BY REFERENCE AND ARE THE RETURN
    384  S NGRAPH="G"_$$LKY5
     384 S NGRAPH="G"_$$LKY9
    385385 S NMETA=NGRAPH_"A"
    386386 Q
  • fmts/trunk/p/C0XRDF.m

    r1371 r1384  
    4444 . S ZB=$P(ZPRED,":",2)
    4545 . S ZC=C0XVOC(ZA)
     46 . I ZOBJ["nodeID:" D  Q  ;
     47 . . D ADD(ZARY,"<"_ZB_" xmlns="""_ZC_""" rdf:nodeID="""_$$EXT^C0XUTIL(ZOBJ)_"""/>")
    4648 . D ADD(ZARY,"<"_ZB_" xmlns="""_ZC_""">"_$$EXT^C0XUTIL(ZOBJ)_"</"_ZB_">")
    4749 Q
Note: See TracChangeset for help on using the changeset viewer.