some OSEHRA progress on RDF

18 views
Skip to first unread message

Tom Munnecke

unread,
Feb 14, 2012, 12:43:52 PM2/14/12
to fileman-triple-store
I thought this would interest you all... Catalin is from a Romanian company that is working with the Ray Group on the OSEHRA contract.

On Tue, Feb 14, 2012 at 1:02 AM, catalinb <catalin...@infoworld.ro> wrote:

We have an OWL/RDF file containing Packages, Routines and Globals in here: https://github.com/OSEHR/M-RoutineAnalyzer/blob/master/out/VistAOWL.zip

It has been loaded and validated with Protege 4.1, and I managed to get a HTML representation of it with the OWLDoc export plugin. To keep it small enough, the only verbs used are: contains, calls and reads_global. Anyway I think it provides a good starting point, we can improve later on when we will become more familiar with RDF and SparQL.

Any comments will be greatly appreciated,

Catalin


glilly

unread,
Feb 14, 2012, 7:26:07 PM2/14/12
to Fileman Triple Store
Very Cool Tom!

I had to tweek the inport code a little, but I managed to load it into
our Fileman Triple Store: ( it has 273193 TRIPLES according to this)..

GTM>D FILEIN^C0XF2N

File Directory: /home/glilly/snomed/ Replace snomed/ With vistaowl/
Replace
/home/glilly/vistaowl/
File Name: qds.rdf// VistAOWL.owl
STARTED: 3120215.000709
READING IN: VistAOWL.owl
326945 LINES READ
ADDED: _:G288093545 _:S516038397 fmts:rdfSource
_TXT_INCOMING_RDF_FILE_/home/gli
lly/vistaowl/VistAOWL.owl_248014531
300068 XML NODES PARSED
PARSE COMPLETE AT 3120215.001051
ELAPSED TIME: 160 SECONDS
APPROXIMATELY 1875 NODES PER SECOND
INSERTING GRAPH: /home/glilly/vistaowl/VistAOWL.owl
VOCABS:C0XVOC=""
C0XVOC("mv")="http://metavista.name/foundation#"
C0XVOC("owl")="http://www.w3.org/2002/07/owl#"
C0XVOC("rdf")="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
C0XVOC("rdfs")="http://www.w3.org/2000/01/rdf-schema#"
C0XVOC("vista")="http://osehra.org/ns#"
INSERTING 273193 TRIPLES
USING BULKLOAD
LOCKING ZERO NODE
ZERO NODE UNLOCKED, IENS RESERVED=3195
3120215.002015
INSERTION COMPLETE AT 3120215.001051
ENDED AT: 3120215.002017
ELAPSED TIME: 788 SECONDS
APPROXIMATELY 346 TRIPLES PER SECOND

here's what it looks like in a simple Fileman Print:

C0X TRIPLE LIST FEB 15,2012 00:23
PAGE 1
SUBJECT PREDICATE OBJECT
--------------------------------------------------------------------------------

GRAPH: /home/glilly/vistaowl/VistAOWL.owl

mv:contains rdfs:comment Defines a routine
contained in a
Package

mv:contains rdfs:domain mv:Package

mv:contains rdfs:range mv:Routine

mv:contains rdfs:label contains

mv:calls rdfs:comment Defines a routine
called by another
routine

mv:calls rdfs:domain mv:Routine

mv:calls rdfs:range mv:Routine

mv:calls rdfs:label calls

mv:reads_global rdfs:comment A reference to
code
that directly
reads a
MUMPS Global

mv:reads_global rdfs:domain mv:Routine

mv:reads_global rdfs:range mv:Global

mv:reads_global rdfs:label reads_global

vista:A7R mv:contains vista:A7RUCH01

vista:A7R mv:contains vista:A7RXDRPT

vista:A7R rdfs:label NDBI

vista:A7R rdf:type mv:Package

vista:ABSV mv:contains vista:ABSV04

vista:ABSV mv:contains vista:ABSV88

vista:ABSV mv:contains vista:ABSV88A

vista:ABSV mv:contains vista:ABSV88B

vista:ABSV mv:contains vista:ABSVALPH

vista:ABSV mv:contains vista:ABSVBGMF

vista:ABSV mv:contains vista:ABSVCK

vista:ABSV mv:contains vista:ABSVCVT

