Skip to main content
. Author manuscript; available in PMC: 2018 Apr 27.
Published in final edited form as: Proceedings (IEEE Int Conf Bioinformatics Biomed). 2017 Dec 18;2017:1300–1303. doi: 10.1109/BIBM.2017.8217849

TABLE 7.

A query for retrieving patients’ year of diagnosis.

SPARQL query:
PREFIX :<http://www.semanticweb.org/ontologies/OCRV#>
SELECT ?p ?year WHERE {
    ?p a ocrv:dianoses.
    ?p ocrv:date_of_diagnosis ?d BIND(str(year(?d)) AS ?year)}
Result:
?p (ocrv:patient)
?year(ocrv:date_of_diagnosis)
<fcds/person/869324>
1994