Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jena
Class rdfcopy  view rdfcopy download rdfcopy.java

java.lang.Object
  extended byjena.rdfcopy

public class rdfcopy
extends java.lang.Object

A program which read an RDF model and copy it to the standard output stream.

This program will read an RDF model, in a variety of languages, and copy it to the output stream in a possibly different langauge. Input can be read either from a URL or from a file. The program writes its results to the standard output stream and sets its exit code to 0 if the program terminate normally, and to -1 if it encounters an error.

java jena.rdfcopy model [inlang [outlang]]

       model1 and model2 can be file names or URL's
       inlang and outlang specify the language of the input and output
       respectively and can be:
           RDF/XML
           N-TRIPLE
           N3
       The input language defaults to RDF/XML and the output language
       defaults to N-TRIPLE.
  

Version:
$Name: $ $Revision: 1.11 $ $Date: 2005/02/21 11:49:12 $

Constructor Summary
rdfcopy()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected static void read(com.hp.hpl.jena.rdf.model.Model model, java.lang.String in, java.lang.String lang)
           
protected static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

rdfcopy

public rdfcopy()
Method Detail

main

public static void main(java.lang.String[] args)

usage

protected static void usage()

read

protected static void read(com.hp.hpl.jena.rdf.model.Model model,
                           java.lang.String in,
                           java.lang.String lang)
                    throws java.io.FileNotFoundException