[1273] | 1 | KIDS Distribution saved on Oct 27, 2011@22:14:58
|
---|
| 2 | Initial build of fileman triplestore
|
---|
| 3 | **KIDS**:C0X*1.0*0^
|
---|
| 4 |
|
---|
| 5 | **INSTALL NAME**
|
---|
| 6 | C0X*1.0*0
|
---|
| 7 | "BLD",7885,0)
|
---|
| 8 | C0X*1.0*0^^0^3111027^n
|
---|
| 9 | "BLD",7885,4,0)
|
---|
| 10 | ^9.64PA^172.201^2
|
---|
| 11 | "BLD",7885,4,172.101,0)
|
---|
| 12 | 172.101
|
---|
| 13 | "BLD",7885,4,172.101,222)
|
---|
| 14 | y^y^f^^^^n
|
---|
| 15 | "BLD",7885,4,172.201,0)
|
---|
| 16 | 172.201
|
---|
| 17 | "BLD",7885,4,172.201,222)
|
---|
| 18 | y^y^f^^^^n
|
---|
| 19 | "BLD",7885,4,"B",172.101,172.101)
|
---|
| 20 |
|
---|
| 21 | "BLD",7885,4,"B",172.201,172.201)
|
---|
| 22 |
|
---|
| 23 | "BLD",7885,6.3)
|
---|
| 24 | 1
|
---|
| 25 | "BLD",7885,"KRN",0)
|
---|
| 26 | ^9.67PA^779.2^20
|
---|
| 27 | "BLD",7885,"KRN",.4,0)
|
---|
| 28 | .4
|
---|
| 29 | "BLD",7885,"KRN",.401,0)
|
---|
| 30 | .401
|
---|
| 31 | "BLD",7885,"KRN",.402,0)
|
---|
| 32 | .402
|
---|
| 33 | "BLD",7885,"KRN",.403,0)
|
---|
| 34 | .403
|
---|
| 35 | "BLD",7885,"KRN",.5,0)
|
---|
| 36 | .5
|
---|
| 37 | "BLD",7885,"KRN",.84,0)
|
---|
| 38 | .84
|
---|
| 39 | "BLD",7885,"KRN",3.6,0)
|
---|
| 40 | 3.6
|
---|
| 41 | "BLD",7885,"KRN",3.8,0)
|
---|
| 42 | 3.8
|
---|
| 43 | "BLD",7885,"KRN",9.2,0)
|
---|
| 44 | 9.2
|
---|
| 45 | "BLD",7885,"KRN",9.8,0)
|
---|
| 46 | 9.8
|
---|
| 47 | "BLD",7885,"KRN",9.8,"NM",0)
|
---|
| 48 | ^9.68A^1^1
|
---|
| 49 | "BLD",7885,"KRN",9.8,"NM",1,0)
|
---|
| 50 | C0XMAIN^^0^B11207527
|
---|
| 51 | "BLD",7885,"KRN",9.8,"NM","B","C0XMAIN",1)
|
---|
| 52 |
|
---|
| 53 | "BLD",7885,"KRN",19,0)
|
---|
| 54 | 19
|
---|
| 55 | "BLD",7885,"KRN",19.1,0)
|
---|
| 56 | 19.1
|
---|
| 57 | "BLD",7885,"KRN",101,0)
|
---|
| 58 | 101
|
---|
| 59 | "BLD",7885,"KRN",409.61,0)
|
---|
| 60 | 409.61
|
---|
| 61 | "BLD",7885,"KRN",771,0)
|
---|
| 62 | 771
|
---|
| 63 | "BLD",7885,"KRN",779.2,0)
|
---|
| 64 | 779.2
|
---|
| 65 | "BLD",7885,"KRN",870,0)
|
---|
| 66 | 870
|
---|
| 67 | "BLD",7885,"KRN",8989.51,0)
|
---|
| 68 | 8989.51
|
---|
| 69 | "BLD",7885,"KRN",8989.52,0)
|
---|
| 70 | 8989.52
|
---|
| 71 | "BLD",7885,"KRN",8994,0)
|
---|
| 72 | 8994
|
---|
| 73 | "BLD",7885,"KRN","B",.4,.4)
|
---|
| 74 |
|
---|
| 75 | "BLD",7885,"KRN","B",.401,.401)
|
---|
| 76 |
|
---|
| 77 | "BLD",7885,"KRN","B",.402,.402)
|
---|
| 78 |
|
---|
| 79 | "BLD",7885,"KRN","B",.403,.403)
|
---|
| 80 |
|
---|
| 81 | "BLD",7885,"KRN","B",.5,.5)
|
---|
| 82 |
|
---|
| 83 | "BLD",7885,"KRN","B",.84,.84)
|
---|
| 84 |
|
---|
| 85 | "BLD",7885,"KRN","B",3.6,3.6)
|
---|
| 86 |
|
---|
| 87 | "BLD",7885,"KRN","B",3.8,3.8)
|
---|
| 88 |
|
---|
| 89 | "BLD",7885,"KRN","B",9.2,9.2)
|
---|
| 90 |
|
---|
| 91 | "BLD",7885,"KRN","B",9.8,9.8)
|
---|
| 92 |
|
---|
| 93 | "BLD",7885,"KRN","B",19,19)
|
---|
| 94 |
|
---|
| 95 | "BLD",7885,"KRN","B",19.1,19.1)
|
---|
| 96 |
|
---|
| 97 | "BLD",7885,"KRN","B",101,101)
|
---|
| 98 |
|
---|
| 99 | "BLD",7885,"KRN","B",409.61,409.61)
|
---|
| 100 |
|
---|
| 101 | "BLD",7885,"KRN","B",771,771)
|
---|
| 102 |
|
---|
| 103 | "BLD",7885,"KRN","B",779.2,779.2)
|
---|
| 104 |
|
---|
| 105 | "BLD",7885,"KRN","B",870,870)
|
---|
| 106 |
|
---|
| 107 | "BLD",7885,"KRN","B",8989.51,8989.51)
|
---|
| 108 |
|
---|
| 109 | "BLD",7885,"KRN","B",8989.52,8989.52)
|
---|
| 110 |
|
---|
| 111 | "BLD",7885,"KRN","B",8994,8994)
|
---|
| 112 |
|
---|
| 113 | "FIA",172.101)
|
---|
| 114 | C0X TRIPLE
|
---|
| 115 | "FIA",172.101,0)
|
---|
| 116 | ^C0X(101,
|
---|
| 117 | "FIA",172.101,0,0)
|
---|
| 118 | 172.101I
|
---|
| 119 | "FIA",172.101,0,1)
|
---|
| 120 | y^y^f^^^^n
|
---|
| 121 | "FIA",172.101,0,10)
|
---|
| 122 |
|
---|
| 123 | "FIA",172.101,0,11)
|
---|
| 124 |
|
---|
| 125 | "FIA",172.101,0,"RLRO")
|
---|
| 126 |
|
---|
| 127 | "FIA",172.101,172.101)
|
---|
| 128 | 0
|
---|
| 129 | "FIA",172.201)
|
---|
| 130 | C0X STRING
|
---|
| 131 | "FIA",172.201,0)
|
---|
| 132 | ^C0X(201,
|
---|
| 133 | "FIA",172.201,0,0)
|
---|
| 134 | 172.201
|
---|
| 135 | "FIA",172.201,0,1)
|
---|
| 136 | y^y^f^^^^n
|
---|
| 137 | "FIA",172.201,0,10)
|
---|
| 138 |
|
---|
| 139 | "FIA",172.201,0,11)
|
---|
| 140 |
|
---|
| 141 | "FIA",172.201,0,"RLRO")
|
---|
| 142 |
|
---|
| 143 | "FIA",172.201,172.201)
|
---|
| 144 | 0
|
---|
| 145 | "FIA",172.201,172.2011)
|
---|
| 146 | 0
|
---|
| 147 | "IX",172.101,172.101,"G",0)
|
---|
| 148 | 172.101^G^REGULAR INDEX OF THE GRAPH FIELD^R^^F^IR^I^172.101^^^^^LS
|
---|
| 149 | "IX",172.101,172.101,"G",1)
|
---|
| 150 | S ^C0X(101,"G",X,DA)=""
|
---|
| 151 | "IX",172.101,172.101,"G",2)
|
---|
| 152 | K ^C0X(101,"G",X,DA)
|
---|
| 153 | "IX",172.101,172.101,"G",2.5)
|
---|
| 154 | K ^C0X(101,"G")
|
---|
| 155 | "IX",172.101,172.101,"G",11.1,0)
|
---|
| 156 | ^.114IA^1^1
|
---|
| 157 | "IX",172.101,172.101,"G",11.1,1,0)
|
---|
| 158 | 1^F^172.101^.02^^1^F
|
---|
| 159 | "IX",172.101,172.101,"G",11.1,1,3)
|
---|
| 160 |
|
---|
| 161 | "IX",172.101,172.101,"OPS",0)
|
---|
| 162 | 172.101^OPS^REGULAR INDEX OF OBJECT PREDICATE SUBJECT^R^^R^IR^I^172.101^^^^^LS
|
---|
| 163 | "IX",172.101,172.101,"OPS",1)
|
---|
| 164 | S ^C0X(101,"OPS",X(1),X(2),X(3),DA)=""
|
---|
| 165 | "IX",172.101,172.101,"OPS",2)
|
---|
| 166 | K ^C0X(101,"OPS",X(1),X(2),X(3),DA)
|
---|
| 167 | "IX",172.101,172.101,"OPS",2.5)
|
---|
| 168 | K ^C0X(101,"OPS")
|
---|
| 169 | "IX",172.101,172.101,"OPS",11.1,0)
|
---|
| 170 | ^.114IA^3^3
|
---|
| 171 | "IX",172.101,172.101,"OPS",11.1,1,0)
|
---|
| 172 | 1^F^172.101^.05^^1^F
|
---|
| 173 | "IX",172.101,172.101,"OPS",11.1,1,3)
|
---|
| 174 |
|
---|
| 175 | "IX",172.101,172.101,"OPS",11.1,2,0)
|
---|
| 176 | 2^F^172.101^.04^^2^F
|
---|
| 177 | "IX",172.101,172.101,"OPS",11.1,2,3)
|
---|
| 178 |
|
---|
| 179 | "IX",172.101,172.101,"OPS",11.1,3,0)
|
---|
| 180 | 3^F^172.101^.03^^3^F
|
---|
| 181 | "IX",172.101,172.101,"OPS",11.1,3,3)
|
---|
| 182 |
|
---|
| 183 | "IX",172.101,172.101,"OSP",0)
|
---|
| 184 | 172.101^OSP^REGULAR INDEX OF OBJECT SUBJECT PREDICATE^R^^R^IR^I^172.101^^^^^LS
|
---|
| 185 | "IX",172.101,172.101,"OSP",1)
|
---|
| 186 | S ^C0X(101,"OSP",X(1),X(2),X(3),DA)=""
|
---|
| 187 | "IX",172.101,172.101,"OSP",2)
|
---|
| 188 | K ^C0X(101,"OSP",X(1),X(2),X(3),DA)
|
---|
| 189 | "IX",172.101,172.101,"OSP",2.5)
|
---|
| 190 | K ^C0X(101,"OSP")
|
---|
| 191 | "IX",172.101,172.101,"OSP",11.1,0)
|
---|
| 192 | ^.114IA^3^3
|
---|
| 193 | "IX",172.101,172.101,"OSP",11.1,1,0)
|
---|
| 194 | 1^F^172.101^.05^^1^F
|
---|
| 195 | "IX",172.101,172.101,"OSP",11.1,1,3)
|
---|
| 196 |
|
---|
| 197 | "IX",172.101,172.101,"OSP",11.1,2,0)
|
---|
| 198 | 2^F^172.101^.03^^2^F
|
---|
| 199 | "IX",172.101,172.101,"OSP",11.1,2,3)
|
---|
| 200 |
|
---|
| 201 | "IX",172.101,172.101,"OSP",11.1,3,0)
|
---|
| 202 | 3^F^172.101^.04^^3^F
|
---|
| 203 | "IX",172.101,172.101,"OSP",11.1,3,3)
|
---|
| 204 |
|
---|
| 205 | "IX",172.101,172.101,"PSO",0)
|
---|
| 206 | 172.101^PSO^REGULAR INDEX OF PREDICATE SUBJECT OBJECT^R^^R^IR^I^172.101^^^^^LS
|
---|
| 207 | "IX",172.101,172.101,"PSO",1)
|
---|
| 208 | S ^C0X(101,"PSO",X(1),X(2),X(3),DA)=""
|
---|
| 209 | "IX",172.101,172.101,"PSO",2)
|
---|
| 210 | K ^C0X(101,"PSO",X(1),X(2),X(3),DA)
|
---|
| 211 | "IX",172.101,172.101,"PSO",2.5)
|
---|
| 212 | K ^C0X(101,"PSO")
|
---|
| 213 | "IX",172.101,172.101,"PSO",11.1,0)
|
---|
| 214 | ^.114IA^3^3
|
---|
| 215 | "IX",172.101,172.101,"PSO",11.1,1,0)
|
---|
| 216 | 1^F^172.101^.04^^1^F
|
---|
| 217 | "IX",172.101,172.101,"PSO",11.1,1,3)
|
---|
| 218 |
|
---|
| 219 | "IX",172.101,172.101,"PSO",11.1,2,0)
|
---|
| 220 | 2^F^172.101^.03^^2^F
|
---|
| 221 | "IX",172.101,172.101,"PSO",11.1,2,3)
|
---|
| 222 |
|
---|
| 223 | "IX",172.101,172.101,"PSO",11.1,3,0)
|
---|
| 224 | 3^F^172.101^.05^^3^F
|
---|
| 225 | "IX",172.101,172.101,"PSO",11.1,3,3)
|
---|
| 226 |
|
---|
| 227 | "IX",172.101,172.101,"SPO",0)
|
---|
| 228 | 172.101^SPO^REGULAR INDEX OF SUBJECT PREDICATE OBJECT^R^^R^IR^I^172.101^^^^^LS
|
---|
| 229 | "IX",172.101,172.101,"SPO",1)
|
---|
| 230 | S ^C0X(101,"SPO",X(1),X(2),X(3),DA)=""
|
---|
| 231 | "IX",172.101,172.101,"SPO",2)
|
---|
| 232 | K ^C0X(101,"SPO",X(1),X(2),X(3),DA)
|
---|
| 233 | "IX",172.101,172.101,"SPO",2.5)
|
---|
| 234 | K ^C0X(101,"SPO")
|
---|
| 235 | "IX",172.101,172.101,"SPO",11.1,0)
|
---|
| 236 | ^.114IA^3^3
|
---|
| 237 | "IX",172.101,172.101,"SPO",11.1,1,0)
|
---|
| 238 | 1^F^172.101^.03^^1^F
|
---|
| 239 | "IX",172.101,172.101,"SPO",11.1,1,3)
|
---|
| 240 |
|
---|
| 241 | "IX",172.101,172.101,"SPO",11.1,2,0)
|
---|
| 242 | 2^F^172.101^.04^^2^F
|
---|
| 243 | "IX",172.101,172.101,"SPO",11.1,2,3)
|
---|
| 244 |
|
---|
| 245 | "IX",172.101,172.101,"SPO",11.1,3,0)
|
---|
| 246 | 3^F^172.101^.05^^3^F
|
---|
| 247 | "IX",172.101,172.101,"SPO",11.1,3,3)
|
---|
| 248 |
|
---|
| 249 | "MBREQ")
|
---|
| 250 | 0
|
---|
| 251 | "QUES","XPF1",0)
|
---|
| 252 | Y
|
---|
| 253 | "QUES","XPF1","??")
|
---|
| 254 | ^D REP^XPDH
|
---|
| 255 | "QUES","XPF1","A")
|
---|
| 256 | Shall I write over your |FLAG| File
|
---|
| 257 | "QUES","XPF1","B")
|
---|
| 258 | YES
|
---|
| 259 | "QUES","XPF1","M")
|
---|
| 260 | D XPF1^XPDIQ
|
---|
| 261 | "QUES","XPF2",0)
|
---|
| 262 | Y
|
---|
| 263 | "QUES","XPF2","??")
|
---|
| 264 | ^D DTA^XPDH
|
---|
| 265 | "QUES","XPF2","A")
|
---|
| 266 | Want my data |FLAG| yours
|
---|
| 267 | "QUES","XPF2","B")
|
---|
| 268 | YES
|
---|
| 269 | "QUES","XPF2","M")
|
---|
| 270 | D XPF2^XPDIQ
|
---|
| 271 | "QUES","XPI1",0)
|
---|
| 272 | YO
|
---|
| 273 | "QUES","XPI1","??")
|
---|
| 274 | ^D INHIBIT^XPDH
|
---|
| 275 | "QUES","XPI1","A")
|
---|
| 276 | Want KIDS to INHIBIT LOGONs during the install
|
---|
| 277 | "QUES","XPI1","B")
|
---|
| 278 | NO
|
---|
| 279 | "QUES","XPI1","M")
|
---|
| 280 | D XPI1^XPDIQ
|
---|
| 281 | "QUES","XPM1",0)
|
---|
| 282 | PO^VA(200,:EM
|
---|
| 283 | "QUES","XPM1","??")
|
---|
| 284 | ^D MG^XPDH
|
---|
| 285 | "QUES","XPM1","A")
|
---|
| 286 | Enter the Coordinator for Mail Group '|FLAG|'
|
---|
| 287 | "QUES","XPM1","B")
|
---|
| 288 |
|
---|
| 289 | "QUES","XPM1","M")
|
---|
| 290 | D XPM1^XPDIQ
|
---|
| 291 | "QUES","XPO1",0)
|
---|
| 292 | Y
|
---|
| 293 | "QUES","XPO1","??")
|
---|
| 294 | ^D MENU^XPDH
|
---|
| 295 | "QUES","XPO1","A")
|
---|
| 296 | Want KIDS to Rebuild Menu Trees Upon Completion of Install
|
---|
| 297 | "QUES","XPO1","B")
|
---|
| 298 | NO
|
---|
| 299 | "QUES","XPO1","M")
|
---|
| 300 | D XPO1^XPDIQ
|
---|
| 301 | "QUES","XPZ1",0)
|
---|
| 302 | Y
|
---|
| 303 | "QUES","XPZ1","??")
|
---|
| 304 | ^D OPT^XPDH
|
---|
| 305 | "QUES","XPZ1","A")
|
---|
| 306 | Want to DISABLE Scheduled Options, Menu Options, and Protocols
|
---|
| 307 | "QUES","XPZ1","B")
|
---|
| 308 | NO
|
---|
| 309 | "QUES","XPZ1","M")
|
---|
| 310 | D XPZ1^XPDIQ
|
---|
| 311 | "QUES","XPZ2",0)
|
---|
| 312 | Y
|
---|
| 313 | "QUES","XPZ2","??")
|
---|
| 314 | ^D RTN^XPDH
|
---|
| 315 | "QUES","XPZ2","A")
|
---|
| 316 | Want to MOVE routines to other CPUs
|
---|
| 317 | "QUES","XPZ2","B")
|
---|
| 318 | NO
|
---|
| 319 | "QUES","XPZ2","M")
|
---|
| 320 | D XPZ2^XPDIQ
|
---|
| 321 | "RTN")
|
---|
| 322 | 1
|
---|
| 323 | "RTN","C0XMAIN")
|
---|
| 324 | 0^1^B11207527
|
---|
| 325 | "RTN","C0XMAIN",1,0)
|
---|
| 326 | C0XMAIN ; GPL - Fileman Triples entry point routine ;10/13/11 17:05
|
---|
| 327 | "RTN","C0XMAIN",2,0)
|
---|
| 328 | ;;0.1;C0X;nopatch;noreleasedate;Build 1
|
---|
| 329 | "RTN","C0XMAIN",3,0)
|
---|
| 330 | ;Copyright 2011 George Lilly. Licensed under the terms of the GNU
|
---|
| 331 | "RTN","C0XMAIN",4,0)
|
---|
| 332 | ;General Public License See attached copy of the License.
|
---|
| 333 | "RTN","C0XMAIN",5,0)
|
---|
| 334 | ;
|
---|
| 335 | "RTN","C0XMAIN",6,0)
|
---|
| 336 | ;This program is free software; you can redistribute it and/or modify
|
---|
| 337 | "RTN","C0XMAIN",7,0)
|
---|
| 338 | ;it under the terms of the GNU General Public License as published by
|
---|
| 339 | "RTN","C0XMAIN",8,0)
|
---|
| 340 | ;the Free Software Foundation; either version 2 of the License, or
|
---|
| 341 | "RTN","C0XMAIN",9,0)
|
---|
| 342 | ;(at your option) any later version.
|
---|
| 343 | "RTN","C0XMAIN",10,0)
|
---|
| 344 | ;
|
---|
| 345 | "RTN","C0XMAIN",11,0)
|
---|
| 346 | ;This program is distributed in the hope that it will be useful,
|
---|
| 347 | "RTN","C0XMAIN",12,0)
|
---|
| 348 | ;but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 349 | "RTN","C0XMAIN",13,0)
|
---|
| 350 | ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 351 | "RTN","C0XMAIN",14,0)
|
---|
| 352 | ;GNU General Public License for more details.
|
---|
| 353 | "RTN","C0XMAIN",15,0)
|
---|
| 354 | ;
|
---|
| 355 | "RTN","C0XMAIN",16,0)
|
---|
| 356 | ;You should have received a copy of the GNU General Public License along
|
---|
| 357 | "RTN","C0XMAIN",17,0)
|
---|
| 358 | ;with this program; if not, write to the Free Software Foundation, Inc.,
|
---|
| 359 | "RTN","C0XMAIN",18,0)
|
---|
| 360 | ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
---|
| 361 | "RTN","C0XMAIN",19,0)
|
---|
| 362 | ;
|
---|
| 363 | "RTN","C0XMAIN",20,0)
|
---|
| 364 | Q
|
---|
| 365 | "RTN","C0XMAIN",21,0)
|
---|
| 366 | ;
|
---|
| 367 | "RTN","C0XMAIN",22,0)
|
---|
| 368 | INITFARY(ZFARY) ; INITIALIZE FILE NUMBERS AND OTHER USEFUL THINGS
|
---|
| 369 | "RTN","C0XMAIN",23,0)
|
---|
| 370 | ; FOR THE DEFAULT TRIPLE STORE. USE OTHER VALUES FOR SUPPORTING ADDITIONAL
|
---|
| 371 | "RTN","C0XMAIN",24,0)
|
---|
| 372 | ; TRIPLE STORES
|
---|
| 373 | "RTN","C0XMAIN",25,0)
|
---|
| 374 | S @ZFARY@("C0XTFN")=172.101 ; TRIPLES FILE NUMBER
|
---|
| 375 | "RTN","C0XMAIN",26,0)
|
---|
| 376 | S @ZFARY@("C0XSFN")=172.201 ; TRIPLES STRINGS FILE NUMBER
|
---|
| 377 | "RTN","C0XMAIN",27,0)
|
---|
| 378 | S @ZFARY@("C0XTN")=$NA(^C0X(101)) ; TRIPLES GLOBAL NAME
|
---|
| 379 | "RTN","C0XMAIN",28,0)
|
---|
| 380 | S @ZFARY@("C0XSN")=$NA(^C0X(201)) ; STRING FILE GLOBAL NAME
|
---|
| 381 | "RTN","C0XMAIN",29,0)
|
---|
| 382 | S @ZFARY@("C0XDIR")="/home/glilly/all_smart_patient_data/smart-rdf/"
|
---|
| 383 | "RTN","C0XMAIN",30,0)
|
---|
| 384 | D USEFARY(ZFARY)
|
---|
| 385 | "RTN","C0XMAIN",31,0)
|
---|
| 386 | Q
|
---|
| 387 | "RTN","C0XMAIN",32,0)
|
---|
| 388 | ;
|
---|
| 389 | "RTN","C0XMAIN",33,0)
|
---|
| 390 | USEFARY(ZFARY) ; INITIALIZES VARIABLES SAVED IN ARRAY ZFARY
|
---|
| 391 | "RTN","C0XMAIN",34,0)
|
---|
| 392 | N ZI S ZI=""
|
---|
| 393 | "RTN","C0XMAIN",35,0)
|
---|
| 394 | F S ZI=$O(@ZFARY@(ZI)) Q:ZI="" D
|
---|
| 395 | "RTN","C0XMAIN",36,0)
|
---|
| 396 | . ;N ZX
|
---|
| 397 | "RTN","C0XMAIN",37,0)
|
---|
| 398 | . S ZX="S "_ZI_"="""_@ZFARY@(ZI)_""""
|
---|
| 399 | "RTN","C0XMAIN",38,0)
|
---|
| 400 | . ;W !,ZX
|
---|
| 401 | "RTN","C0XMAIN",39,0)
|
---|
| 402 | . X ZX
|
---|
| 403 | "RTN","C0XMAIN",40,0)
|
---|
| 404 | Q
|
---|
| 405 | "RTN","C0XMAIN",41,0)
|
---|
| 406 | ;
|
---|
| 407 | "RTN","C0XMAIN",42,0)
|
---|
| 408 | IMPORT(FNAME,FDIR,FURL,FARY) ; EXTRINSIC THAT READS A FILE FROM THE STANDARD
|
---|
| 409 | "RTN","C0XMAIN",43,0)
|
---|
| 410 | ; DIRECTORY, LOADS IT INTO THE TRIPLESTORE AS TEXT, AND RETURNS THE
|
---|
| 411 | "RTN","C0XMAIN",44,0)
|
---|
| 412 | ; NODE NAME OF THE TEXT TRIPLE
|
---|
| 413 | "RTN","C0XMAIN",45,0)
|
---|
| 414 | ; FDIR IS THE OPTIONAL DIRECTORY (DEFAUTS TO STANDARD DIR)
|
---|
| 415 | "RTN","C0XMAIN",46,0)
|
---|
| 416 | ; FURL IS THE OPTIONAL URI FOR ACCESSING THE FILE FROM THE TRIPLE STORE
|
---|
| 417 | "RTN","C0XMAIN",47,0)
|
---|
| 418 | ; FARY IS THE OPTIONAL FILE ARRAY OF THE TRIPLE STORE TO USE
|
---|
| 419 | "RTN","C0XMAIN",48,0)
|
---|
| 420 | I '$D(FARY) D ;
|
---|
| 421 | "RTN","C0XMAIN",49,0)
|
---|
| 422 | . D INITFARY("C0XFARY")
|
---|
| 423 | "RTN","C0XMAIN",50,0)
|
---|
| 424 | . S FARY="C0XFARY"
|
---|
| 425 | "RTN","C0XMAIN",51,0)
|
---|
| 426 | D USEFARY(FARY)
|
---|
| 427 | "RTN","C0XMAIN",52,0)
|
---|
| 428 | N ZD,ZTMP
|
---|
| 429 | "RTN","C0XMAIN",53,0)
|
---|
| 430 | I '$D(FDIR) S FDIR=C0XDIR ; DIRECTORY OF THE RDF FILE
|
---|
| 431 | "RTN","C0XMAIN",54,0)
|
---|
| 432 | I '$D(FURL) D ;
|
---|
| 433 | "RTN","C0XMAIN",55,0)
|
---|
| 434 | . N ZN2 S ZN2=$TR(FNAME,".","_") ; REMOVE THE DOT FROM THE NAME
|
---|
| 435 | "RTN","C0XMAIN",56,0)
|
---|
| 436 | . S FURL="/local/files/"_ZN2
|
---|
| 437 | "RTN","C0XMAIN",57,0)
|
---|
| 438 | N ZGRAPH,ZSUBJECT
|
---|
| 439 | "RTN","C0XMAIN",58,0)
|
---|
| 440 | S ZGRAPH="G"_$$LKY9 ; RANDOM GRAPH NAME
|
---|
| 441 | "RTN","C0XMAIN",59,0)
|
---|
| 442 | S ZSUBJECT="_S"_$$LKY9 ; RANDOM ANOYMOUS SUBJECT
|
---|
| 443 | "RTN","C0XMAIN",60,0)
|
---|
| 444 | D ADD(ZGRAPH,ZSUBJECT,"v:url",FURL)
|
---|
| 445 | "RTN","C0XMAIN",61,0)
|
---|
| 446 | N ZTXTNM
|
---|
| 447 | "RTN","C0XMAIN",62,0)
|
---|
| 448 | S ZTXTNM="_TXT_INCOMING_RDF_FILE_"_$$LKY9 ; NAME FOR TEXT NODE
|
---|
| 449 | "RTN","C0XMAIN",63,0)
|
---|
| 450 | D ADD(ZGRAPH,ZSUBJECT,"v:rdfSource",ZTXTNM)
|
---|
| 451 | "RTN","C0XMAIN",64,0)
|
---|
| 452 | D UPDIE(.C0XFDA) ; TRY IT OUT
|
---|
| 453 | "RTN","C0XMAIN",65,0)
|
---|
| 454 | K C0XCNT ;RESET FOR NEXT TIME
|
---|
| 455 | "RTN","C0XMAIN",66,0)
|
---|
| 456 | Q
|
---|
| 457 | "RTN","C0XMAIN",67,0)
|
---|
| 458 | ;
|
---|
| 459 | "RTN","C0XMAIN",68,0)
|
---|
| 460 | ADD(ZG,ZS,ZP,ZO,FARY) ; ADD A TRIPLE TO THE TRIPLESTORE. ALL VALUES ARE TEXT
|
---|
| 461 | "RTN","C0XMAIN",69,0)
|
---|
| 462 | ; THE FDA IS SET UP BUT THE FILES ARE NOT UPDATED. CALL UPDIE TO COMPLETE
|
---|
| 463 | "RTN","C0XMAIN",70,0)
|
---|
| 464 | I '$D(FARY) D ;
|
---|
| 465 | "RTN","C0XMAIN",71,0)
|
---|
| 466 | . D INITFARY("C0XFARY")
|
---|
| 467 | "RTN","C0XMAIN",72,0)
|
---|
| 468 | . S FARY="C0XFARY"
|
---|
| 469 | "RTN","C0XMAIN",73,0)
|
---|
| 470 | D USEFARY(FARY)
|
---|
| 471 | "RTN","C0XMAIN",74,0)
|
---|
| 472 | I '$D(C0XCNT) S C0XCNT=0
|
---|
| 473 | "RTN","C0XMAIN",75,0)
|
---|
| 474 | N ZNODE
|
---|
| 475 | "RTN","C0XMAIN",76,0)
|
---|
| 476 | S ZNODE="N"_$$LKY9
|
---|
| 477 | "RTN","C0XMAIN",77,0)
|
---|
| 478 | S ZGIEN=$$IENOF(ZG) ; LAYGO TO GET IEN
|
---|
| 479 | "RTN","C0XMAIN",78,0)
|
---|
| 480 | S ZSIEN=$$IENOF(ZS)
|
---|
| 481 | "RTN","C0XMAIN",79,0)
|
---|
| 482 | S ZPIEN=$$IENOF(ZP)
|
---|
| 483 | "RTN","C0XMAIN",80,0)
|
---|
| 484 | S ZOIEN=$$IENOF(ZO)
|
---|
| 485 | "RTN","C0XMAIN",81,0)
|
---|
| 486 | ;I $D(C0XFDA) D UPDIE ; ADD THE STRINGS IF NEEDED
|
---|
| 487 | "RTN","C0XMAIN",82,0)
|
---|
| 488 | S C0XCNT=C0XCNT+1
|
---|
| 489 | "RTN","C0XMAIN",83,0)
|
---|
| 490 | S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.01)=ZNODE
|
---|
| 491 | "RTN","C0XMAIN",84,0)
|
---|
| 492 | S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.02)=ZGIEN
|
---|
| 493 | "RTN","C0XMAIN",85,0)
|
---|
| 494 | S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.03)=ZSIEN
|
---|
| 495 | "RTN","C0XMAIN",86,0)
|
---|
| 496 | S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.04)=ZPIEN
|
---|
| 497 | "RTN","C0XMAIN",87,0)
|
---|
| 498 | S C0XFDA(C0XTFN,"?+"_C0XCNT_",",.05)=ZOIEN
|
---|
| 499 | "RTN","C0XMAIN",88,0)
|
---|
| 500 | ; REMEMBER TO CALL UPDIE WHEN YOU'RE DONE
|
---|
| 501 | "RTN","C0XMAIN",89,0)
|
---|
| 502 | Q
|
---|
| 503 | "RTN","C0XMAIN",90,0)
|
---|
| 504 | ;
|
---|
| 505 | "RTN","C0XMAIN",91,0)
|
---|
| 506 | LKY9() ;EXTRINIC THAT RETURNS A RANDOM 9 DIGIT NUMBER. USED FOR GENERATING
|
---|
| 507 | "RTN","C0XMAIN",92,0)
|
---|
| 508 | ; UNIQUE NODE AND GRAPH NAMES
|
---|
| 509 | "RTN","C0XMAIN",93,0)
|
---|
| 510 | N ZN,ZI
|
---|
| 511 | "RTN","C0XMAIN",94,0)
|
---|
| 512 | S ZN=""
|
---|
| 513 | "RTN","C0XMAIN",95,0)
|
---|
| 514 | F ZI=1:1:9 D ;
|
---|
| 515 | "RTN","C0XMAIN",96,0)
|
---|
| 516 | . S ZN=ZN_$R(10)
|
---|
| 517 | "RTN","C0XMAIN",97,0)
|
---|
| 518 | Q ZN
|
---|
| 519 | "RTN","C0XMAIN",98,0)
|
---|
| 520 | ;
|
---|
| 521 | "RTN","C0XMAIN",99,0)
|
---|
| 522 | IENOF(ZSTRING,FARY) ; EXTRINSIC WHICH RETURNS THE IEN OF ZS IN THE STRINGS FILE
|
---|
| 523 | "RTN","C0XMAIN",100,0)
|
---|
| 524 | I '$D(FARY) D ;
|
---|
| 525 | "RTN","C0XMAIN",101,0)
|
---|
| 526 | . D INITFARY("C0XFARY")
|
---|
| 527 | "RTN","C0XMAIN",102,0)
|
---|
| 528 | . S FARY="C0XFARY"
|
---|
| 529 | "RTN","C0XMAIN",103,0)
|
---|
| 530 | N ZIEN
|
---|
| 531 | "RTN","C0XMAIN",104,0)
|
---|
| 532 | S ZIEN=$O(@C0XSN@("B",ZSTRING,""))
|
---|
| 533 | "RTN","C0XMAIN",105,0)
|
---|
| 534 | I ZIEN="" D ;
|
---|
| 535 | "RTN","C0XMAIN",106,0)
|
---|
| 536 | . S C0XFDA2(C0XSFN,"+1,",.01)=ZSTRING
|
---|
| 537 | "RTN","C0XMAIN",107,0)
|
---|
| 538 | . D UPDIE(.C0XFDA2)
|
---|
| 539 | "RTN","C0XMAIN",108,0)
|
---|
| 540 | . S ZIEN=$O(@C0XSN@("B",ZSTRING,""))
|
---|
| 541 | "RTN","C0XMAIN",109,0)
|
---|
| 542 | . K C0XFDA2
|
---|
| 543 | "RTN","C0XMAIN",110,0)
|
---|
| 544 | Q ZIEN
|
---|
| 545 | "RTN","C0XMAIN",111,0)
|
---|
| 546 | ;
|
---|
| 547 | "RTN","C0XMAIN",112,0)
|
---|
| 548 | UPDIE(ZFDA) ; INTERNAL ROUTINE TO CALL UPDATE^DIE AND CHECK FOR ERRORS
|
---|
| 549 | "RTN","C0XMAIN",113,0)
|
---|
| 550 | ; ZFDA IS PASSED BY REFERENCE
|
---|
| 551 | "RTN","C0XMAIN",114,0)
|
---|
| 552 | K ZERR
|
---|
| 553 | "RTN","C0XMAIN",115,0)
|
---|
| 554 | D CLEAN^DILF
|
---|
| 555 | "RTN","C0XMAIN",116,0)
|
---|
| 556 | D UPDATE^DIE("","ZFDA","","ZERR")
|
---|
| 557 | "RTN","C0XMAIN",117,0)
|
---|
| 558 | I $D(ZERR) S ZZERR=ZZERR ; ZZERR DOESN'T EXIST, INVOKE THE ERROR TRAP IF TASKED
|
---|
| 559 | "RTN","C0XMAIN",118,0)
|
---|
| 560 | ;. W "ERROR",!
|
---|
| 561 | "RTN","C0XMAIN",119,0)
|
---|
| 562 | ;. ZWR ZERR
|
---|
| 563 | "RTN","C0XMAIN",120,0)
|
---|
| 564 | ;. B
|
---|
| 565 | "RTN","C0XMAIN",121,0)
|
---|
| 566 | K ZFDA
|
---|
| 567 | "RTN","C0XMAIN",122,0)
|
---|
| 568 | Q
|
---|
| 569 | "RTN","C0XMAIN",123,0)
|
---|
| 570 | ;
|
---|
| 571 | "SEC","^DIC",172.101,172.101,0,"AUDIT")
|
---|
| 572 | @
|
---|
| 573 | "SEC","^DIC",172.101,172.101,0,"DD")
|
---|
| 574 | @
|
---|
| 575 | "SEC","^DIC",172.101,172.101,0,"DEL")
|
---|
| 576 | @
|
---|
| 577 | "SEC","^DIC",172.101,172.101,0,"LAYGO")
|
---|
| 578 | @
|
---|
| 579 | "SEC","^DIC",172.101,172.101,0,"RD")
|
---|
| 580 | @
|
---|
| 581 | "SEC","^DIC",172.101,172.101,0,"WR")
|
---|
| 582 | @
|
---|
| 583 | "SEC","^DIC",172.201,172.201,0,"AUDIT")
|
---|
| 584 | @
|
---|
| 585 | "SEC","^DIC",172.201,172.201,0,"DD")
|
---|
| 586 | @
|
---|
| 587 | "SEC","^DIC",172.201,172.201,0,"DEL")
|
---|
| 588 | @
|
---|
| 589 | "SEC","^DIC",172.201,172.201,0,"LAYGO")
|
---|
| 590 | @
|
---|
| 591 | "SEC","^DIC",172.201,172.201,0,"RD")
|
---|
| 592 | @
|
---|
| 593 | "SEC","^DIC",172.201,172.201,0,"WR")
|
---|
| 594 | @
|
---|
| 595 | "VER")
|
---|
| 596 | 8.0^22.0
|
---|
| 597 | "^DD",172.101,172.101,0)
|
---|
| 598 | FIELD^^.05^5
|
---|
| 599 | "^DD",172.101,172.101,0,"DDA")
|
---|
| 600 | N
|
---|
| 601 | "^DD",172.101,172.101,0,"DT")
|
---|
| 602 | 3111013
|
---|
| 603 | "^DD",172.101,172.101,0,"ID",.02)
|
---|
| 604 | S %I=Y,Y=$S('$D(^(0)):"",$D(^C0X(201,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(172.201,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
|
---|
| 605 | "^DD",172.101,172.101,0,"ID",.03)
|
---|
| 606 | S %I=Y,Y=$S('$D(^(0)):"",$D(^C0X(201,+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(172.201,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
|
---|
| 607 | "^DD",172.101,172.101,0,"ID",.04)
|
---|
| 608 | S %I=Y,Y=$S('$D(^(0)):"",$D(^C0X(201,+$P(^(0),U,4),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(172.201,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
|
---|
| 609 | "^DD",172.101,172.101,0,"ID",.05)
|
---|
| 610 | S %I=Y,Y=$S('$D(^(0)):"",$D(^C0X(201,+$P(^(0),U,5),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(172.201,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
|
---|
| 611 | "^DD",172.101,172.101,0,"IX","B",172.101,.01)
|
---|
| 612 |
|
---|
| 613 | "^DD",172.101,172.101,0,"NM","C0X TRIPLE")
|
---|
| 614 |
|
---|
| 615 | "^DD",172.101,172.101,.01,0)
|
---|
| 616 | NODEID^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
|
---|
| 617 | "^DD",172.101,172.101,.01,.1)
|
---|
| 618 | TRIPLE NODE ID
|
---|
| 619 | "^DD",172.101,172.101,.01,1,0)
|
---|
| 620 | ^.1
|
---|
| 621 | "^DD",172.101,172.101,.01,1,1,0)
|
---|
| 622 | 172.101^B
|
---|
| 623 | "^DD",172.101,172.101,.01,1,1,1)
|
---|
| 624 | S ^C0X(101,"B",$E(X,1,30),DA)=""
|
---|
| 625 | "^DD",172.101,172.101,.01,1,1,2)
|
---|
| 626 | K ^C0X(101,"B",$E(X,1,30),DA)
|
---|
| 627 | "^DD",172.101,172.101,.01,3)
|
---|
| 628 | Answer must be 3-30 characters in length
|
---|
| 629 | "^DD",172.101,172.101,.01,"DT")
|
---|
| 630 | 3111013
|
---|
| 631 | "^DD",172.101,172.101,.02,0)
|
---|
| 632 | GRAPH^P172.201^C0X(201,^0;2^Q
|
---|
| 633 | "^DD",172.101,172.101,.02,.1)
|
---|
| 634 | TRIPLE GRAPH
|
---|
| 635 | "^DD",172.101,172.101,.02,3)
|
---|
| 636 | Answer must be 3-240 characters in length
|
---|
| 637 | "^DD",172.101,172.101,.02,"DT")
|
---|
| 638 | 3111013
|
---|
| 639 | "^DD",172.101,172.101,.03,0)
|
---|
| 640 | SUBJECT^P172.201^C0X(201,^0;3^Q
|
---|
| 641 | "^DD",172.101,172.101,.03,.1)
|
---|
| 642 | TRIPLE SUBJECT
|
---|
| 643 | "^DD",172.101,172.101,.03,"DT")
|
---|
| 644 | 3111013
|
---|
| 645 | "^DD",172.101,172.101,.04,0)
|
---|
| 646 | PREDICATE^P172.201^C0X(201,^0;4^Q
|
---|
| 647 | "^DD",172.101,172.101,.04,.1)
|
---|
| 648 | TRIPLE PREDICATE
|
---|
| 649 | "^DD",172.101,172.101,.04,"DT")
|
---|
| 650 | 3111013
|
---|
| 651 | "^DD",172.101,172.101,.05,0)
|
---|
| 652 | OBJECT^P172.201^C0X(201,^0;5^Q
|
---|
| 653 | "^DD",172.101,172.101,.05,.1)
|
---|
| 654 | TRIPLE OBJECT
|
---|
| 655 | "^DD",172.101,172.101,.05,"DT")
|
---|
| 656 | 3111013
|
---|
| 657 | "^DD",172.201,172.201,0)
|
---|
| 658 | FIELD^^1^2
|
---|
| 659 | "^DD",172.201,172.201,0,"DDA")
|
---|
| 660 | N
|
---|
| 661 | "^DD",172.201,172.201,0,"DT")
|
---|
| 662 | 3111013
|
---|
| 663 | "^DD",172.201,172.201,0,"IX","B",172.201,.01)
|
---|
| 664 |
|
---|
| 665 | "^DD",172.201,172.201,0,"NM","C0X STRING")
|
---|
| 666 |
|
---|
| 667 | "^DD",172.201,172.201,0,"PT",172.101,.02)
|
---|
| 668 |
|
---|
| 669 | "^DD",172.201,172.201,0,"PT",172.101,.03)
|
---|
| 670 |
|
---|
| 671 | "^DD",172.201,172.201,0,"PT",172.101,.04)
|
---|
| 672 |
|
---|
| 673 | "^DD",172.201,172.201,0,"PT",172.101,.05)
|
---|
| 674 |
|
---|
| 675 | "^DD",172.201,172.201,.01,0)
|
---|
| 676 | STRING^RF^^0;1^K:$L(X)>240!($L(X)<1)!'(X=X) X
|
---|
| 677 | "^DD",172.201,172.201,.01,.1)
|
---|
| 678 | TRIPLE STRING
|
---|
| 679 | "^DD",172.201,172.201,.01,1,0)
|
---|
| 680 | ^.1
|
---|
| 681 | "^DD",172.201,172.201,.01,1,1,0)
|
---|
| 682 | 172.201^B
|
---|
| 683 | "^DD",172.201,172.201,.01,1,1,1)
|
---|
| 684 | S ^C0X(201,"B",$E(X,1,30),DA)=""
|
---|
| 685 | "^DD",172.201,172.201,.01,1,1,2)
|
---|
| 686 | K ^C0X(201,"B",$E(X,1,30),DA)
|
---|
| 687 | "^DD",172.201,172.201,.01,3)
|
---|
| 688 | Answer must be 1-240 characters in length
|
---|
| 689 | "^DD",172.201,172.201,.01,"DT")
|
---|
| 690 | 3111013
|
---|
| 691 | "^DD",172.201,172.201,1,0)
|
---|
| 692 | TEXT^172.2011^^1;0
|
---|
| 693 | "^DD",172.201,172.2011,0)
|
---|
| 694 | TEXT SUB-FIELD^^.01^1
|
---|
| 695 | "^DD",172.201,172.2011,0,"DT")
|
---|
| 696 | 3111013
|
---|
| 697 | "^DD",172.201,172.2011,0,"NM","TEXT")
|
---|
| 698 |
|
---|
| 699 | "^DD",172.201,172.2011,0,"UP")
|
---|
| 700 | 172.201
|
---|
| 701 | "^DD",172.201,172.2011,.01,0)
|
---|
| 702 | TEXT^Wx^^0;1
|
---|
| 703 | "^DD",172.201,172.2011,.01,.1)
|
---|
| 704 | LONGER TEXT
|
---|
| 705 | "^DD",172.201,172.2011,.01,"DT")
|
---|
| 706 | 3111013
|
---|
| 707 | "^DIC",172.101,172.101,0)
|
---|
| 708 | C0X TRIPLE^172.101
|
---|
| 709 | "^DIC",172.101,172.101,0,"GL")
|
---|
| 710 | ^C0X(101,
|
---|
| 711 | "^DIC",172.101,"B","C0X TRIPLE",172.101)
|
---|
| 712 |
|
---|
| 713 | "^DIC",172.201,172.201,0)
|
---|
| 714 | C0X STRING^172.201
|
---|
| 715 | "^DIC",172.201,172.201,0,"GL")
|
---|
| 716 | ^C0X(201,
|
---|
| 717 | "^DIC",172.201,"B","C0X STRING",172.201)
|
---|
| 718 |
|
---|
| 719 | **END**
|
---|
| 720 | **END**
|
---|