LOVAPI
autocompleteTerm(term)
Search similar terms based on the term given as input.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
term |
string
|
A string that represent a term used in the KG analyzed. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
A dict that contains a list of terms similar to the term passed as input. |
Source code in kgheartbeat\LOVAPI.py
autocompleteVocab(vocab)
Search similar vocabularies based on the vocabulary given as input.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
term |
string
|
A string that represent a vocabulary used in the KG analyzed. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
A dict that contains a list of vocabularies similar to the term passed as input. |
Source code in kgheartbeat\LOVAPI.py
findVocabulary(vocab)
Look for a vocabulary in the LOV to see if it is considered standard or is a new defined vocabulary.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vocab |
string
|
A string that represent a vocabulary used in the KG analyzed. |
required |
Returns:
Name | Type | Description |
---|---|---|
boolean |
A boolean that is True if the vocabulary is in the LOV, False otherwise. |
Source code in kgheartbeat\LOVAPI.py
getAllVocab()
Search for all standard vocabularies included in the LOV.
Returns:
Name | Type | Description |
---|---|---|
dict |
A dict that contains all vocabularies considered standard by the LOV. |
Source code in kgheartbeat\LOVAPI.py
searchTermsList(terms)
Look for a terms in the files with all terms downloaded form the LOV to see if it are considered standard or is a new defined terms.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
terms |
list
|
A list that represent all terms used in the KG analyzed. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list that contains all terms that aren't considered standard for the LOV. |