The
FRODO
rdf2java Tool
Description
The FRODO rdf2java tool allows RDF files to be imported into Java and Java
objects to be exported to RDF files. Instead of defining an RDF Schema,
simple Java classes serve this purpose (similar to the JavaBeans mechanism,
put
and get methods are used). The Java reflection API is then used
to directly serialize and deserialize Java objects. See the RuleML and TRIPLE
examples included in the distribution for further reference.
A newer version of rdf2java (with lots of new features) can be
found here.
Usage
-
the classpath must include the src directory (from the rdf2java.tar.gz
file) and the rdf-api-<version>.jar
-
java dfki.rdf.utils.RDFImport <rdf file> <namespace> <package>
objects which are instances of classes in the specified namespace are
mapped into classes in the specified Java package; all created objects
are shown
-
java dfki.rdf.ruleml.RDF2RuleML <ruleml rdf file>
specialized version for RuleML; see the sample RuleML
RDF file; the RuleML program is shown in PROLOG syntax and a new
RDF file is written containing the RDF-serialized rulebase(s).
Download
-
latest version:
- old versions:
You also need to download the rdf-api from here.
Applications