<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="">
Hello Mazen,
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Sep 5, 2017, at 9:49 AM, Mazen Alobaidi <<a href="mailto:malobaid@oakland.edu" class="">malobaid@oakland.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">Hi, <br class="">
</div>
I'm using rest call as below, but I want to restricted it with only using MESH.  How I can do this? 
<br class="">
<br class="">
<a href="http://data.bioontology.org/annotator?text=Melanoma+is+a+malignant+tumor+of+melanocytes+which+are+found+predominantly+in+skin+but+also+in+the+bowel+and+the+eye" class="">http://data.bioontology.org/annotator?text=Melanoma+is+a+malignant+tumor+of+melanocytes+which+are+found+predominantly+in+skin+but+also+in+the+bowel+and+the+eye</a>.<br class="">
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div><br class="">
</div>
<div>To restrict search to a particular ontology, you use the “ontologies” parameter, as documented here:</div>
<div><br class="">
</div>
<div><a href="http://data.bioontology.org/documentation#nav_search" class="">http://data.bioontology.org/documentation#nav_search</a></div>
<div><br class="">
</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class=""><br class="">
</div>
if used the filter ontology  I get the below error in rest call using Java<br class="">
<br class="">
java.io.FileNotFoundException: <a href="http://data.bioontology.org/annotator?ontologies=MESH&longest_only=false&exclude_numbers=false&whole_word_only=false&exclude_synonyms=false&text=Melanoma+is+a+malignant+tumor+of+melanocytes+which%2Bare+found+predominantly+in+skin+but+also+in+the+bowel+and+the%2Beye" class="">
http://data.bioontology.org/annotator?ontologies=MESH&longest_only=false&exclude_numbers=false&whole_word_only=false&exclude_synonyms=false&text=Melanoma+is+a+malignant+tumor+of+melanocytes+which%2Bare+found+predominantly+in+skin+but+also+in+the+bowel+and+the%2Beye</a><br class="">
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)<br class="">
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div><br class="">
</div>
<div>Without seeing your Java code, it’s difficult to say what’s going wrong. You used the “ontologies” parameter correctly (i.e. ontologies=MESH). Also, entering the above URL in a browser correctly returns results from the annotator endpoint. So, the URL
 doesn’t appear to be malformed in any way.</div>
<div><br class="">
</div>
<div>A Java error like this was reported on our mailing list previously. You may want to read the post in the archive and see if the suggested solution works for you:</div>
<div><br class="">
</div>
<div><a href="http://ncbo-support.2288202.n4.nabble.com/bioontology-support-java-io-FileNotFoundException-http-data-bioontology-org-ontologies-NCIT-classes-9-td4652641.html" class="">http://ncbo-support.2288202.n4.nabble.com/bioontology-support-java-io-FileNotFoundException-http-data-bioontology-org-ontologies-NCIT-classes-9-td4652641.html</a></div>
<div><br class="">
</div>
<div>Kind regards,</div>
<div>Jennifer</div>
<div><br class="">
</div>
</div>
</div>
</body>
</html>