public class ErrorFixingSameAsRetriever extends Object implements SameAsRetriever
SameAsRetriever is used to fix common problems with URIs, e.g.,
if a URI has the domain en.dbpedia.org (which is not existing) a
URI with the correct domain (dbpedia.org) is added.| Constructor and Description |
|---|
ErrorFixingSameAsRetriever() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSameURIs(Set<String> uris) |
Set<String> |
retrieveSameURIs(String uri)
Returns a Set containing the URIs having a sameAs link to this URI or
null if no such URIs could be found.
|
Set<String> |
retrieveSameURIs(String domain,
String uri)
Returns a Set containing the URIs having a sameAs link to this URI or
null if no such URIs could be found.
|
public Set<String> retrieveSameURIs(String uri)
SingleUriSameAsRetrieverretrieveSameURIs in interface SingleUriSameAsRetrieveruri - the URI for which sameAs links should be discoveredpublic void addSameURIs(Set<String> uris)
addSameURIs in interface SameAsRetrieverpublic Set<String> retrieveSameURIs(String domain, String uri)
SingleUriSameAsRetrieverretrieveSameURIs in interface SingleUriSameAsRetrieverdomain - the domain of the URIuri - the URI for which sameAs links should be discoveredCopyright © 2014–2017. All rights reserved.