VoIDAnalyses
getContributors(graph)
Find triples which contain the contributors of the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list that contains all the contributors (or the contributor) of the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getCreationDate(graph)
Find triples with a predicate that indicate the KG creation date.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all it's triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
Date |
A Date object that represent the KG creation date. |
Source code in kgheartbeat\VoIDAnalyses.py
getCreators(graph)
Find triples which contain the creators of the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list that contains all the creators (or the creator) of the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getDataDump(graph)
Find triples which contain the url of the KG dump file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that represent a link to the KG dump |
Source code in kgheartbeat\VoIDAnalyses.py
getFrequency(graph)
Find triples which contain the frequency update of the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that represent the frequency update of the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getLanguage(graph)
Find triples which contain the languages of the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list that contains all the languages supported by the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getLicense(graph)
Find triples which contain the license of the KG (machine-redeable).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that represent the machine-redeable license of a KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getModificationDate(graph)
Find triples with a predicate that indicate the KG last modification date.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all it's triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
Date |
A Date object that represent the KG creation date. |
Source code in kgheartbeat\VoIDAnalyses.py
getNumEntities(graph)
Find triples which contain the number of entities of the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
string |
A string that represent the number of entities in the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getPublishers(graph)
Find triples which contain the publichers of the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list that contains all the publishers (or the publicher) of the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getSerializationFormats(graph)
Find triples which contain the seriaization formats of the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list that contains all the serialization formats available for the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getUriRegex(graph)
Find triples which contain the regex of URI in the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all its triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list that contains all the regex that match the URI of the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
getVocabularies(graph)
Find triples with a predicate that indicate the vocabulary used in the KG.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all it's triples. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
A list with all vocabularies used by the KG. |
Source code in kgheartbeat\VoIDAnalyses.py
parseVoID(url)
Parse the file VoID from an url and convert triples in a Graph object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url |
string
|
A string that represent a url of a VoID file available on Internet. |
required |
Returns:
Name | Type | Description |
---|---|---|
Graph |
A Graph object that contain all the triples in the VoID file. |
Source code in kgheartbeat\VoIDAnalyses.py
parseVoIDTtl(url)
Parse the file VoID with the .ttl extension from an url and convert triples in a Graph object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url |
string
|
A string that represent a url of a VoID file available on Internet. |
required |
Returns:
Name | Type | Description |
---|---|---|
Graph |
A Graph object that contain all the triples in the VoID file. |
Source code in kgheartbeat\VoIDAnalyses.py
printVoID(graph)
Print all the triples in the VoID file parsed.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
Graph
|
A Graph that represent a VoID file parsed with all it's triples. |
required |