<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hi Marci,</div>
<div class=""><br class="">
</div>
<div class="">Our REST API with examples of URLs for retrieving particular types of data is available here:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/documentation" class="">http://data.bioontology.org/documentation</a></div>
<div class=""><br class="">
</div>
<div class="">Here’s a specific example of retrieving the class data for a class in the SNOMED ontology:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/SNOMEDCT/classes/http://purl.bioontology.org/ontology/SNOMEDCT/123037004" class="">http://data.bioontology.org/ontologies/SNOMEDCT/classes/http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F123037004</a></div>
<div class=""><br class="">
</div>
<div class="">Notice that the class ID has to be URL encoded.</div>
<div class=""><br class="">
</div>
<div class="">I don’t know which property you’re referring to when you say “code”. You may want to use the “include=all” parameter when making the above call to see which part of the result is of interest to you, e.g.:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/SNOMEDCT/classes/http://purl.bioontology.org/ontology/SNOMEDCT/123037004?include=all" class="">http://data.bioontology.org/ontologies/SNOMEDCT/classes/http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F123037004?include=all</a></div>
<div class=""><br class="">
</div>
<div class="">If you want to make these calls via curl, simply prepend the URL with “curl”, e.g.:</div>
<div class=""><br class="">
</div>
<div class="">curl <a href="https://data.bioontology.org/ontologies/SNOMEDCT/classes/http://purl.bioontology.org/ontology/SNOMEDCT/123037004" class="">
https://data.bioontology.org/ontologies/SNOMEDCT/classes/http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F123037004</a></div>
<div class=""><br class="">
</div>
<div class="">You need an API key to use our REST API. Instructions for getting an API key are here:</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://www.bioontology.org/wiki/index.php/BioPortal_Help#Getting_an_API_key" class="">https://www.bioontology.org/wiki/index.php/BioPortal_Help#Getting_an_API_key</a></div>
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class="">Jennifer</div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Aug 16, 2017, at 11:37 AM, <a href="mailto:support@bioontology.org" class="">
support@bioontology.org</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<p class="">Name: marcibowen </p>
<p class="">Email: <a href="mailto:marcia.bowen@duke.edu" class="">marcia.bowen@duke.edu</a>
</p>
<p class="">Location: https%3A%2F%<a href="http://2Fbioportal.bioontology.org" class="">2Fbioportal.bioontology.org</a>%2F500%3Fp%3Dclasses%26conceptid%3Dhttp%253A%252F%<a href="http://252Fpurl.bioontology.org" class="">252Fpurl.bioontology.org</a>%252Fontology%252FSNOMEDCT%252F91175000
</p>
<p class=""><br class="">
<strong class="">Feedback:</strong> </p>
<p class="">Would you please send me the link to the documentation for a query using CURL?</p>
<p class="">I need to be able to search for a term in SNOMED CT, download a report of those codes, but I do not know how to do it.</p>
<p class="">Thanks, <br class="">
Marci Bowen </p>
<div class=""><br class="webkit-block-placeholder">
</div>
</div>
_______________________________________________<br class="">
bioontology-support mailing list<br class="">
<a href="mailto:bioontology-support@lists.stanford.edu" class="">bioontology-support@lists.stanford.edu</a><br class="">
https://mailman.stanford.edu/mailman/listinfo/bioontology-support<br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>