LODCloudAPI
getAuthor(jsonFile)
Get the KG author from the KG metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict that contains all KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that represent the KG author. |
Source code in kgheartbeat\LODCloudAPI.py
getDescription(jsonFile)
Get the KG description.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict that contains the KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that is the description of the data in the KG. |
Source code in kgheartbeat\LODCloudAPI.py
getExternalLinks(jsonFile)
Get all the external links related to the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
jsonFile
|
A dict which contains all the metadata of the KH. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
A dict which contains the links and the info about the links. |
Source code in kgheartbeat\LODCloudAPI.py
getJSONMetadata(idKG)
Get the JSON file with all matadata about the KG from its id.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
idKG |
string
|
A string that represent the ID of KG that we want to fetch the metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
A dict that contains all the metadata of the KG. |
Source code in kgheartbeat\LODCloudAPI.py
getKeywords(jsonfile)
Get the KG keyowords.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict which contains all the KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that is the concatenation of all the KG keywords. |
Source code in kgheartbeat\LODCloudAPI.py
getLicense(jsonFile)
Get the license info from the metadata recovered.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict that contains all KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that represent the KG license. |
Source code in kgheartbeat\LODCloudAPI.py
getNameKG(metadata)
Get the KG name form the kg metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metadata |
dict
|
A dict that contains all KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that represent the KG name |
Source code in kgheartbeat\LODCloudAPI.py
getOtherResources(jsonFile)
Get all the other resources related with the KG (e.g. examples of SPARQL query) and delete the duplicate links.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict which contains all the KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list of dict that contains all the links to other resources. |
Source code in kgheartbeat\LODCloudAPI.py
getSPARQLEndpoint(jsonFile)
Get the SPARQL endpoint from the KG metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict which contains all the KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that is the SPARQL endpoint link. |
Source code in kgheartbeat\LODCloudAPI.py
getSource(jsonFile)
Get the KG source from the KG metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict that contains all KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
A dict that contains all info about the KG source. |
Source code in kgheartbeat\LODCloudAPI.py
getSourceDict(jsonFile)
Get the KG source from the KG metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict that contains all KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
A dict that contains all info about the KG source. |
Source code in kgheartbeat\LODCloudAPI.py
getTriples(jsonFile)
Get the number of KG triples indicated in the metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
jsonFile |
dict
|
A dict which contains all KG metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
int |
An integer that is the number of triples in the KG. |