public interface EntityMiningComponent
Modifier and Type | Method and Description |
---|---|
void |
addNewCategory(Category category)
Adds a new category in the entity mining component.
|
void |
changeCategoryAttributes(String category,
String newEndpoint,
String newLinkingTemplatePath,
String newEnrichingTemplatePath,
String newSparqlQueryofEntitiesPath,
String newResourceClass)
Replaces the given category attributes with new in x-link.properties
file.
|
void |
changeConnectRadius(int radius)
Changes the connectivity radius, which infers how the identified entities
are connected (i.e.
|
void |
changeEditDistance(boolean usage)
Declares the usage of edit distance function in entity mining tool.
|
void |
changeEditDistanceValue(Double value)
Sets/Changes the maximum permitted value of edit distance between two strings.
|
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 queryPath)
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 |
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> entries)
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.CategoryAlreadyExistsException
XLinkIsOffException
IllegalCategoryNameException
NoProperCategoryNameException
void 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.CategoryNotFoundException
FileNotFoundException
UnsupportedEncodingException
IOException
XLinkIsOffException
void printAvailableCategories()
void updateCategoryBySet(String categoryName, Set<String> entries) throws CategoryNotFoundException, FileNotFoundException, IOException, XLinkIsOffException, EmptyListOfNamedEntitiesException
categoryName
- The name of the category that we want to update from
the entity mining component.entries
- The set of entries that we want to add to the given
category from the entity mining component.CategoryNotFoundException
FileNotFoundException
IOException
XLinkIsOffException
EmptyListOfNamedEntitiesException
void 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.CategoryNotFoundException
FileNotFoundException
IOException
XLinkIsOffException
EmptyListOfNamedEntitiesException
void 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.CategoryNotFoundException
FileNotFoundException
UnsupportedEncodingException
CategoryAlreadyExistsException
IOException
XLinkIsOffException
IllegalCategoryNameException
NoProperCategoryNameException
NoGivenSPARQLEndpointException
NoGivenSparqlQueryFileException
EmptyListOfNamedEntitiesException
void 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.CategoryNotFoundException
FileNotFoundException
UnsupportedEncodingException
CategoryAlreadyExistsException
IOException
XLinkIsOffException
IllegalCategoryNameException
NoProperCategoryNameException
NoGivenSPARQLEndpointException
NoGivenSparqlQueryFileException
EmptyListOfNamedEntitiesException
MalformedURLException
URISyntaxException
void replaceCategoryByQueryPath(String categoryName, String endpoint, String queryPath) 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.queryPath
- The path of sparql query.endpoint
- The endpoint of Knowledge Base.CategoryNotFoundException
FileNotFoundException
UnsupportedEncodingException
CategoryAlreadyExistsException
IOException
XLinkIsOffException
IllegalCategoryNameException
NoProperCategoryNameException
NoGivenSPARQLEndpointException
NoGivenSparqlQueryFileException
EmptyListOfNamedEntitiesException
MalformedURLException
URISyntaxException
void 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.CategoryNotFoundException
FileNotFoundException
UnsupportedEncodingException
CategoryAlreadyExistsException
IOException
XLinkIsOffException
IllegalCategoryNameException
NoProperCategoryNameException
NoGivenResourceClassException
EmptyListOfNamedEntitiesException
void 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.CategoryNotFoundException
FileNotFoundException
UnsupportedEncodingException
CategoryAlreadyExistsException
IOException
XLinkIsOffException
IllegalCategoryNameException
NoProperCategoryNameException
NoGivenResourceClassException
EmptyListOfNamedEntitiesException
NoGivenSPARQLEndpointException
MalformedURLException
void renameCategory(String oldCategory, String newCategory) throws CategoryNotFoundException, CategoryAlreadyExistsException, IOException, XLinkIsOffException, NoProperCategoryNameException, IllegalCategoryNameException
oldCategory
- The given category name.newCategory
- The new name of the category.CategoryNotFoundException
CategoryAlreadyExistsException
IOException
XLinkIsOffException
NoProperCategoryNameException
IllegalCategoryNameException
void changeCategoryAttributes(String category, String newEndpoint, String newLinkingTemplatePath, String newEnrichingTemplatePath, String newSparqlQueryofEntitiesPath, String newResourceClass) throws IOException, CategoryNotFoundException, MalformedURLException, URISyntaxException
category
- The category which attributes we want to change.newEndpoint
- The new endpoint.newLinkingTemplatePath
- The new linking template query path.newEnrichingTemplatePath
- The new enriching template query path.newSparqlQueryofEntitiesPath
- The SPARQL query of entities path.newResourceClass
- The new resource class.IOException
CategoryNotFoundException
MalformedURLException
URISyntaxException
void 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 entries that we want to add to the given
category from the entity mining component.CategoryNotFoundException
XLinkIsOffException
FileNotFoundException
UnsupportedEncodingException
IOException
CategoryAlreadyExistsException
IllegalCategoryNameException
NoProperCategoryNameException
EmptyListOfNamedEntitiesException
void 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.XLinkIsOffException
CategoryNotFoundException
NoGivenSPARQLEndpointException
NoGivenSparqlQueryFileException
FileNotFoundException
IOException
EmptyListOfNamedEntitiesException
void 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.XLinkIsOffException
CategoryNotFoundException
NoGivenSPARQLEndpointException
NoGivenSparqlQueryFileException
FileNotFoundException
IOException
EmptyListOfNamedEntitiesException
MalformedURLException
URISyntaxException
void 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.XLinkIsOffException
CategoryNotFoundException
NoGivenSPARQLEndpointException
NoGivenSparqlQueryFileException
FileNotFoundException
IOException
EmptyListOfNamedEntitiesException
MalformedURLException
URISyntaxException
void updateCategoryByResourceClass(String categoryName) throws FileNotFoundException, IOException, CategoryNotFoundException, XLinkIsOffException, NoGivenResourceClassException, EmptyListOfNamedEntitiesException
categoryName
- The name of category that will be updated in the
entity mining component.FileNotFoundException
IOException
CategoryNotFoundException
XLinkIsOffException
NoGivenResourceClassException
EmptyListOfNamedEntitiesException
void 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.FileNotFoundException
IOException
CategoryNotFoundException
XLinkIsOffException
NoGivenResourceClassException
EmptyListOfNamedEntitiesException
NoGivenSPARQLEndpointException
MalformedURLException
Category getCategory(String categoryName) throws CategoryNotFoundException
categoryName
- The name of the category we want to find and retrieve.CategoryNotFoundException
void changeEditDistanceValue(Double value) throws FileNotFoundException, IOException
value
- The maximum permitted value of edit distanceFileNotFoundException
IOException
void changeEditDistance(boolean usage) throws FileNotFoundException, IOException
usage
- true if we want to use the edit distance function, false otherwise.FileNotFoundException
IOException
void changeConnectRadius(int radius) throws FileNotFoundException, IOException
radius
- FileNotFoundException
IOException
void updatePropertiesFile(Category category, String kbms) throws FileNotFoundException, IOException, MalformedURLException, URISyntaxException, NoProperXLinkRepositoryException
category
- kbms
- FileNotFoundException
IOException
MalformedURLException
URISyntaxException
NoProperXLinkRepositoryException
Copyright © 2014. All rights reserved.