de.fuberlin.wiwiss.ng4j.swp.c14n
Class RDFC14NImpl

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.swp.c14n.RDFC14NImpl

public class RDFC14NImpl
extends Object


Field Summary
static String C14N
           
static Node C14N_TRUE
           
static Node TILDE
           
static Node X
           
 
Constructor Summary
RDFC14NImpl(File rdffile, String base)
          Will create AND immediately canonize the graph
RDFC14NImpl(InputStream rdfStream, String base)
          Will create AND immediately canonize the graph
RDFC14NImpl(Model model)
           
RDFC14NImpl(String rdf, String base)
          Will create AND immediately canonize the graph
 
Method Summary
 ArrayList getCanonicalStringsArray()
          This function will return an array list with a sequence of strings forming the canonical reppresentation of the RDF that was fed each string reppresent a triple and by joining them in the given order the result can be used as needed for example in digital signatures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TILDE

public static final Node TILDE

C14N_TRUE

public static final Node C14N_TRUE

C14N

public static final String C14N
See Also:
Constant Field Values

X

public static final Node X
Constructor Detail

RDFC14NImpl

public RDFC14NImpl(String rdf,
                   String base)
            throws FileNotFoundException
Will create AND immediately canonize the graph

Parameters:
rdf - the RDF file in RDF/XML
base - see Jena model.read() documentation
Throws:
FileNotFoundException

RDFC14NImpl

public RDFC14NImpl(InputStream rdfStream,
                   String base)
Will create AND immediately canonize the graph

Parameters:
rdf - the RDF inputstream in RDF/XML
base - see Jena model.read() documentation

RDFC14NImpl

public RDFC14NImpl(File rdffile,
                   String base)
            throws FileNotFoundException
Will create AND immediately canonize the graph

Parameters:
rdf - the RDF File (must be RDF/XML)
base - see Jena model.read() documentation
Throws:
FileNotFoundException

RDFC14NImpl

public RDFC14NImpl(Model model)
Method Detail

getCanonicalStringsArray

public ArrayList getCanonicalStringsArray()
This function will return an array list with a sequence of strings forming the canonical reppresentation of the RDF that was fed each string reppresent a triple and by joining them in the given order the result can be used as needed for example in digital signatures.

Returns:
the canonical string list.