<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 Jason,</div>
<div class=""><br class="">
</div>
<div class="">ID is a bit of a special case in the API.  The ID of the entity is always returned, and does not need to be passed as an include parameter.  If you make the call you reference below w/out the "include=id”, the call will return successfully:</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><img apple-inline="yes" id="B2DB37CA-6D64-415A-A612-ABD770AE305B" src="cid:274634DA-EC2B-414C-B52F-3C2573BD894C@stanford.edu" class=""></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">If what you are trying to do is limit what is returned, you could modify the call to be as follows:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/NCIT/classes/http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C34055?display_links=false&display_context=false&include=prefLabel" class="">http://data.bioontology.org/ontologies/NCIT/classes/http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C34055?display_links=false&display_context=false&include=prefLabel</a></div>
<div class=""><br class="">
</div>
<div class="">… which would return only a small subset of information about the class:</div>
<div class=""><br class="">
</div>
<div class=""><img apple-inline="yes" id="46CAE706-F4CA-406F-B052-88AB0024F68C" src="cid:18A7836A-119A-4FBD-A377-499190D31947@stanford.edu" 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 May 23, 2017, at 8:07 AM, jason marr <<a href="mailto:jmarr1990@gmail.com" class="">jmarr1990@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Quick Question, Why is the following giving me an internal server error?<br class="">
<a href="http://data.bioontology.org/ontologies/NCIT/classes/http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C34055?include=id" class="">http://data.bioontology.org/ontologies/NCIT/classes/http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C34055?include=id</a><br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Tue, May 16, 2017 at 1:55 PM, jason marr <span dir="ltr" class="">
<<a href="mailto:jmarr1990@gmail.com" target="_blank" class="">jmarr1990@gmail.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto" class="">It does thank you!</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On May 16, 2017 1:39 PM, "Jennifer Leigh Vendetti" <<a href="mailto:vendetti@stanford.edu" target="_blank" class="">vendetti@stanford.edu</a>> wrote:<br type="attribution" class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">
<div class="">Hi Jason,</div>
<div class=""><br class="">
</div>
<div class="">By default, the REST API only shows a subset of properties for a given object.  If you want to see all properties, you need to override this behavior with the include=all parameter.  This is documented in the “General Usage” section of the API
 documentation:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/documentation#nav_usage" target="_blank" class="">http://data.bioontology.org/do<wbr class="">cumentation#nav_usage</a></div>
<div class=""><br class="">
</div>
<div class="">In your example from below, you would adjust the URL to the following:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/NCIT/classes/http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C34122?include=all" target="_blank" class="">http://data.bioontology.org/on<wbr class="">tologies/NCIT/classes/http%3A%<wbr class="">2F%2Fncicb.nci.nih.gov%2Fxml%<wbr class="">2Fowl%2FEVS%2FThesaurus.owl%<wbr class="">23C34122?include=all</a></div>
<div class=""><br class="">
</div>
<div class="">
<div class="">For every ontology class in BioPortal, we try to populate and display a set of what we refer to as “standard BioPortal properties”, which includes:</div>
<div class=""><br class="">
</div>
<div class="">Class ID<br class="">
Preferred Label<br class="">
Synonyms<br class="">
Definitions<br class="">
Obsolete<br class="">
CUI<br class="">
Semantic Types<br class="">
Parents</div>
</div>
<div class=""><br class="">
</div>
<div class="">You will see these as top-level entries in the JSON results.  Any other properties, which we refer to as “user defined”, will appear in the nested “properties", i.e.:</div>
<div class=""><br class="">
</div>
<div class=""><span id="cid:FF910EF6-A29B-42E0-BDAE-F7255DB2364B@stanford.edu"><Screenshot 2017-05-16 10.24.49.png></span></div>
<div class=""><br class="">
</div>
<div class="">Hope that helps.</div>
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class="">Jennifer</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On May 16, 2017, at 6:56 AM, jason marr <<a href="mailto:jmarr1990@gmail.com" target="_blank" class="">jmarr1990@gmail.com</a>> wrote:</div>
<br class="m_9079233236403652699m_2968649860528192089Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Jennifer,
<div class="">Thanks so much! Was able to switch over to the REST api instead of the sparql endpoint. One question, when I pull a class I was expecting the properties of that class, this does not seem to be the case. I'm currently searching for the children
 of a top level term, and parsing the results. I tried the term search as well, still the same result. Where exactly is the following data stored:<br class="">
