source: fmts/trunk/p/C0XLEX.m@ 1631

Last change on this file since 1631 was 1365, checked in by George Lilly, 13 years ago

updates for VistAOWL and Lex

File size: 1.7 KB
RevLine 
[1365]1C0XLEX ; GPL - Fileman Triples Lexicon experiments ;10/13/11 17:05
2 ;;0.1;C0X;nopatch;noreleasedate;Build 7
3 ;Copyright 2011 George Lilly. Licensed under the terms of the GNU
4 ;General Public License See attached copy of the License.
5 ;
6 ;This program is free software; you can redistribute it and/or modify
7 ;it under the terms of the GNU General Public License as published by
8 ;the Free Software Foundation; either version 2 of the License, or
9 ;(at your option) any later version.
10 ;
11 ;This program is distributed in the hope that it will be useful,
12 ;but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;GNU General Public License for more details.
15 ;
16 ;You should have received a copy of the GNU General Public License along
17 ;with this program; if not, write to the Free Software Foundation, Inc.,
18 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 ;
20 Q
21 ;
22CLEAR ; DELETE THE FILESTORE
23 K ^C0X(101)
24 K ^C0X(201)
25 S ^C0X(101,0)="C0X TRIPLE^172.101I^^"
26 S ^C0X(201,0)="C0X STRING^172.201I^^"
27 Q
28 ;
29LOADOWL ; INITIALIZE THE TRIPLE STORE - THIS DELETES THE GLOBALS AND
30 ;
31 S FARY="C0XFARY"
32 S C0XFARY("C0XDIR")="/home/glilly/vistaowl/"
33 D USEFARY^C0XF2N(FARY)
34 D IMPORT^C0XF2N("VistAOWL-2.owl",C0XDIR,,FARY)
35 Q
36 ;
37LOADLEX ;
38 S FARY="C0XFARY"
39 D INITFARY^C0XF2N(FARY)
40 D USEFARY^C0XF2N(FARY)
41 S C0XFARY("C0XDIR")="/home/glilly/Lex/LexGeorgeTriples/" ;
42 D USEFARY^C0XF2N(FARY)
43 S SMART(1)="LexClassNTypeGeorge.xml"
44 S SMART(2)="LexRelatedICD9George.xml"
45 S SMART(3)="LexDiseasesGeorge.xml"
46 N ZI S ZI=""
47 F S ZI=$O(SMART(ZI)) Q:ZI="" D ; for each smart file
48 . D IMPORT^C0XF2N(SMART(ZI),C0XDIR,,FARY) ; import to the triplestore
49 Q
Note: See TracBrowser for help on using the repository browser.