Using the Freebase and the Bioportal Widgets to create a semantic object.
The following HTML code uses:
- a Widget from the NCBO Bioportal for the Protein-protein interaction Ontology
- And two Widgets from Freebase, linking to the proteins, the genes and the diseases.
After completion, it generates a JSON object describing a semantic object:
{
"subject":"http://www.freebase.com/view/en/nsp3",
"predicate":"http://purl.org/obo/owl/MI#MI_0407",
"value":"http://www.freebase.com/view/en/roxan",
"pmid":15047801
}
Source
You can download the source and test it:
That's it,
Pierre
1 comment:
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...
Post a Comment