Hello,
First of all, thank you for this great product. I wanted to ask two questions,
- Is there a way to get the hierarchy between the extracted types from the API
-
An example can be -> Obama is born in Hawaii.
-
Hawaii -> DBPedia: Place, DBPedia: Country, DBPedia: PopulatedPlace…
-
Can I get the connections between these types or using sparql should suffice?
-
If not, I’ll use sparql endpoint to query around.
- Is there a way to retrieve the label of the linked entity.
Thank you for your work.
Hello @aliozts,
Thanks for your interest and questions. I will try to answer your questions in the same order:
- Is there a way to get the hierarchy between the extracted types from the API
It is a nice functionality but it is not part of the retrieved information of DBpedia-Spotlight. But, in this link you can find the hierarchy of classes and create your own SPARQL queries.
- Is there a way to retrieve the label of the linked entity.
Unfortunately, it is not possible since the main objective of DBpedia-Spotlight is to retrieve annotated entities, the label of retrieved entities could be done as a post-processing step (or consider the use of nif:anchorOf
’ of the response).
Are the labels always the text splitted with underscores or are there other cases where this does not hold?
I could not say that it is a norm but it seems that phrases are separated by an underscore.
In general, the hierarchy retrieving of an entity could be done as a post-processing step via SPARQL queries following the structure of the DBpedia ontology classes (http://mappings.dbpedia.org/server/ontology/classes/). The same applies to the label retrieving for an entity. I hope this information helps you. Have a nice day.
I’ll be sure to check them out. Thank you a lot for your response and work!