Parent page for the articles detailing the integration of Qwiery with diverse technologies.

Swift integration

Please note that you need to deal with security in order to allow the request to pass through. See https://forums.developer.apple.com/thread/3544 to deal with Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file. import UIKit class ViewController: UIViewController { override func viewDidLoad() { […]

Client JavaScript integration

The Qwiery.js client library is a wrapper of the Qwiery API which eases the development of HTML apps. For example, if you wish to access the semantic network (a Graph database really) you can use things like this: var product = { UnitPrice: 1230, UnitsInStock: 95, Discontinued: false, Type: "Product", Title: "Dental H34", "Id": Qwiery.guid(), […]

NodeJS integration

The Qwiery REST service is based on NodeJS so turning it into a custom NodeJS application shouldn’t be a problem. If however you wish to send async request to Qwiery elsewhere you do like so (based on the Express framework and the request module): app.use('/askQwiery', function(req, res, next) { var request = require('request'); var options […]

C# integration

The integration of Qwiery in C# is really easy and it works in context of e.g. Xamarin as well. The following code requires RestSharp library which eases the consumption of REST services: class MainClass { private static string getAnswer(string question) { if(string.IsNullOrEmpty(question)) return null; var client = new RestClient("http://localhost:4785"); var request = new RestRequest("lexic/question", Method.POST); request.AddHeader("Accept", "application/json"); […]

Python integration

Just by looking at the compact code below you can see that Python is probably the fastest way to play with REST call to Qwiery. Of course, just like the other non-JavaScript client, you need to spin up some controls in Django or Flask to effectively weave the returned answer into a full application. import requests […]