public class Category extends Object implements Serializable, Comparable<Category>
| Constructor and Description |
|---|
Category(String name)
Creates a new category of entities.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addKBMS(KBM kbms)
Adds a KBM in a category.
|
void |
addKBMSEndpoint(String kbms,
String endpoint,
EntityMiningComponent emc)
Adds a new endpoint in a specific KBM of a category.
|
void |
addKBMSEnrichingQuery(String kbms,
TemplateQuery enrichingQuery,
EntityMiningComponent emc)
Adds an new enriching template query in a specific KBM of a category.
|
void |
addKBMSLinkingQuery(String kbms,
TemplateQuery linkingQuery,
EntityMiningComponent emc)
Adds an new linking template query in a specific KBM of a category.
|
void |
addKBMSPARQLQuery(String kbms,
SPARQLQuery query,
EntityMiningComponent emc)
Adds an new SPARQL query in a specific KBM of a category.
|
void |
addKBMSResourceClass(String kbms,
ResourceClass resourceClass,
EntityMiningComponent emc)
Adds a new Resource Class in a specific KBM of a category.
|
void |
addNamedEntity(String namedEntity)
Adds a named entity in the category.
|
void |
addNewKBMS(KBM kbms,
EntityMiningComponent emc)
Adds a new KBM in a category.
|
int |
compareTo(Category other) |
Set<Triple> |
getAssociations()
Returns the associations of the category's entities.
|
KBM |
getKBM(String KBMID)
Returns the KBM of a category with id "KBMID".
|
TreeMap<String,KBM> |
getKBMS()
Returns all the KBMs of a category.
|
String |
getName()
Returns the name of the category.
|
TreeSet<String> |
getNamedEntities()
Returns the named entities of that category.
|
double |
getRank()
Returns the rank of the category.
|
void |
removeKBMS(String kbms,
EntityMiningComponent emc)
Removes a KBM of a category.
|
void |
removeKBMSEndpoint(String kbms,
EntityMiningComponent emc)
Removes the endpoint of a specific KBM of a category.
|
void |
removeKBMSEnrichingQuery(String kbms,
TemplateQuery enrichingQuery,
EntityMiningComponent emc)
Removes an enriching template query of a specific KBM of a category.
|
void |
removeKBMSLinkingQuery(String kbms,
TemplateQuery linkingQuery,
EntityMiningComponent emc)
Removes a linking template query of a specific KBM of a category.
|
void |
removeKBMSPARQLQuery(String kbms,
SPARQLQuery query,
EntityMiningComponent emc)
Removes a SPARQL query of a specific KBM of a category.
|
void |
removeKBMSResourceClass(String kbms,
ResourceClass resourceClass,
EntityMiningComponent emc)
Removes a Resource Class of a specific KBM of a category.
|
void |
retrieveNamedEntitiesByQuery()
Retrieves all entities of the SPARQL query
(sparqlQueryFilepathOfEntities) from the category's SPARQL endpoint.
|
void |
retrieveNamedEntitiesByResourceClass()
Retrieves all instances of the category's resource class from the
category's SPARQL endpoint.
|
void |
setAssociations(Set<Triple> associations)
Sets/Changes the associations of the category's entities.
|
void |
setKBMS(TreeMap<String,KBM> kbms)
Initialization the KBMs of a category.
|
void |
setName(String name)
Changes the name of the category.
|
void |
setNamedEntities(TreeSet<String> namedEntities)
Sets/changes the named entities of that category.
|
void |
setRank(double rank)
Sets/Changes the rank of the category.
|
String |
toString() |
public Category(String name)
name - The name of the category.public String getName()
public void setName(String name)
name - The name of the category.public double getRank()
public void setRank(double rank)
rank - The rank of the category.public Set<Triple> getAssociations()
public void setAssociations(Set<Triple> associations)
associations - The associations of the category's entities .public TreeSet<String> getNamedEntities()
public void setNamedEntities(TreeSet<String> namedEntities)
namedEntities - The named entities of that category.public void addNamedEntity(String namedEntity)
namedEntity - The named entity.public void retrieveNamedEntitiesByResourceClass()
public void retrieveNamedEntitiesByQuery()
public int compareTo(Category other)
compareTo in interface Comparable<Category>public void addKBMS(KBM kbms) throws URISyntaxException, NoProperXLinkRepositoryException, IOException
kbms - A KBM snapshot.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionpublic TreeMap<String,KBM> getKBMS()
public KBM getKBM(String KBMID)
public void setKBMS(TreeMap<String,KBM> kbms)
kbms - A TreeMap of KBMs.public void addNewKBMS(KBM kbms, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException
kbms - The new KBM.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionpublic void addKBMSEndpoint(String kbms, String endpoint, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The KBM in which we want to add an endpoint.endpoint - The endpoint we want to add.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void addKBMSResourceClass(String kbms, ResourceClass resourceClass, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The KBM in which we want to add a ResourceClass.resourceClass - The Resource Class we want to add.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void addKBMSLinkingQuery(String kbms, TemplateQuery linkingQuery, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The KBM in which we want to add the linking template query.linkingQuery - The linking template query we want to add.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void addKBMSEnrichingQuery(String kbms, TemplateQuery enrichingQuery, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The KBM in which we want to add the enriching template query.enrichingQuery - The linking template query we want to add.emc - An EntityMiningComponent snapshot.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void addKBMSPARQLQuery(String kbms, SPARQLQuery query, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The KBM in which we want to add the SPARQL query.query - The SPARQL query we want to add.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void removeKBMSEndpoint(String kbms, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The id of the KBM.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void removeKBMSResourceClass(String kbms, ResourceClass resourceClass, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The id of the KBM.resourceClass - The Resource Class we want to remove.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void removeKBMSLinkingQuery(String kbms, TemplateQuery linkingQuery, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The id of the KBM.linkingQuery - The linking template query we want to remove.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void removeKBMSEnrichingQuery(String kbms, TemplateQuery enrichingQuery, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The id of the KBM.enrichingQuery - The enriching template query we want to remove.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void removeKBMSPARQLQuery(String kbms, SPARQLQuery query, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The id of the KBM.query - The SPARQL query we want to remove.emc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionpublic void removeKBMS(String kbms, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms - The id of the KBMemc - An EntityMiningComponent instance.URISyntaxExceptionNoProperXLinkRepositoryExceptionIOExceptionKBMNotFoundExceptionCopyright © 2016. All rights reserved.