public interface EntityMiningComponent
| Modifier and Type | Method and Description |
|---|---|
void |
addNewCategory(Category category)
Adds a new category in the entity mining component.
|
void |
changeConnectRadius(int radius)
Changes the connectivity radius, which infers how the identified entities
are connected (i.e.
|
void |
changeEditDistanceValue(Double value)
Sets/Changes the maximum permitted value of edit distance between two strings.
|
void |
changeEntityResourceRankingFunction(String functionName,
String isDefinedBy)
Changes the function used for the semantic resources ranking (e.g.
|
void |
clean()
Removes the temporal categories that had been created during the
temporal configuration process.
|
void |
disableFuzzyMatching()
Disables the usage of edit distance function (fuzzy matching) in entity mining tool.
|
void |
disablePartialMatching()
Disables the usage of partial matching function in entity mining tool.
|
void |
enableFuzzyMatching()
Enables the usage of edit distance function (fuzzy matching) in entity mining tool.
|
void |
enablePartialMatching()
Enables the usage of partial matching function in entity mining tool.
|
void |
exportConfigurationToRDF(String filepath,
org.openrdf.rio.RDFFormat format)
Exports the configuration of NEE tool in a RDF file.
|
ArrayList<Category> |
getAvailableCategories()
Returns a list with the available categories of the entity mining
component.
|
Category |
getCategory(String categoryName)
Finds and Returns the category with the given name.
|
void |
printAvailableCategories()
Prints the available categories of the entity mining component.
|
void |
removeCategory(String categoryName)
Removes the category with the given name from the entity mining
components.
|
void |
renameCategory(String oldCategory,
String newCategory)
Renames the given category name with a new one.
|
void |
replaceCategoryByQuery(String categoryName)
Replaces the given category from the entity mining component by SPARQL
query.
|
void |
replaceCategoryByQuery(String categoryName,
String endpoint,
String sparqlQuery)
Replaces the given category from the entity mining component by a user
defined SPARQL query.
|
void |
replaceCategoryByQueryPath(String categoryName,
String endpoint,
String sparqlQueryPath)
Replaces the given category from the entity mining component by a
SPARQL query in the given path.
|
void |
replaceCategoryByResourceClass(String categoryName)
Replaces the given category from the entity mining component by Resource
class.
|
void |
replaceCategoryByResourceClass(String categoryName,
String resourceClass,
String endpoint)
Replaces the given category from the entity mining component by a given Resource
class.
|
void |
replaceCategoryBySet(String categoryName,
Set<String> entities)
Replaces the category with the given name from the entity mining
components with the given Set of entities.
|
void |
restart()
Restarts the entity mining component.
|
void |
setConfiguration(String rdfConfigFilePath)
Replaces the existing configuration file (x-link.properties)
with a new one expressed in RDF.
|
void |
setConfiguration(String rdfConfigFilePath,
org.openrdf.rio.RDFFormat format)
Replaces the existing configuration file (x-link.properties)
with a new one expressed in RDF.
|
void |
setTempConfiguration(String rdfConfigFilePath)
Updates temporally the existing configuration file (x-link.properties)
with a new one expressed in RDF.
|
void |
setTempConfiguration(String rdfConfigFilePath,
org.openrdf.rio.RDFFormat format)
Updates temporally the existing configuration file (x-link.properties)
with a new one expressed in RDF.
|
void |
shutdown()
Shutdowns the entity mining component.
|
void |
startup()
The entity mining components starts and is initialized.
|
void |
updateCategoryByQuery(String categoryName)
Updates the given category from the entity mining component by SPARQL
query.
|
void |
updateCategoryByQuery(String categoryName,
String endpoint,
String sparqlQuery)
Updates the given category from the entity mining component by a user
defined SPARQL query.
|
void |
updateCategoryByQueryPath(String categoryName,
String endpoint,
String sparqlQueryPath)
Updates the given category from the entity mining component by a SPARQL
query in the given path.
|
void |
updateCategoryByResourceClass(String categoryName)
Updates the given category from the entity mining component by Resource
Class.
|
void |
updateCategoryByResourceClass(String categoryName,
String endpoint,
String resourceClass)
Updates the given category from the entity mining component by a given
Resource Class.
|
void |
updateCategoryBySet(String categoryName,
Set<String> entities)
Updates the category with the given name from the entity mining
components with the given Set of entities.
|
void |
updateCategoryBySingleEntity(String categoryName,
String entity)
Updates the category with the given name from the entity mining
components with the given entity.
|
void |
updatePropertiesFile(Category category,
String kbms) |
void startup()
void restart()
void shutdown()
ArrayList<Category> getAvailableCategories()
void addNewCategory(Category category) throws CategoryAlreadyExistsException, XLinkIsOffException, IllegalCategoryNameException, NoProperCategoryNameException
category - The category that will be added in the entity mining
component.CategoryAlreadyExistsExceptionXLinkIsOffExceptionIllegalCategoryNameExceptionNoProperCategoryNameExceptionvoid removeCategory(String categoryName) throws CategoryNotFoundException, FileNotFoundException, UnsupportedEncodingException, IOException, XLinkIsOffException
categoryName - The name of the category that we want to remove from
the entity mining component.CategoryNotFoundExceptionFileNotFoundExceptionUnsupportedEncodingExceptionIOExceptionXLinkIsOffExceptionvoid printAvailableCategories()
void updateCategoryBySet(String categoryName, Set<String> entities) throws CategoryNotFoundException, FileNotFoundException, IOException, XLinkIsOffException, EmptyListOfNamedEntitiesException
categoryName - The name of the category that we want to update from
the entity mining component.entities - The set of entities that we want to add to the given
category from the entity mining component.CategoryNotFoundExceptionFileNotFoundExceptionIOExceptionXLinkIsOffExceptionEmptyListOfNamedEntitiesExceptionvoid updateCategoryBySingleEntity(String categoryName, String entity) throws CategoryNotFoundException, FileNotFoundException, IOException, XLinkIsOffException, EmptyListOfNamedEntitiesException
categoryName - The name of the category that we want to update from
the entity mining component.entity - The entity that we want to add to the given category from
the entity mining component.CategoryNotFoundExceptionFileNotFoundExceptionIOExceptionXLinkIsOffExceptionEmptyListOfNamedEntitiesExceptionvoid replaceCategoryByQuery(String categoryName) throws CategoryNotFoundException, FileNotFoundException, UnsupportedEncodingException, CategoryAlreadyExistsException, IOException, XLinkIsOffException, IllegalCategoryNameException, NoProperCategoryNameException, NoGivenSPARQLEndpointException, NoGivenSparqlQueryFileException, EmptyListOfNamedEntitiesException
categoryName - The name of category that will be replaced in the
entity mining component.CategoryNotFoundExceptionFileNotFoundExceptionUnsupportedEncodingExceptionCategoryAlreadyExistsExceptionIOExceptionXLinkIsOffExceptionIllegalCategoryNameExceptionNoProperCategoryNameExceptionNoGivenSPARQLEndpointExceptionNoGivenSparqlQueryFileExceptionEmptyListOfNamedEntitiesExceptionvoid replaceCategoryByQuery(String categoryName, String endpoint, String sparqlQuery) throws CategoryNotFoundException, FileNotFoundException, UnsupportedEncodingException, CategoryAlreadyExistsException, IOException, XLinkIsOffException, IllegalCategoryNameException, NoProperCategoryNameException, NoGivenSPARQLEndpointException, NoGivenSparqlQueryFileException, EmptyListOfNamedEntitiesException, MalformedURLException, URISyntaxException
categoryName - The name of category that will be replaced in the
entity mining component.sparqlQuery - The user defined sparql query.endpoint - The endpoint of Knowledge Base.CategoryNotFoundExceptionFileNotFoundExceptionUnsupportedEncodingExceptionCategoryAlreadyExistsExceptionIOExceptionXLinkIsOffExceptionIllegalCategoryNameExceptionNoProperCategoryNameExceptionNoGivenSPARQLEndpointExceptionNoGivenSparqlQueryFileExceptionEmptyListOfNamedEntitiesExceptionMalformedURLExceptionURISyntaxExceptionvoid replaceCategoryByQueryPath(String categoryName, String endpoint, String sparqlQueryPath) throws CategoryNotFoundException, FileNotFoundException, UnsupportedEncodingException, CategoryAlreadyExistsException, IOException, XLinkIsOffException, IllegalCategoryNameException, NoProperCategoryNameException, NoGivenSPARQLEndpointException, NoGivenSparqlQueryFileException, EmptyListOfNamedEntitiesException, MalformedURLException, URISyntaxException
categoryName - The name of category that will be replaced in the
entity mining component.sparqlQueryPath - The path of SPARQL query.endpoint - The endpoint of Knowledge Base.CategoryNotFoundExceptionFileNotFoundExceptionUnsupportedEncodingExceptionCategoryAlreadyExistsExceptionIOExceptionXLinkIsOffExceptionIllegalCategoryNameExceptionNoProperCategoryNameExceptionNoGivenSPARQLEndpointExceptionNoGivenSparqlQueryFileExceptionEmptyListOfNamedEntitiesExceptionMalformedURLExceptionURISyntaxExceptionvoid replaceCategoryByResourceClass(String categoryName) throws CategoryNotFoundException, FileNotFoundException, UnsupportedEncodingException, CategoryAlreadyExistsException, IOException, XLinkIsOffException, IllegalCategoryNameException, NoProperCategoryNameException, NoGivenResourceClassException, EmptyListOfNamedEntitiesException
categoryName - The category that will be replaced in the entity
mining component.CategoryNotFoundExceptionFileNotFoundExceptionUnsupportedEncodingExceptionCategoryAlreadyExistsExceptionIOExceptionXLinkIsOffExceptionIllegalCategoryNameExceptionNoProperCategoryNameExceptionNoGivenResourceClassExceptionEmptyListOfNamedEntitiesExceptionvoid replaceCategoryByResourceClass(String categoryName, String resourceClass, String endpoint) throws CategoryNotFoundException, FileNotFoundException, UnsupportedEncodingException, CategoryAlreadyExistsException, IOException, XLinkIsOffException, IllegalCategoryNameException, NoProperCategoryNameException, NoGivenResourceClassException, EmptyListOfNamedEntitiesException, NoGivenSPARQLEndpointException, MalformedURLException
categoryName - The category that will be replaced in the entity
mining component.resourceClass - The resource Class.endpoint - The endpoint.CategoryNotFoundExceptionFileNotFoundExceptionUnsupportedEncodingExceptionCategoryAlreadyExistsExceptionIOExceptionXLinkIsOffExceptionIllegalCategoryNameExceptionNoProperCategoryNameExceptionNoGivenResourceClassExceptionEmptyListOfNamedEntitiesExceptionNoGivenSPARQLEndpointExceptionMalformedURLExceptionvoid renameCategory(String oldCategory, String newCategory) throws CategoryNotFoundException, CategoryAlreadyExistsException, IOException, XLinkIsOffException, NoProperCategoryNameException, IllegalCategoryNameException
oldCategory - The given category name.newCategory - The new name of the category.CategoryNotFoundExceptionCategoryAlreadyExistsExceptionIOExceptionXLinkIsOffExceptionNoProperCategoryNameExceptionIllegalCategoryNameExceptionvoid replaceCategoryBySet(String categoryName, Set<String> entities) throws CategoryNotFoundException, XLinkIsOffException, FileNotFoundException, UnsupportedEncodingException, IOException, CategoryAlreadyExistsException, IllegalCategoryNameException, NoProperCategoryNameException, EmptyListOfNamedEntitiesException
categoryName - The name of the category that we want to update from
the entity mining component.entities - The set of entities that we want to add to the given
category from the entity mining component.CategoryNotFoundExceptionXLinkIsOffExceptionFileNotFoundExceptionUnsupportedEncodingExceptionIOExceptionCategoryAlreadyExistsExceptionIllegalCategoryNameExceptionNoProperCategoryNameExceptionEmptyListOfNamedEntitiesExceptionvoid updateCategoryByQuery(String categoryName) throws XLinkIsOffException, CategoryNotFoundException, NoGivenSPARQLEndpointException, NoGivenSparqlQueryFileException, FileNotFoundException, IOException, EmptyListOfNamedEntitiesException
categoryName - The name of category that will be updated in the
entity mining component.XLinkIsOffExceptionCategoryNotFoundExceptionNoGivenSPARQLEndpointExceptionNoGivenSparqlQueryFileExceptionFileNotFoundExceptionIOExceptionEmptyListOfNamedEntitiesExceptionvoid updateCategoryByQuery(String categoryName, String endpoint, String sparqlQuery) throws XLinkIsOffException, CategoryNotFoundException, NoGivenSPARQLEndpointException, NoGivenSparqlQueryFileException, FileNotFoundException, IOException, EmptyListOfNamedEntitiesException, MalformedURLException, URISyntaxException
categoryName - The name of category that will be updated in the
entity mining component.sparqlQuery - The user defined sparql query.endpoint - The endpoint.XLinkIsOffExceptionCategoryNotFoundExceptionNoGivenSPARQLEndpointExceptionNoGivenSparqlQueryFileExceptionFileNotFoundExceptionIOExceptionEmptyListOfNamedEntitiesExceptionMalformedURLExceptionURISyntaxExceptionvoid updateCategoryByQueryPath(String categoryName, String endpoint, String sparqlQueryPath) throws XLinkIsOffException, CategoryNotFoundException, NoGivenSPARQLEndpointException, NoGivenSparqlQueryFileException, FileNotFoundException, IOException, EmptyListOfNamedEntitiesException, MalformedURLException, URISyntaxException
categoryName - The name of category that will be updated in the
entity mining component.sparqlQueryPath - The path of sparql query.endpoint - The endpoint.XLinkIsOffExceptionCategoryNotFoundExceptionNoGivenSPARQLEndpointExceptionNoGivenSparqlQueryFileExceptionFileNotFoundExceptionIOExceptionEmptyListOfNamedEntitiesExceptionMalformedURLExceptionURISyntaxExceptionvoid updateCategoryByResourceClass(String categoryName) throws FileNotFoundException, IOException, CategoryNotFoundException, XLinkIsOffException, NoGivenResourceClassException, EmptyListOfNamedEntitiesException
categoryName - The name of category that will be updated in the
entity mining component.FileNotFoundExceptionIOExceptionCategoryNotFoundExceptionXLinkIsOffExceptionNoGivenResourceClassExceptionEmptyListOfNamedEntitiesExceptionvoid updateCategoryByResourceClass(String categoryName, String endpoint, String resourceClass) throws FileNotFoundException, IOException, CategoryNotFoundException, XLinkIsOffException, NoGivenResourceClassException, EmptyListOfNamedEntitiesException, NoGivenSPARQLEndpointException, MalformedURLException
categoryName - The name of category that will be updated in the
entity mining component.endpoint - The endpoint.resourceClass - The resource class.FileNotFoundExceptionIOExceptionCategoryNotFoundExceptionXLinkIsOffExceptionNoGivenResourceClassExceptionEmptyListOfNamedEntitiesExceptionNoGivenSPARQLEndpointExceptionMalformedURLExceptionCategory getCategory(String categoryName) throws CategoryNotFoundException
categoryName - The name of the category we want to find and retrieve.CategoryNotFoundExceptionvoid changeEditDistanceValue(Double value) throws FileNotFoundException, IOException
value - The maximum permitted value of edit distanceFileNotFoundExceptionIOExceptionvoid enableFuzzyMatching()
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionvoid disableFuzzyMatching()
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionvoid enablePartialMatching()
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionvoid disablePartialMatching()
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionvoid changeConnectRadius(int radius)
throws FileNotFoundException,
IOException
radius - FileNotFoundExceptionIOExceptionvoid updatePropertiesFile(Category category, String kbms) throws FileNotFoundException, IOException, MalformedURLException, URISyntaxException, NoProperXLinkRepositoryException
category - kbms - FileNotFoundExceptionIOExceptionMalformedURLExceptionURISyntaxExceptionNoProperXLinkRepositoryExceptionvoid exportConfigurationToRDF(String filepath, org.openrdf.rio.RDFFormat format)
filepath - The path of the RDF file.format - The format of RDF file.void changeEntityResourceRankingFunction(String functionName, String isDefinedBy) throws FileNotFoundException, IOException
functionName - The label of the ranking function.isDefinedBy - The source of the ranking function.FileNotFoundExceptionIOExceptionvoid setConfiguration(String rdfConfigFilePath, org.openrdf.rio.RDFFormat format)
rdfConfigFilePath - The file path of the new configuration file.format - The RDF format of the file that contains the new
configuration.void setConfiguration(String rdfConfigFilePath)
rdfConfigFilePath - The file path of the new configuration file.void setTempConfiguration(String rdfConfigFilePath, org.openrdf.rio.RDFFormat format)
rdfConfigFilePath - The file path of the new configuration file.format - The RDF format of the file that contains the new
configuration.void setTempConfiguration(String rdfConfigFilePath)
rdfConfigFilePath - The file path of the new configuration file.void clean()
Copyright © 2016. All rights reserved.