Can I use the API from a Django project? If not, can I run it as a stand-alone server?

Asked by Udi h Bauman

I want to use the ConceptNet API from within my Django project. Is it possible?

If not, can I run ConceptNet as a stand-alone server, & access it using the Web API?

Thanks,
Udi

Question information

Language:
English Edit question
Status:
Answered
For:
ConceptNet Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ken Arnold (kenneth-arnold) said :
#1

Certainly! ConceptNet was designed as a set of Django apps. You'll just need to add the ConceptNet apps to your INSTALLED_APPS variable in settings.py, and perhaps add a few other settings; csc.django_settings gives an example configuration (with a few magic things to find or download the sqlite database).

You'll have to deal with the fact that until recently, Django didn't support accessing multiple databases in the same project, so you would have had to keep the ConceptNet data in the same database as the rest of your project's data. The Django development version, soon to be released as 1.2, now supports multiple databases, but we don't yet have examples for you on how to use it.

There has been work towards a web API, but it's not yet mature. I'd recommend using it directly in your Django project--that's what it was designed for, and that's what we do.

Can you help with this problem?

Provide an answer of your own, or ask Udi h Bauman for more information if necessary.

To post a message you must log in.