Building the Wolfram Info System

Now that we have our generic InfoSys module in place, we can work on specific backends. We’ll start with only one, our Wolfram backend. This module will call WolframAlpha to retrieve relevant information about our users’ annotations.

We need an XML parser to handle WolframAlpha’s XML responses. Let’s add :sweet_xml to our deps list in mix.exs to take care of this:

 {​:sweet_xml​, ​"​​~> 0.5.0"​},

Next, run $ mix deps.get to grab the dependency from Hex. With our XML library in place, we’re ready to sign up as a WolframAlpha API developer and retrieve our application ID. Visit the WolframAlpha developer portal,[23] sign up for a new account, and follow the instructions to get ...

Get Programming Phoenix now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.