public class XLink extends Object
| Constructor and Description |
|---|
XLink() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeLevenshteinDistance(CharSequence str1,
CharSequence str2)
Finds and returns the lexicographical distance between two words.
|
void |
connect()
Infer how the identified entities are connected (only direct associations
are considered, i.e.
|
void |
connect(String category)
Infer how the identified entities are connected (only direct associations
are considered, i.e.
|
void |
enrich()
Enriches the retrieved entities with semantic information.
|
void |
enrich(Category c,
PropertiesType type)
Enriches the retrieved entities of a specific category with semantic
information of PropertiesType type in language languageISO (optional)
|
void |
enrich(Category c,
PropertiesType type,
String languageCode)
Enriches the retrieved entities of a specific category with semantic
information of PropertiesType type in language languageISO (optional)
|
void |
enrich(Entity e,
PropertiesType type)
Enriches the retrieved entity with semantic information of PropertiesType
type in language languageISO (optional)
|
void |
enrich(Entity e,
PropertiesType type,
String languageCode)
Enriches the retrieved entity with semantic information of PropertiesType
type in language languageISO (optional)
|
void |
enrich(Entity e,
String query)
Enriches the retrieved entities e with semantic information using query
|
void |
enrich(PropertiesType type)
Enriches the retrieved entities with semantic information of
PropertiesType type in language languageISO (optional)
|
void |
enrich(PropertiesType type,
String languageCode)
Enriches the retrieved entities with semantic information of
PropertiesType type in language languageISO (optional)
|
ArrayList<Triple> |
getAssociations()
Returns the associating triples of the entities.
|
EntityMiningComponent |
getEmc()
Returns the entity mining component.
|
ArrayList<Entity> |
getEntities()
Returns a list with the detected entities.
|
void |
link()
Tries to match the detected entities with URIs from the underlying
knowledge bases (i.e.
|
void |
link(Category c)
Tries to match the detected entities, of a specific category c, with URIs
from the underlying knowledge bases (i.e.
|
void |
link(Entity e)
Tries to match the entity e, with URIs from the underlying knowledge
bases (i.e.
|
void |
retrieveAllProperties() |
void |
retrieveEntities(String content,
HashSet<String> acceptedCategoryNames)
Performs entity mining to the given content and according to the given
categories.
|
void |
retrieveEntities(TextExtractor extractor,
HashSet<String> acceptedCategoryNames)
Performs entity mining with the given text extractor and according to the
given categories.
|
void |
retrieveIncomingProperties() |
void |
retrieveOutcomingProperties() |
ArrayList<Triple> |
retrieveTriples(String templateQueryFile,
String endpoint,
String uri,
String languageCode)
Retrieves the triples of an entity's given URI.
|
void |
setAssociations(ArrayList<Triple> associations)
Sets the associating triples.
|
void |
setEmc(EntityMiningComponent emc)
Sets/changes the entity mining component.
|
void |
setEntities(ArrayList<Entity> entities)
Sets/changes the detected entities.
|
void |
setEntityMiningComponent(EntityMiningComponent emc)
Sets/changes the entity mining component.
|
public void setEntityMiningComponent(EntityMiningComponent emc)
emc - The entity mining component.public void retrieveEntities(TextExtractor extractor, HashSet<String> acceptedCategoryNames) throws FalseFileTypeException
extractor - The text extractor that will be used for getting the
text in which we will perform entity mining.acceptedCategoryNames - The names of the categories for which we
want to detect entities.FalseFileTypeExceptionpublic void retrieveEntities(String content, HashSet<String> acceptedCategoryNames)
content - The text in which we want to perform entity mining.acceptedCategoryNames - The names of the categories for which we
want to detect entities.public void link()
public void link(Category c)
c - The category which entities we want to linkpublic void link(Entity e)
e - The category which entities we want to linkpublic void retrieveIncomingProperties()
public void retrieveOutcomingProperties()
public void retrieveAllProperties()
public void connect(String category) throws CategoryNotFoundException, IOException
category - The category which entities we want to connect.CategoryNotFoundExceptionIOExceptionpublic void connect()
throws CategoryNotFoundException,
IOException
CategoryNotFoundExceptionIOExceptionpublic void enrich()
throws CategoryNotFoundException,
IOException
CategoryNotFoundExceptionIOExceptionpublic void enrich(Entity e, PropertiesType type, String languageCode) throws CategoryNotFoundException, IOException
e - The identified entity we want to enrich.type - The properties type (e.g. incoming, outgoing etc)languageCode - The language of retrieved properties (optional)CategoryNotFoundExceptionIOExceptionpublic void enrich(PropertiesType type, String languageCode) throws CategoryNotFoundException, IOException
type - The properties type (e.g. incoming, outgoing etc)languageCode - The language of retrieved properties (optional)CategoryNotFoundExceptionIOExceptionpublic void enrich(Category c, PropertiesType type, String languageCode) throws CategoryNotFoundException, IOException
c - The category which entities we want to enrich.type - The properties type (e.g. incoming, outgoing etc)languageCode - The language of retrieved properties (optional)CategoryNotFoundExceptionIOExceptionpublic void enrich(Entity e, PropertiesType type) throws CategoryNotFoundException, IOException, NoProperSPARQLTemplateQuery
e - The identified entity we want to enrich.type - The properties type (e.g. incoming, outgoing etc)CategoryNotFoundExceptionIOExceptionNoProperSPARQLTemplateQuerypublic void enrich(PropertiesType type) throws CategoryNotFoundException, IOException, NoProperSPARQLTemplateQuery
type - The properties type (e.g. incoming, outgoing etc)CategoryNotFoundExceptionIOExceptionNoProperSPARQLTemplateQuerypublic void enrich(Category c, PropertiesType type) throws CategoryNotFoundException, IOException, NoProperSPARQLTemplateQuery
c - The category which entities we want to enrich.type - The properties type (e.g. incoming, outgoing etc)CategoryNotFoundExceptionIOExceptionNoProperSPARQLTemplateQuerypublic void enrich(Entity e, String query) throws CategoryNotFoundException, IOException
e - The entity we want to enrich.query - The SPARQL query we use to enrich entity e.CategoryNotFoundExceptionIOExceptionpublic EntityMiningComponent getEmc()
public void setEmc(EntityMiningComponent emc)
emc - The entity mining component.public ArrayList<Entity> getEntities()
public void setEntities(ArrayList<Entity> entities)
entities - The entities.public int computeLevenshteinDistance(CharSequence str1, CharSequence str2)
str1 - The first word.str2 - The second word.public ArrayList<Triple> retrieveTriples(String templateQueryFile, String endpoint, String uri, String languageCode) throws IOException
templateQueryFile - The template query for retrieving triples.endpoint - The endpoint of a knowledge baseuri - An entity's URI.languageCode - The ISO code of a language.IOExceptionpublic ArrayList<Triple> getAssociations()
Copyright © 2014. All rights reserved.