Skip to content

Instantly share code, notes, and snippets.

View glow-mdsol's full-sized avatar

Geoff Low glow-mdsol

View GitHub Profile
import requests
result = requests.get('http://10.192.0.224:8890/sparql?query=PREFIX+xml%3A+%3Chttp%3A%2F%2Fwww.w3.org%2FXML%2F1998%2Fnamespace%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+linkedct%3A+%3Chttp%3A%2F%2Fdata.linkedct.org%2Fvocab%2Fresource%2F%3E%0APREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0A%0A++++++++SELECT+DISTINCT+%3Fstudy_name+%3Fsponsor+%3Ftrial+%3Ftrial_id+%3Fstatus+%3Fphase+%3Forg_id+%3Fsec_id%0A++++++++WHERE+%7B%0AVALUES+%28+%3Fstudy_name+%3Fsponsor+%29%0A%7B+%28+%22C%00A%002%000%000%005%000%001%008%002%00%22+%3Chttp%3A%2F%2Fdata.linkedct.org%2Fresource%2Fsponsor%2F0bdfb8ebc97ca1307b549840e3c83c99%3E+%29+%7D+.%0A%0A++++++++++++%3Ftrial+a+linkedct%3Atrial+%3B%0A+++++++++++++++++++++linkedct%3Atrialid+%3Ftrial_id+%3B%0A+++++++++++++++++++++linkedct%3Aphase+%3Fphase+%3B%0A+++++++++++++++++++++linkedct%3Aoverall_status+%3Fstatus+%3B%0A++++++++++++++
@glow-mdsol
glow-mdsol / gist:6807361
Created October 3, 2013 09:13
Matching script
#!/usr/bin/env python
import sys
import os
import yaml
import csv
import string
import re
import rdflib
import copy
@glow-mdsol
glow-mdsol / gist:6827250
Created October 4, 2013 14:51
Sample SPARQL Query
SELECT DISTINCT ?trial ?location ?facility ?name ?address ?address_country ?address_city
?address_state ?address_zip ?country
WHERE {
VALUES ( ?trial )
{ ( <http://data.linkedct.org/resource/trial/nct01668589> ) } .
?trial linkedct:trial_location ?location .
?location linkedct:location_facility ?facility .
?facility linkedct:facility_address ?address ;
linkedct:facility_facility_name ?name .

Keybase proof

I hereby claim:

  • I am glow-mdsol on github.
  • I am glow_mdsol (https://keybase.io/glow_mdsol) on keybase.
  • I have a public key ASAXYXswLGwx220XJ5dBMXGMyjoUmAGXBLCvnKzWLaiAIwo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am glow-mdsol on github.
* I am glow_mdsol (https://keybase.io/glow_mdsol) on keybase.
* I have a public key ASCyXxE_mO6XUZjGEteMNTRUMCTOnZ-OY-ekeJ9zlkowUAo
To claim this, I am signing this object:
@glow-mdsol
glow-mdsol / vulcan_fsh_session.fsh
Created February 7, 2024 17:00
Introduction to FSH
/*
Mary Doe is a 40 year female, who lives at 123 Main St, Anytown, 12345, US.
Her main contact phone number is 555-555-5555 and she has an email mary@sue.com
(she prefers to be contacted by email)
*/
Instance: MaryDoe
InstanceOf: Patient
* name
* given[+] = "Mary"