W3C Semantic Web Projects.
spot a dog. dog subClassOf mammal. mammal subClassOf animal.
X an animal. X hasChild Y. Y a kitten.
X rdfs:subClassOf set1. set1 a owl:restriction. set1 owl:onProperty may_treat. set1 owl:someValuesFrom :C0028754 => X a weightLossDrug.
Many DBs contributing
to a network of data.
Warning: vapid example:
Configured query services
federating and distributing
to many DB Interfaces.
PREFIX :mydb <http://cityhospital.example/dbs> CONSTRUCT { ?o a :PatientObservation . ?o :patient ?p . ?o :doctor ?d } ?d :foaf:name ?dName }
WHERE { ?o mydb:patient ?p . ?o mydb:doctor ?d . ?d mydb:name ?dName }
PREFIX sdtm: <http://www.sdtm.org/vocabulary#> PREFIX spl: <http://www.hl7.org/v3ballot/xml/infrastructure/vocabulary/vocabulary#> SELECT ?patient ?dob ?sex ?takes ?indicDate # ?indicEnd ?contra WHERE { ?patient a sdtm:Patient ; sdtm:middleName ?middleName ; sdtm:dateTimeOfBirth ?dob ; sdtm:sex ?sex . ?ip sdtm:subject ?patient ; sdtm:standardizedMedicationName ?takes ; # nothing by ingredient in sdtm/caBIG/... # sdtm:startDateTimeOfMedication ?indicDate ; # ; sdtm:endDateTimeOfMedication ?indicEnd spl:activeIngredient ?ic . ?ic spl:classCode 6809 . OPTIONAL { ?cp sdtm:subject ?patient ; sdtm:standardizedMedicationName ?contra ; # sdtm:startDateTimeOfMedication ?contraDate ; # ; sdtm:endDateTimeOfMedication ?contraEnd spl:activeIngredient ?cc . ?cc spl:classCode 11289 . } FILTER (!BOUND(?cp)) } LIMIT 30
cat sdtm.rq | \ SWtransformer -q - hl7-sdtm.rq | \ SWtransformer -q - db-hl7.rq -s http://hospital.example/DB/ | \ mysql -u root DiabeticPatientsDataSet --table
Performance winfalls are hard to achieve:
thanks to Lilly and Lincoln Labs for funding this work.