RDF2Go

From semanticweb.org

Jump to:navigation, search
RDF2Go
Logo of RDF2Go
rdf2go.semweb4j.org/
Status: stable
Last release: 4.7.3 (Feb 05, 2010)
License: BSD
Affiliation: FZI

RDF2Go is an abstraction over triple (and quad) stores. It allows developers to program against rdf2go interfaces and choose or change the implementation later easily.

Contents

[edit] About

The three main features of RDF2Go are:

RDF2GO is released under the new BSD license. Alternative licensing is possible, just ask us. The project is funded by the European projects Knowledge Web and NEPOMUK.

See also: RDF2Go on Ohloh

[edit] Modules

RDF2Go consists of several parts that together make up the distribution. The JARs are named org.semweb4j.* and the Java packages in the JARs are still named org.ontoware.* to maintain compatibility with existing deployments.

In previous versions of RDF2Go there was a YARS adapter which is no longer maintained due to lack of time. Do you want to help out? Contact us!

Note: As of RDF2Go 4.7.0 the module structure has been simplified. Only the modules listed here are relevant. Discontinued modules are still in SVN

[edit] API (rdf2go.api)

This module contains the API (interfaces and classes) as well as base implementation classes (such as AbstractModel). The module also contains utility classes running on top of any adapter, e.g., the RDFTool class developed by DFKI.

See also

The last release of the API was April 11, 2009. The API is stable and currently no changes to it are planned.

[edit] Test helper (rdf2go.impl.base.test)

The abstract base classes for tests. These need to be in their own project to keep the API jar lean and allow other projects to re-use this code for their tests. This follows Maven and OSGI packaging guidelines.


[edit] Jena Adapter (rdf2go.impl.jena24)

Implements the API and extends the impl.base classes. Delegates all calls to a Jena 2.4 model. This adapter provides only a Model implementation, no ModelSet, as Jena has no support for quads. (The new SDB or NG4J extensions have not been used due to lack of time, feel free to help out)

[edit] Jena Adapter (rdf2go.impl.jena26)

Implements the API and extends the impl.base classes. Delegates all calls to a Jena 2.6 model. This adapter provides only a Model implementation, no ModelSet, as Jena has no support for quads. (The new SDB or NG4J extensions have not been used due to lack of time, feel free to help out)

[edit] Sesame 2.3 Adapter (rdf2go.impl.sesame23)

Implements the API and extends the impl.base classes. Delegates all calls to a Sesame 2.3.1 repository. This adapter provides a Model and a ModelSet implementation.

[edit] Distribution (rdf2go.dist)

This is a simple maven project that helps to create a complete distribution. It's mainly a pom.xml file with dependencies to other rdf2go parts.

[edit] Documentation and Tutorial

Related Projects

[edit] Road Map

For future versions suggested changes are:

[edit] Contact, Feedback, Help

Acknowledgements

[edit] Who uses RDF2GO?

[edit] How to use RDF2Go as a Semantic Web developer

Example releases since version 4.3.x:

  public static void main(String[] args) throws ModelException {

	// getting model
	Model model = RDF2Go.getModelFactory().createModel();
        model.open();

	// creating URIs
	URI max = model.createURI("http://xam.de/foaf.rdf.xml#i");
	URI currentProject = model.createURI("http://xmlns.com/foaf/0.1/#term_currentProject");
	URI name = model.createURI("http://xmlns.com/foaf/0.1/#term_name");
	URI semweb4j = model.createURI("http://semweb4j.org");

	// adding a statement to the model
	model.addStatement(max, currentProject, semweb4j);
	model.addStatement(max, name, "Max Völkel");
		
	// dumping model to the screen
	model.dump();

        // query model for all names of max
        for(Statement stmt : model.getStatement(max,name, Variable.ANY) ) {
          // do something
        System.out.println( stmt.getObject() );
      }
 }

[edit] How to contribute to RDF2Go

It's a good idea to first announce on the list, what you want to do, to avoid duplicate work. Check out the latest trunk, make your changes and create a patch (in Eclipse: choose 'project' scope, not 'workspace'). Email the patch to Max Völkel and get it applied. Or even better: attach it to a JIRA bug tracker issue.

[edit] Related Work

Besides projects listed at Tripresso, the following projects are relevant:

Navigation
services
Toolbox