AGAPI
getAllKg()
Retrieve metadata of all KGs that are automatically discoverable from LODC and DataHub.
Returns:
Name | Type | Description |
---|---|---|
list |
A list of dictionaries representing the metadata of all KGs. |
Source code in kgheartbeat\AGAPI.py
getIdByName(keyword)
Get the ID of the KG from its name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
keyword |
string
|
The name or keyword of the KG. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list of KG IDs matching the keyword. |
Source code in kgheartbeat\AGAPI.py
getMetadati(idKG)
Find the metadata about a KG from its id.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
idKG |
string
|
A string that represent the ID of KG that we want the metadata. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that represent the metadata of the KG. |
Source code in kgheartbeat\AGAPI.py
getNameKG(metadata)
Extract the full name of the KG from the metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metadata |
dict
|
The metadata of a KG. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
The full name of the KG. |
Source code in kgheartbeat\AGAPI.py
getSparqlEndpoint(metadata)
Extract the SPARQL endpoint URL from the metadata.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metadata |
dict
|
The metadata of a KG. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
The URL of the SPARQL endpoint. |