Readit News logoReadit News
sirofjelly commented on How do I build a chatbot?    · Posted by u/sirofjelly
PaulHoule · 3 years ago
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.

sirofjelly · 3 years ago
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

u/sirofjelly

KarmaCake day1October 6, 2022View Original