- Timestamp:
- Feb 19, 2012, 11:03:49 PM (13 years ago)
- Location:
- fmts/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XF2N.m
r1360 r1363 38 38 S @ZFARY@("C0XTN")=$NA(^C0X(101)) ; TRIPLES GLOBAL NAME 39 39 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/" 41 41 S @ZFARY@("BLKLOAD")=1 ; this file supports block load 42 42 S @ZFARY@("FMTSSTYLE")="F2N" ; fileman style 43 S @ZFARY@("REPLYFMT")=" JSON"43 S @ZFARY@("REPLYFMT")="" 44 44 D USEFARY(ZFARY) 45 45 Q … … 274 274 S C0XTYPE("owl:ObjectProperty")=1 275 275 S C0XTYPE("owl:Ontology")=1 276 S C0XTYPE("owl:Class")=1 277 S C0XTYPE("rdfs:subClassOf")=1 276 278 S ZI=$O(@ZDOM@(1,"C","")) 277 279 I '$G(C0XTYPE(@ZDOM@(1,"C",ZI))) D Q ; not an rdf file … … 315 317 . . S ZY=$G(@ZDOM@(ZJ,"A","rdf:resource")) ; potential object 316 318 . . I ZY'="" D Q ; 317 . . . S C0XOBJ= ZY; object319 . . . S C0XOBJ=$$EXT^C0XUTIL(ZY) ; object 318 320 . . . D ADD(ZGRF,C0XSUB,C0XPRE,C0XOBJ) ; finally. our first real triple 319 321 . . ; -- this is an else because of the quit above … … 326 328 . . I C0XOBJ="" D Q ; not a happy situation 327 329 . . . W !,"ERROR, NO OBJECT FOUND FOR NODE: ",ZJ 330 . . S C0XOBJ=$$EXT^C0XUTIL(C0XOBJ) ; might be namespaced 328 331 . . D ADD(ZGRF,C0XSUB,C0XPRE,C0XOBJ) ; go for it and add a node 329 332 S C0XTRP=$$NOW^XLFDT ; PARSE COMPLETE -
fmts/trunk/p/C0XINIT.m
r1343 r1363 36 36 ; -- we are assuming that FARY is set up properly in C0XF2N 37 37 ; -- 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/" 39 39 ; -- that means that all the sample files will look like: 40 40 ; --- qds/QDS_0001.rdf … … 44 44 D INITFARY^C0XF2N(FARY) 45 45 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/" ; 47 47 D USEFARY^C0XF2N(FARY) 48 48 S SMART(1)="cole-susan.rdf" … … 65 65 . D IMPORT^C0XF2N(SMART(ZI),C0XDIR,,FARY) ; import to the triplestore 66 66 S FARY="C0XFARY" 67 S C0XFARY("C0XDIR")="/home/ glilly/fmts/trunk/samples/qds/"67 S C0XFARY("C0XDIR")="/home/vista/gpl/fmts/trunk/samples/qds/" 68 68 D USEFARY^C0XF2N(FARY) 69 69 D IMPORT^C0XF2N("QDS_0001.rdf",C0XDIR,,FARY) -
fmts/trunk/p/C0XUTIL.m
r1360 r1363 58 58 S C0XVOC("rdfs")="http://www.w3.org/2000/01/rdf-schema#" 59 59 S C0XVOC("vista")="http://osehra.org/ns#" 60 S C0XVOC("vmu")="http://vista.org/mu/" 61 S C0XVOC("vq")="http://vista.org/quality/" 60 62 Q 61 63 ;
Note:
See TracChangeset
for help on using the changeset viewer.