-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path between entities #15
Comments
Yes, for such taxonomical relation, you need to use Sematch to load Wikipedia category taxonomy. |
Do you mean like here in DBpedia Entity Similarity / DBpedia Concept Similarity?
Thanks! |
In sematch/semantic/sparql.py you can find a class called NameSPARQL, there you can find name2entities, which is simply implemented based on exact string matching to entity names. Regarding to your question 1, what I mean is you need to load the corresponding Wikipedia category taxonomy in DBpedia, which you need to download from DBpedia dataset. Then you can use sematch/semantic/graph.py to load the taxonomy data, and then use similarity interface. |
Hello,
Is it possible to get hiererchical path distance between entities?
For example,
Madrid -> Cities in spain -> Barcelon (distance = 1)
Madria -> Cities in spain -> Cities in europe -> Rome (distance = 2)
Thanks
The text was updated successfully, but these errors were encountered: