01 August 2011

Using the Freebase and the Bioportal Widgets to create a semantic object.

The following HTML code uses:
After completion, it generates a JSON object describing a semantic object:


You can download the source and test it:

That's it,


1 comment:

Egon Willighagen said...

Nice! This is exactly the kind of use case people should be thinking about.

I doesn't validate the input right now, does it? That is, make sure the selected protein is a protein? At least, I noted that also things other than proteins where shown upon the autocomplete. Also, the predicate should of course allow linking two proteins... I haven't looked at the ontology yet, but perhaps the range and domains are not defined in that ontoloty anyway...