News for hackers. Stuff that matters.
Re:How do I build a chatbot? by PaulHoule on Thursday October 06, 2022 @11:41AM (#33109685)
Do you already have a movie database in RDF (with statements like so-and-so directed such-and-such movie) or do you have to make one?

I have done RDF similarity queries with queries similar to

   select ?s2 (count(?s1) as ?cnt) {
       ?s1 ?p ?o .
       ?s2 ?p ?o .
   } group by ?p ?o
where ?s1 is bound to the input movie. That will count the number of shared attributes such as director, actor, year, tagged genre, etc. you can do better if you weight it so po’s that are less common contribute more to the score. Against dbpedia that heuristic does very well for most subjects.
Re:How do I build a chatbot? by sirofjelly on Thursday October 06, 2022 @12:28PM (#33110359)
At the moment I do have a knowledge graph in a .tsv and .nt format.

With lines such as: <http://www.wikidata.org/entity/Q25136425> <http://www.w3.org/2000/01/rdf-schema#label> Ghost Town