public class Category extends Object implements Serializable, Comparable<Category>
Constructor and Description |
---|
Category(String thename)
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 n) |
ArrayList<Triple> |
getAssociations()
Returns the associations of the category's entities.
|
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(ArrayList<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 thename)
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 thename)
thename
- The name of the category.public String getName()
public void setName(String thename)
thename
- The name of the category.public double getRank()
public void setRank(double rank)
rank
- The rank of the category.public ArrayList<Triple> getAssociations()
public void setAssociations(ArrayList<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 n)
compareTo
in interface Comparable<Category>
public void addKBMS(KBM kbms) throws URISyntaxException, NoProperXLinkRepositoryException, IOException
kbms
- A KBM snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
public TreeMap<String,KBM> getKBMS()
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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
public 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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public 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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public 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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public 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.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public 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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public void removeKBMSEndpoint(String kbms, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms
- The id of the KBM.emc
- An EntityMiningCOmponent snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public 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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public 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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public 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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public 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 snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
public void removeKBMS(String kbms, EntityMiningComponent emc) throws URISyntaxException, NoProperXLinkRepositoryException, IOException, KBMNotFoundException
kbms
- The id of the KBMemc
- An EntityMiningCOmponent snapshot.URISyntaxException
NoProperXLinkRepositoryException
IOException
KBMNotFoundException
Copyright © 2014. All rights reserved.