public class EntityCheckerManagerImpl extends Object implements EntityCheckerManager
Standard implementation of the EntityCheckerManager interface.
Internally it uses a cache for storing the results of the
EntityChecker.
registerEntityChecker(String, EntityChecker) is called while another
thread already is inside the checkMeanings(Collection) method.| Constructor and Description |
|---|
EntityCheckerManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkMarkings(Collection<? extends org.aksw.gerbil.transfer.nif.Marking> markings)
Checks the given list of
Markings for Meanings and their
existence based on the available EntityChecker. |
void |
checkMeaning(org.aksw.gerbil.transfer.nif.Meaning meaning) |
void |
checkMeanings(Collection<? extends org.aksw.gerbil.transfer.nif.Meaning> meanings)
Checks the given list of
Meanings for their existence based on
the available EntityChecker. |
boolean |
checkUri(String uri) |
protected String |
generateNewUri(String uri) |
void |
registerEntityChecker(String namespace,
EntityChecker checker)
Registers the given
EntityChecker for being used for URIs of the
given name space. |
public void registerEntityChecker(String namespace, EntityChecker checker)
EntityCheckerManagerEntityChecker for being used for URIs of the
given name space. Note that only one single EntityChecker per name space
is allowed. If a second EntityChecker is registered, the first one will
be overwritten.registerEntityChecker in interface EntityCheckerManagernamespace - URI name space for which the given checker should be used.checker - the EntityChecker that should be registered for the
given URI name space.public void checkMarkings(Collection<? extends org.aksw.gerbil.transfer.nif.Marking> markings)
EntityCheckerManagerMarkings for Meanings and their
existence based on the available EntityChecker. Only URIs are
checked which have a name space for which an EntityChecker is
available. If a URI has been identified as not existing, it is replaced
by a generated URI.checkMarkings in interface EntityCheckerManagermarkings - a List of Markings that should be checked for their
existence if they implement or contain a Meaning.public void checkMeanings(Collection<? extends org.aksw.gerbil.transfer.nif.Meaning> meanings)
EntityCheckerManagerMeanings for their existence based on
the available EntityChecker. Only URIs are checked which have a
name space for which an EntityChecker is available. If a URI has
been identified as not existing, it is replaced by a generated URI.checkMeanings in interface EntityCheckerManagermeanings - a List of Meanings that should be checked for their
existence.public void checkMeaning(org.aksw.gerbil.transfer.nif.Meaning meaning)
public boolean checkUri(String uri)
Copyright © 2014–2017. All rights reserved.