HHS/lodestar — pull request #7 by Klortho (2014-10-19 03:43:17+00:00)
Title: Meshrdf klortho

@flamingofugang , I made some changes to lode.js so that the strategy I described originally for the URI scheme in https://github.com/HHS/mesh-rdf/issues/57 should work. I tested it in my branch, but since I'm not at work, I could only test it through ssh tunnels, so I'm not 100% sure it will work correctly.

Now, this URL should issue all the correct AJAX requests: http://iddev.nlm.nih.gov/klortho/D12345.html:

* http://iddev.nlm.nih.gov/klortho/servlet/explore/resourceDepictions?uri=http://id.nlm.nih.gov/mesh/D12345
* http://iddev.nlm.nih.gov/klortho/servlet/explore/resourceShortDescription?uri=http://id.nlm.nih.gov/mesh/D12345
* http://iddev.nlm.nih.gov/klortho/servlet/explore/resourceTypes?uri=http://id.nlm.nih.gov/mesh/D12345
* --> http://iddev.nlm.nih.gov/klortho/servlet/explore/relatedToObjects?uri=http://id.nlm.nih.gov/mesh/D12345
* http://iddev.nlm.nih.gov/klortho/servlet/explore/relatedFromSubjects?uri=http://id.nlm.nih.gov/mesh/D12345
* --> http://iddev.nlm.nih.gov/klortho/servlet/explore/resourceTopObjects?uri=http://id.nlm.nih.gov/mesh/D12345

But, not all of these AJAX requests are working: the two with the arrows are giving me an error "Error: Illegal character in path at index 35: http://purl.org/dc/terms/identifier". This is from the servlet, not the JS -- so I think there is something that the servlet expects to see in the RDF data that is not there yet.