COI End-to-end Test

In order to test the rules we're building for COI, I downloaded a couple tarballs and unpacked them in my current directory:

Once I had un-tar'd them, I needed to tell perl to look libraries in the current directory:

PERL5LIB=.

I have a file called sample.ttl which is culled from all the ttl files in this directory. Then I a test to make sure our rules (DPDS2CPO.n3 and CPO2CTO.n3) produced data that our queries would match:

cwm-1.2.1/cwm sample.ttl DPDS2CPO.n3 --think --filter="DPDS2CPO.n3" > grumble.n3 && cwm-1.2.1/cwm grumble.n3 CPO2CTO.n3 --think --filter="CPO2CTO.n3" | W3C/Rdf/bin/algae -i turtle -d - "PREFIX sdtm: <http://www.w3.org/2008/04/DiabeticPatientsDataSet/ClinicalPracticeOntology-Version3.owl#sdtm_> SELECT ?p WHERE { ?s sdtm:subject ?p } "

This produced one solution:

<http://www.w3.org/2008/04/DiabeticPatientsDataSet/ClinicalPracticeOntology-Version3.owl#patient_1505583>

which matches the one patient profiled in sample.ttl .

Eric Prud'hommeaux <eric@w3.org>
Copyright © 2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved. http://www.w3.org/