|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WikidataSearchService
A very basic plugin to search and explore wikidata. Creates \"Wikidata Search Result Entity\"-Topics. Corresponding to the type of wikidata-entity found via a search these topics have either the child-type ("org.deepamehta.wikidata.search_entity_type") set to the value "property or the value "item".
Method Summary | |
---|---|
Topic |
createWikidataAssociationType(long entityTopicId,
ClientState clientState)
This method creates a DeepaMehta Association Type given a \"Wikidata Search Entity\" (of type=property). |
Topic |
getOrCreateWikidataEntity(String wikidataEntityId,
String iso_language_code,
ClientState clientState)
This method gets (or creates) a \"Wikidata Search Entity\" (in DeepaMehta 4) by its ID (wikidata). |
List<RelatedAssociation> |
getTopicRelatedAssociations(long topicId)
This method retrieves all associated associations of type "Wikidata Claim" for any given \"Wikidata Search Entity\" (of type=property). |
Topic |
loadClaimsAndRelatedWikidataItems(long entityTopicId,
String iso_language_code,
ClientState clientState)
This method loads all claims (with language specific values) for a wikidata-entity into DeepaMehta 4. |
Topic |
searchWikidataEntity(String query,
String iso_language_code,
ClientState clientstate,
String entityType)
This method searches all wikidata entities by text and the given language code. |
Method Detail |
---|
Topic searchWikidataEntity(String query, String iso_language_code, ClientState clientstate, String entityType)
{entity}
- entity-type (can be of entity-type "item" or "property"){query}
- name of wikidata property in search{language_code}
- ISO 639-1 language code (must exist in DM installation)Topic getOrCreateWikidataEntity(String wikidataEntityId, String iso_language_code, ClientState clientState)
{entityId}
- wikidataIdTopic loadClaimsAndRelatedWikidataItems(long entityTopicId, String iso_language_code, ClientState clientState)
{id}
- \"Wikidata Search Entity\"-Topic IDTopic createWikidataAssociationType(long entityTopicId, ClientState clientState)
{id}
- \"Wikidata Search Entity\"-Topic ID (entity-type must be of value "property")List<RelatedAssociation> getTopicRelatedAssociations(long topicId)
{id}
- \"Wikidata Search Entity\"-Topic ID (entity-type must be of value "property")
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |