Created
October 4, 2013 14:51
-
-
Save glow-mdsol/6827250 to your computer and use it in GitHub Desktop.
Sample SPARQL Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . | |
?address linkedct:address_country ?address_country ; | |
linkedct:address_city ?address_city . | |
?address_country rdfs:label ?country . | |
?address_city rdfs:label ?city . | |
OPTIONAL { | |
?address linkedct:address_state ?address_state ; | |
linkedct:address_zip ?address_zip . | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment