|
Project Information
Links
|
What is this?SameAs4J is a tiny and lightweight library that allows you to integrate the http://sameas.org service in your Semantic Web Java application. Before you codeSet the sameas4j Maven repositoryAdd to your project pom.xml the following repository: <repository>
<id>sameas-4j-googlecode</id>
<url>http://asmx-sameas4j.googlecode.com/svn/repo</url>
</repository>Add the dependency to your pom.xmlAdd to your project pom.xml a dependency to sameas4j <dependency>
<groupId>org.sameas</groupId>
<artifactId>sameas4j</artifactId>
<version>1.0</version>
</dependency>Use it!Just use the factory to instantiate the client: SameAsService service = DefaultSameAsServiceFactory
.getService(SameAsService.class);and then call it to retrieve equivalent URIs for a Linked Data resource: Equivalence equivalence = service
.getDuplicates(new URI("http://dbpedia.org/resource/Mogwai"));Check the Java doc and have fun! |