andredekker / BigMachine

2 stars 0 forks source link

UHN wide accesible SPARQL endpoint #6

Open andredekker opened 8 years ago

andredekker commented 8 years ago

As a researcher, I need to have access to the tokens of cardiac and cancer patients, so I can query if a patient is both a cardiac and a cancer patients.

PREFIX ncit:<http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#>
SELECT * WHERE 
{?s a ncit:C16960.} 
LIMIT 10
PREFIX roo:<http://www.cancerdata.org/roo/>
PREFIX ncit:<http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#>
SELECT (COUNT(?patient) as ?overlappingPatients)  WHERE 
{ 
    SERVICE <http://localhost:9999/bigdata/namespace/CardiacPatients/sparql> 
            {
              ?patient a ncit:C16960.
            }
    SERVICE <http://localhost:9999/bigdata/namespace/CancerPatients/sparql> 
            {
              ?patient a ncit:C16960.
            }
.}
andredekker commented 8 years ago

Machine is there, likely Sept 12 access to it.