On Feb 14, 12:43 pm, Tom Munnecke <munne...@gmail.com> wrote:
> I thought this would interest you all... Catalin is from a Romanian company
> that is working with the Ray Group on the OSEHRA contract.
>
> On Tue, Feb 14, 2012 at 1:02 AM, catalinb <catalin.bra...@infoworld.ro>wrote:
>
>
>
>
>
>
>
> > We have an OWL/RDF file containing Packages, Routines and Globals in here:
> >https://github.com/OSEHR/M-RoutineAnalyzer/blob/master/out/VistAOWL.zip
>
> > It has been loaded and validated with Protege 4.1, and I managed to get a
> > HTML representation of it with the OWLDoc export plugin. To keep it small
> > enough, the only verbs used are: contains, calls and reads_global. Anyway I
> > think it provides a good starting point, we can improve later on when we
> > will become more familiar with RDF and SparQL.
>
> > Any comments will be greatly appreciated,
>
> > Catalin
> > --
> > Full post:
> >http://www.osehra.org/document/proposal-use-rdfsparql-define-foundation-...<http://www.osehra.org/document/proposal-use-rdfsparql-define-foundati...>

George Lilly

unread,
Feb 14, 2012, 7:32:54 PM2/14/12
to Fileman Triple Store
and we can do simple "triples" queries and get back JSON:

GTM>D triples^C0XGET1(.x,"vista:ABSV","mv:contains")

s:67140 p:67121 o:
d do1(.triprtn,zt,zi,nsub,npred)

GTM>ZWR x
x(0)="{""results"":[""vista:ABSV"":{""mv:contains"":""vista:ABSV04"",""mv:conta
i
          ns"":""vista:ABSV88"",""mv:contains"":""vista:ABSV88A"",""mv:contains
"
          ":""vista:ABSV88B"",""mv:contains"":""vista:ABSVALPH"",""mv:contains"
"
          :""vista:ABSVB"
x(1)="GMF"",""mv:contains"":""vista:ABSVCK"",""mv:contains"":""vista:ABSVCVT"",
"
          "mv:contains"":""vista:ABSVDADD"",""mv:contains"":""vista:ABSVDDE"","
"
          mv:contains"":""vista:ABSVDDLE"",""mv:contains"":""vista:ABSVDDLF"","
"
          mv:contains"":"
x(2)="""vista:ABSVDEDI"",""mv:contains"":""vista:ABSVDENT"",""mv:contains"":""v
i
          sta:ABSVDGPF"",""mv:contains"":""vista:ABSVDLE1"",""mv:contains"":""v
i
          sta:ABSVDLE2"",""mv:contains"":""vista:ABSVDLE3"",""mv:contains"":""v
i
          sta:ABSVDLET"
x(3)=""",""mv:contains"":""vista:ABSVDORG"",""mv:contains"":""vista:ABSVDPNT"",
"
          "mv:contains"":""vista:ABSVDPRT"",""mv:contains"":""vista:ABSVDSIN"",
"
          "mv:contains"":""vista:ABSVE"",""mv:contains"":""vista:ABSVE0"",""mv:
c
          ontains"":""vis"
x(4)="ta:ABSVE1"",""mv:contains"":""vista:ABSVE2"",""mv:contains"":""vista:ABSV
E
          3"",""mv:contains"":""vista:ABSVE4"",""mv:contains"":""vista:ABSVFIX"
"
          ,""mv:contains"":""vista:ABSVGGG1"",""mv:contains"":""vista:ABSVGGG2"
"
          ,""mv:contain"
x(5)="s"":""vista:ABSVGGG3"",""mv:contains"":""vista:ABSVIPST"",""mv:contains""
:
          ""vista:ABSVL"",""mv:contains"":""vista:ABSVL1"",""mv:contains"":""vi
s
          ta:ABSVL2"",""mv:contains"":""vista:ABSVLBL"",""mv:contains"":""vista
:
x(6)=":contains"":""vista:ABSVLBL2"",""mv:contains"":""vista:ABSVLBL3"",""mv:co
n
          tains"":""vista:ABSVLS"",""mv:contains"":""vista:ABSVLS1"",""mv:conta
i
          ns"":""vista:ABSVM"",""mv:contains"":""vista:ABSVM1"",""mv:contains""
:
          ""vista:ABSVM"
x(7)="HV1"",""mv:contains"":""vista:ABSVMLC1"",""mv:contains"":""vista:ABSVMLC2
"
          ",""mv:contains"":""vista:ABSVMLC3"",""mv:contains"":""vista:ABSVMRV1
"
          ",""mv:contains"":""vista:ABSVMS1"",""mv:contains"":""vista:ABSVMT"",
"
          "mv:contains"""
x(8)=":""vista:ABSVMUT1"",""mv:contains"":""vista:ABSVMVV1"",""mv:contains"":""
v
          ista:ABSVMVV2"",""mv:contains"":""vista:ABSVMVV3"",""mv:contains"":""
v
          ista:ABSVNIT1"",""mv:contains"":""vista:ABSVNIT2"",""mv:contains"":""
v
          ista:ABSVNOM"
x(9)=""",""mv:contains"":""vista:ABSVOT"",""mv:contains"":""vista:ABSVOTE"",""m
v
          :contains"":""vista:ABSVOTSD"",""mv:contains"":""vista:ABSVPPP1"",""m
v
          :contains"":""vista:ABSVPPP2"",""mv:contains"":""vista:ABSVPPP3"",""m
v
          :contains"":""v"
x(10)="ista:ABSVPPP4"",""mv:contains"":""vista:ABSVPPP5"",""mv:contains"":""vis
t
          a:ABSVPST"",""mv:contains"":""vista:ABSVQ"",""mv:contains"":""vista:A
B
          SVSCAN"",""mv:contains"":""vista:ABSVSER3"",""mv:contains"":""vista:A
B
          SVSERV"",""mv:"
x(11)="contains"":""vista:ABSVSITE"",""mv:contains"":""vista:ABSVT"",""mv:conta
i
          ns"":""vista:ABSVTC"",""mv:contains"":""vista:ABSVTC1"",""mv:contains
"
          ":""vista:ABSVTED"",""mv:contains"":""vista:ABSVTED1"",""mv:contains"
"
          :""vista:ABSVT"
x(12)="ED2"",""mv:contains"":""vista:ABSVTED3"",""mv:contains"":""vista:ABSVTED
4
          "",""mv:contains"":""vista:ABSVTED5"",""mv:contains"":""vista:ABSVTIM
E
          "",""mv:contains"":""vista:ABSVTP"",""mv:contains"":""vista:ABSVTP1""
,
          ""mv:contains"""
x(13)=":""vista:ABSVTP2"",""mv:contains"":""vista:ABSVTPR"",""mv:contains"":""v
i
          sta:ABSVTPR1"",""mv:contains"":""vista:ABSVTPR2"",""mv:contains"":""v
i
          sta:ABSVU"",""mv:contains"":""vista:ABSVU1"",""mv:contains"":""vista:
A
          BSVU2"",""mv:co"
x(14)="ntains"":""vista:ABSVU3"",""mv:contains"":""vista:ABSVVIEW"",""mv:contai
n
          s"":""vista:ABSVYN""}]}"

GTM>

George Lilly

unread,
Feb 14, 2012, 7:55:25 PM2/14/12
to Fileman Triple Store
or a more interesting triples query for a routine:

GTM>D triples^C0XGET1(.x,"vista:PSOPOST")

s:85498 p: o:
d do2(.triprtn,zt,zi,nsub)
GTM>ZWR x
x(0)="{""results"":[""vista:PSOPOST"":{""mv:calls"":""vista:*DT"",""mv:calls"":
"
          "vista:*DTC"",""mv:calls"":""vista:*ZTLOAD"",""mv:calls"":""vista:DIC
N
          "",""mv:calls"":""vista:ORQOR2"",""mv:calls"":""vista:PSOHLSN1"",""mv
:
          calls"":""vista:PS"
x(1)="OSIGNO"",""mv:calls"":""vista:PSOUTL"",""mv:calls"":""vista:XLFDT"",""mv:
c
          alls"":""vista:XMD"",""mv:calls"":""vista:XPDMENU"",""mv:calls"":""vi
s
          ta:XPDUTL"",""mv:reads_global"":""vista:.DD"",""mv:reads_global"":""v
i
          sta:.DPT"",""mv:r"
x(2)="eads_global"":""vista:.OR"",""mv:reads_global"":""vista:.ORD"",""mv:reads
:
          calls"":""vista:PS"
x(1)="OSIGNO"",""mv:calls"":""vista:PSOUTL"",""mv:calls"":""vista:XLFDT"",""mv:
c
          alls"":""vista:XMD"",""mv:calls"":""vista:XPDMENU"",""mv:calls"":""vi
s
          ta:XPDUTL"",""mv:reads_global"":""vista:.DD"",""mv:reads_global"":""v
i
          sta:.DPT"",""mv:r"
x(2)="eads_global"":""vista:.OR"",""mv:reads_global"":""vista:.ORD"",""mv:reads
_
          global"":""vista:.PS"",""mv:reads_global"":""vista:.PSDRUG"",""mv:rea
d
          s_global"":""vista:.PSRX"",""mv:reads_global"":""vista:.VA"",""mv:rea
d
          s_global"":"""
x(3)="vista:.XTMP"",""rdf:type"":""mv:Routine"",""rdfs:label"":""PSOPOST""}]}"

Tom Munnecke

unread,
Feb 14, 2012, 9:03:17 PM2/14/12
to fileman-tr...@googlegroups.com
hey George,

do you want to post this to the OSEHRA site, or shall I?

George Lilly

unread,
Feb 14, 2012, 9:07:17 PM2/14/12
to fileman-tr...@googlegroups.com
go ahead Tom... you're great at providing context.

gpl
Reply all
Reply to author
Forward
0 new messages