My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
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 code

Set the sameas4j Maven repository

Add 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.xml

Add 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!

Powered by Google Project Hosting