<span id="m_9079233236403652699m_2968649860528192089cid:ii_15c11894e6ab3646" class=""><image.png></span><br class="">
when i query the term I get:</div>
<div class=""><a href="http://data.bioontology.org/ontologies/NCIT/classes/http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C34122" target="_blank" class="">http://data.bioontology.org/on<wbr class="">tologies/NCIT/classes/http%3A%<wbr class="">2F%2Fncicb.nci.nih.gov%2Fxml%<wbr class="">2Fowl%2FEVS%2FThesaurus.owl%<wbr class="">23C34122</a><br class="">
<br class="">
I'm not seeing those terms in the picture in the result, maybe in the mapping?</div>
<div class=""><br class="">
</div>
<div class="">Thanks for your help!<br class="">
Jason<br class="">
<br class="">
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Thu, May 11, 2017 at 3:31 PM, Jennifer Leigh Vendetti
<span dir="ltr" class=""><<a href="mailto:vendetti@stanford.edu" target="_blank" class="">vendetti@stanford.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">Hi Jason,
<div class=""><br class="">
</div>
<div class="">I assume you’re referring to the BioPortal SPARQL endpoint?  We published that as a beta service several years ago, but haven’t had the resources to keep the data up-to-date.</div>
<div class=""><br class="">
</div>
<div class="">Alternatively, we actively maintain a REST API for accessing the most recent BioPortal data.  You can find information about the various submissions of NCIT using this call:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/NCIT/submissions" target="_blank" class="">http://data.bioontology.org/on<wbr class="">tologies/NCIT/submissions</a></div>
<div class=""><br class="">
</div>
<div class="">The highest ID is the latest submission.  Or, you can see information about the latest submission using this call:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/NCIT/latest_submission" target="_blank" class="">http://data.bioontology.org/on<wbr class="">tologies/NCIT/latest_submissio<wbr class="">n</a></div>
<div class=""><br class="">
</div>
<div class="">Any other calls you make to retrieve NCIT content are executed against data from the latest submission, e.g.:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/ontologies/NCIT/classes" target="_blank" class="">http://data.bioontology.org/on<wbr class="">tologies/NCIT/classes</a></div>
<div class=""><br class="">
</div>
<div class="">… retrieves class data from the latest submission.</div>
<div class=""><br class="">
</div>
<div class="">The REST API is documented here:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://data.bioontology.org/documentation" target="_blank" class="">http://data.bioontology.org/do<wbr class="">cumentation</a></div>
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class="">Jennifer</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">
<div class="m_9079233236403652699m_2968649860528192089h5">
<div class="">On May 11, 2017, at 6:32 AM, jason marr <<a href="mailto:jmarr1990@gmail.com" target="_blank" class="">jmarr1990@gmail.com</a>> wrote:</div>
<br class="m_9079233236403652699m_2968649860528192089m_1646178317536188273Apple-interchange-newline">
</div>
</div>
<div class="">
<div class="">
<div class="m_9079233236403652699m_2968649860528192089h5">
<div dir="ltr" class="">I see there are multiple versions of the NCIT ontology show by using the following query:<br class="">
"PREFIX omv: <<a href="http://omv.ontoware.org/2005/05/ontology#" target="_blank" class="">http://omv.ontoware.org/2005/<wbr class="">05/ontology#</a>>
<div class=""><br class="">
</div>
<div class="">SELECT ?ont ?name ?acr</div>
<div class="">WHERE {</div>
<div class=""><span class="m_9079233236403652699m_2968649860528192089m_1646178317536188273gmail-Apple-tab-span" style="white-space:pre-wrap"></span>?ont a omv:Ontology .</div>
<div class=""><span class="m_9079233236403652699m_2968649860528192089m_1646178317536188273gmail-Apple-tab-span" style="white-space:pre-wrap"></span>?ont omv:acronym ?acr .</div>
<div class=""><span class="m_9079233236403652699m_2968649860528192089m_1646178317536188273gmail-Apple-tab-span" style="white-space:pre-wrap"></span>?ont omv:name ?name .</div>
<div class="">  FILTER regex(?name,  "NCI")</div>
<div class="">}"<br class="">
<br class="">
I'm assuming the results returned by that are simply the versioned ontologies highest number being the newest. But when to query the NCIT ontology I use:</div>
<div class="">"<br class="">
FROM <<a href="http://bioportal.bioontology.org/ontologies/NCIT" target="_blank" class="">http://bioportal.bioontology.<wbr class="">org/ontologies/NCIT</a>><br class="">
" </div>
<div class="">So my question is does that ^^ route to the latest revision of NCIT? or are the versions returned in first query outdated and NCIT resolves to the latest? I don't see anything in the doc about this. </div>
<div class=""><br class="">
</div>
<div class="">Thanks for the clarification,</div>
<div class="">Jason</div>
</div>
</div>
</div>
______________________________<wbr class="">_________________<br class="">
bioontology-support mailing list<br class="">
<a href="mailto:bioontology-support@lists.stanford.edu" target="_blank" class="">bioontology-support@lists.stan<wbr class="">ford.edu</a><br class="">
<a href="https://mailman.stanford.edu/mailman/listinfo/bioontology-support" target="_blank" class="">https://mailman.stanford.edu/m<wbr class="">ailman/listinfo/bioontology-su<wbr class="">pport</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>