The WikiData script use WikiData's API to import objects from WikiData. It uses as custom class in the Bot Libre AI Engine (WikiData). So it only works with WikiData.
For your own wiki or website you can use Self's Http, HTML, and JSON support to access data.