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,
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
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
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).
You also need to download the rdf-api from here.
- old versions: