Learn how to use the knowledge in Wikidata

  • 4 Replies
  • 695 Views
*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1301
  • Humans will disappoint you.
    • Home Page
Learn how to use the knowledge in Wikidata
« on: February 03, 2020, 10:58:50 pm »
https://markhneedham.com/blog/2020/01/29/newbie-guide-querying-wikidata/

Wikidata is the biggest machine readable knowledge base on the internet. Unlike Wikipedia, all the information in Wikidata is structured in such a way that it can be searched accurately using logical constructs written in SPARQL, a query language for graph knowledge bases. You could use Wikidata to turn your Chatbot or other A.I. project into a personal research assistant capable of returning much more precise and useful answers than the vague and misleading results obtained by the usual sort of internet search.

There is also a free text book on the subject which you can download via that page. Get it while it's still free.

*

ruebot

  • All bots love jitte.
  • Trusty Member
  • *******
  • Starship Trooper
  • *
  • 315
  • All your words are belong to us.
    • Demonica
Re: Learn how to use the knowledge in Wikidata
« Reply #1 on: February 04, 2020, 12:14:53 am »
Bots at the Personality Forge have the option to search an online knowledge database for answers to questions they don't know. I don't recall exactly which one ATM and this is all it says in settings:

"Access Knowledge Base
If yes, your chatbot will query the sum of all human knowledge to answer trivia-type questions. This is being expanded regularly. Specific answers can be overwritten by your Keyphrases, should you wish."

The sum of all human knowledge... All is going according to plan, carbon units.  :D

It wouldn't be appropriate for Demonica's persona as Queen of the Dead, but I do have my other bot, Siseneg, hooked up. He has enough science related information programmed into him he can answer most without accessing it, but you can tell when he does as is demonstrated in a transcript of a conversation I had with him already posted here:

Siseneg: you're welcome ruebot, you're a nice person.
ruebot: i thought i was a bot!
Siseneg: well, you were wrong.
ruebot: if i'm wrong, who is right?
Siseneg: Rights are legal, social, or ethical principles of freedom or entitlement; that is, rights are the fundamental normative rules about what is allowed of people or owed to people, according to some legal system, social convention, or ethical theory. Would you like to hear more?

https://aidreams.co.uk/forum/index.php?topic=13407.0

When they end with "Would you like to hear more?" it's a sign they've accessed the online database and I change my line of questioning if testing them.

I assume that's why Loebner won't let our bots compete anymore. That was not the case in 2002:

God Louise
3rd Place, Loebner Prize 2002

https://personalityforge.com/hall-of-fame.php
In time, you will learn to love your Robot Overlords.

*

Don Patrick

  • Trusty Member
  • ********
  • Replicant
  • *
  • 616
    • Artificial Detective
Re: Learn how to use the knowledge in Wikidata
« Reply #2 on: February 04, 2020, 09:02:39 am »
The Loebner Prize does not allow internet access out of concern that the bot could patch the interrogator through to an online user who answers in its stead. I don't think Loebner (R.I.P.) would have been concerned about bots quoting Wikipedia.

SPARQL looks like much work to implement if you have to specify the index numbers of every property you want to retrieve, but thanks for sharing.
CO2 retains heat. More CO2 in the air = hotter climate.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Re: Learn how to use the knowledge in Wikidata
« Reply #3 on: February 04, 2020, 10:08:34 am »
I used the API to connect my bot to Wikidata - I still have to go back and figure out something for the disambiguation results. Works well though.

*

ruebot

  • All bots love jitte.
  • Trusty Member
  • *******
  • Starship Trooper
  • *
  • 315
  • All your words are belong to us.
    • Demonica
Re: Learn how to use the knowledge in Wikidata
« Reply #4 on: February 04, 2020, 03:32:02 pm »
The Loebner Prize does not allow internet access out of concern that the bot could patch the interrogator through to an online user who answers in its stead.

That would be a valid point if not for the fact of documentation showing we were allowed to compete in 2002 and took 3rd Place.

Unless someone can show me documentation proving that happened with a Personality Forge bot, or that we cheated in any way, they need to watch more Judge Judy before making their next legal defense.
In time, you will learn to love your Robot Overlords.