org.nnsoft.sameas4j
Interface SameAsService


public interface SameAsService

It models the methods that a sameas.org client must expose.


Method Summary
 EquivalenceList getDuplicates(String keyword)
          It returns a list of Equivalence objects identifying equivalent URI for every possible co-reference match.
 Equivalence getDuplicates(URI uri)
          It returns a set of URI identifying equivalent resources to the input URI.
 void setCache(Cache cache)
           
 

Method Detail

getDuplicates

Equivalence getDuplicates(URI uri)
                          throws SameAsServiceException
It returns a set of URI identifying equivalent resources to the input URI.

Parameters:
uri - the URI for which the equivalence has to be known.
Returns:
the URI equivalence.
Throws:
SameAsServiceException - if an HTTP or JSON parse error occurs.

getDuplicates

EquivalenceList getDuplicates(String keyword)
                              throws SameAsServiceException
It returns a list of Equivalence objects identifying equivalent URI for every possible co-reference match. See also the official SameAs.org documentation.

Parameters:
keyword - the keyword for which the equivalence has to be known.
Returns:
a list of possible equivalences.
Throws:
SameAsServiceException - if an HTTP or JSON parse error occurs.

setCache

void setCache(Cache cache)
Parameters:
cache -


Copyright © 2009-2012 99 Software Foundation. All Rights Reserved.