google-knowledge-graph

how to reverse engineer Google's entity ids

爱⌒轻易说出口 提交于 2020-03-05 06:29:49
问题 Google is using entities everywhere nowadays and they are usually prefixed with /m/ and /g/ (but I have also seen some /t/ lately) I am wondering how the numbering works. For /m/ there is a schema similar to what an url shortener would do. Define an alphabet (in case of /m/ this is 32 characters "0123456789bcdfghjklmnpqrstvwxyz_" and convert a number to a "short url" e.g. /m/0 4swd <-> 156524 ("/m/0" seems to be a kind of a prefix) I am stuck with /g/ IDs though. I created a reasonable

How to use Alignment API to generate a Alignment Format file?

≯℡__Kan透↙ 提交于 2020-01-17 07:25:20
问题 I am going to attend the Instance Matching of OAEI, now I need to make my results to Alignment Format. In order to achieve it, I have learned official tutorials.(link:http://alignapi.gforge.inria.fr/tutorial/tutorial1/index.html). But there are many differences between the method taught and the method I want. In other words, I can't understand the API. This is my situation: I have 2 rdf file(person11.rdf and person12.rdf respectively.data link is http://oaei.ontologymatching.org/2010/im/index

Extract Graph from DBpedia, by number of HOPS, Direction

我的梦境 提交于 2019-12-24 18:58:15
问题 In the above graph [which is in dbpedia], I want to extract information about TIM COOK, with hops, IF I put hop as 1, I would need all the first level information about TIM COOK, like Masters, APPLE, Car If hops are 2, I need Masters, APPLE, Car, United States Is there any way I could extract such graph ? I would like to pass direction (Incoming, Outgoing) also to extract graph. Could you please help me with SPARQL query? 来源: https://stackoverflow.com/questions/54774104/extract-graph-from

Natural Language Processing Using Elasticsearch and Google Cloud Api

允我心安 提交于 2019-12-24 07:09:33
问题 I want to use NLP with elasticsearch. I have been able to achieve one level by using Open NLP plugin as mentioned in comments of this question. I am getting entities like person , organization , location etc indexed while inserting documents. I have a doubt while searching the same information.Since, I need to process the terms entered by the user during query time. Following is what I have thought of: Process the query entered by user using apache NLP as specified here. Extract Person,

kbsearch outage - returning INVALID_ARGUMENT

£可爱£侵袭症+ 提交于 2019-12-11 05:37:46
问题 I've been using the Knowledge Graph API for a few months now. I just received a 400 "Request contains an invalid argument". I believe the API is having an outage or undocumented new requirement. Here are instructions: https://developers.google.com/knowledge-graph/#sample_request Here is a more specific example per the instruction. My API key is correct. Using an intentionally invalid API key produces an appropriate error. https://developers.google.com/apis-explorer/?hl=en_US#p/kgsearch/v1

How to use Google Knowledge Graph API

旧时模样 提交于 2019-12-04 23:29:49
问题 In what useful way can I use Google Knowledge Graph API at the moment? Let's say I have the MID for 1990 FIFA World Cup , which is /m/014nm_ and I make this request: GET https://kgsearch.googleapis.com/v1/entities:search?ids=%2Fm%2F014nm_&key={MY_API_KEY} I'll get something like this http://pastebin.com/M1fgj7Ew Now how can I use that information in a meaningful way? Just a description and a wikipedia link is not that comprehensive. How can I find out what other entities are linked to this

How can I search Google Knowledge Graph for entries with a specific property?

旧街凉风 提交于 2019-12-04 13:28:59
问题 How should one formulate a search query for kgsearch.googleapis.com to find all entries in a given category? For example, if I wanted to search for things in the Schema.org category applicationCategory, how would I do it? Something like the following, https://kgsearch.googleapis.com/v1/entities:search?query=c&types=applicationCategory&key=MYKEYHERE results in an error ("Request contains an invalid argument"). Something like the following, https://kgsearch.googleapis.com/v1/entities:search

How to use Google Knowledge Graph API

♀尐吖头ヾ 提交于 2019-12-03 15:07:13
In what useful way can I use Google Knowledge Graph API at the moment? Let's say I have the MID for 1990 FIFA World Cup , which is /m/014nm_ and I make this request: GET https://kgsearch.googleapis.com/v1/entities:search?ids=%2Fm%2F014nm_&key= {MY_API_KEY} I'll get something like this http://pastebin.com/M1fgj7Ew Now how can I use that information in a meaningful way? Just a description and a wikipedia link is not that comprehensive. How can I find out what other entities are linked to this one in the graph? If I search on Google for 1990 World Cup , I'll get a Knowledge Graph card like this

How can I search Google Knowledge Graph for entries with a specific property?

ε祈祈猫儿з 提交于 2019-12-03 08:41:49
How should one formulate a search query for kgsearch.googleapis.com to find all entries in a given category? For example, if I wanted to search for things in the Schema.org category applicationCategory , how would I do it? Something like the following, https://kgsearch.googleapis.com/v1/entities:search?query=c&types=applicationCategory&key=MYKEYHERE results in an error ("Request contains an invalid argument"). Something like the following, https://kgsearch.googleapis.com/v1/entities:search?query=c&types=Thing&key=MYKEYHERE is not specific enough, and returns unrelated results. 来源: https:/