Changeset 1363


Ignore:
Timestamp:
Feb 19, 2012, 11:03:49 PM (13 years ago)
Author:
George Lilly
Message:

updates and bug fixes

Location:
fmts/trunk/p
Files:
3 edited

Legend:

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

    r1360 r1363  
    3838 S @ZFARY@("C0XTN")=$NA(^C0X(101)) ; TRIPLES GLOBAL NAME
    3939 S @ZFARY@("C0XSN")=$NA(^C0X(201)) ; STRING FILE GLOBAL NAME
    40  S @ZFARY@("C0XDIR")="/home/glilly/snomed/"
     40 S @ZFARY@("C0XDIR")="/home/vista/gpl/C0Q/trunk/rdf/"
    4141 S @ZFARY@("BLKLOAD")=1 ; this file supports block load
    4242 S @ZFARY@("FMTSSTYLE")="F2N" ; fileman style
    43  S @ZFARY@("REPLYFMT")="JSON"
     43 S @ZFARY@("REPLYFMT")=""
    4444 D USEFARY(ZFARY)
    4545 Q
     
    274274 S C0XTYPE("owl:ObjectProperty")=1
    275275 S C0XTYPE("owl:Ontology")=1
     276 S C0XTYPE("owl:Class")=1
     277 S C0XTYPE("rdfs:subClassOf")=1
    276278 S ZI=$O(@ZDOM@(1,"C",""))
    277279 I '$G(C0XTYPE(@ZDOM@(1,"C",ZI))) D  Q  ; not an rdf file
     
    315317 . . S ZY=$G(@ZDOM@(ZJ,"A","rdf:resource")) ; potential object
    316318 . . I ZY'="" D  Q ;
    317  . . . S C0XOBJ=ZY ; object
     319 . . . S C0XOBJ=$$EXT^C0XUTIL(ZY) ; object
    318320 . . . D ADD(ZGRF,C0XSUB,C0XPRE,C0XOBJ) ; finally. our first real triple
    319321 . . ; -- this is an else because of the quit above
     
    326328 . . I C0XOBJ="" D  Q  ; not a happy situation
    327329 . . . W !,"ERROR, NO OBJECT FOUND FOR NODE: ",ZJ
     330 . . S C0XOBJ=$$EXT^C0XUTIL(C0XOBJ) ; might be namespaced
    328331 . . D ADD(ZGRF,C0XSUB,C0XPRE,C0XOBJ) ; go for it and add a node
    329332 S C0XTRP=$$NOW^XLFDT ; PARSE COMPLETE
  • fmts/trunk/p/C0XINIT.m

    r1343 r1363  
    3636 ; -- we are assuming that FARY is set up properly in C0XF2N
    3737 ; -- with repect to the default directory and the defaut fileman files
    38  ; -- here's what it is now: "/home/glilly/fmts/trunk/samples/"
     38 ; -- here's what it is now: "/home/vista/gpl/fmts/trunk/samples/"
    3939 ; -- that means that all the sample files will look like:
    4040 ; --- qds/QDS_0001.rdf
     
    4444 D INITFARY^C0XF2N(FARY)
    4545 D USEFARY^C0XF2N(FARY)
    46  S C0XFARY("C0XDIR")="/home/glilly/fmts/trunk/samples/smart-rdf-in/" ;
     46 S C0XFARY("C0XDIR")="/home/vista/gpl/fmts/trunk/samples/smart-rdf-in/" ;
    4747 D USEFARY^C0XF2N(FARY)
    4848 S SMART(1)="cole-susan.rdf"
     
    6565 . D IMPORT^C0XF2N(SMART(ZI),C0XDIR,,FARY) ; import to the triplestore
    6666 S FARY="C0XFARY"
    67  S C0XFARY("C0XDIR")="/home/glilly/fmts/trunk/samples/qds/"
     67 S C0XFARY("C0XDIR")="/home/vista/gpl/fmts/trunk/samples/qds/"
    6868 D USEFARY^C0XF2N(FARY)
    6969 D IMPORT^C0XF2N("QDS_0001.rdf",C0XDIR,,FARY)
  • fmts/trunk/p/C0XUTIL.m

    r1360 r1363  
    5858 S C0XVOC("rdfs")="http://www.w3.org/2000/01/rdf-schema#"
    5959 S C0XVOC("vista")="http://osehra.org/ns#"
     60 S C0XVOC("vmu")="http://vista.org/mu/"
     61 S C0XVOC("vq")="http://vista.org/quality/"
    6062 Q
    6163 ;
Note: See TracChangeset for help on using the changeset viewer.