info.sswap.impl.empire.model
Class RDFCSVWriter

java.lang.Object
  extended by info.sswap.impl.empire.model.RDFCSVWriter
All Implemented Interfaces:
com.hp.hpl.jena.rdf.model.RDFWriter

Deprecated.

@Deprecated
public class RDFCSVWriter
extends java.lang.Object
implements com.hp.hpl.jena.rdf.model.RDFWriter

Write the model to the output stream in Comma Separated Value (CSV) according to the fundamental RDF truism: subject, predicate, object -> row, col, value The output is exactly one row per unique subject, and one column per property instance. URIs are URLencoded to escape commas; String datatype values are quoted


Nested Class Summary
protected  class RDFCSVWriter.DataStructure
          Deprecated.  
protected  class RDFCSVWriter.MaxPropertyInstances
          Deprecated. The maximum number of instances of predicate (a subject with a property instance and a value) across all subjects.
protected  class RDFCSVWriter.NameMapper
          Deprecated. Map names via re-writing rules: * blank nodes get mapped to simpler names; e.g., _:b1, _:b2, etc.
protected  class RDFCSVWriter.SortedPredicates
          Deprecated. Key: predicate URI as a string Value: array of values for each property instance of the predicate (for a subject) TreeMap sort order must agree with MaxPropertyInstances
protected  class RDFCSVWriter.SortedRows
          Deprecated. Key: subject URI or blank node id as a string Value: data structure of predicates for that subject
protected  class RDFCSVWriter.Values
          Deprecated. An array of values (for a predicate)
 
Field Summary
protected  java.lang.String CHARSET
          Deprecated. Default charset for URLEncoding
private  java.lang.String DELIMITER_ENC
          Deprecated.  
protected  java.lang.String DELIMITER_STR
          Deprecated. Default field delimiter
private  com.hp.hpl.jena.rdf.model.RDFErrorHandler rdfErrorHandler
          Deprecated.  
 
Fields inherited from interface com.hp.hpl.jena.rdf.model.RDFWriter
NSPREFIXPROPBASE
 
Constructor Summary
RDFCSVWriter()
          Deprecated.  
 
Method Summary
protected  RDFCSVWriter.DataStructure makeDataStructure(com.hp.hpl.jena.rdf.model.Model model)
          Deprecated. The data structure for a RDF model is: a map of "rows", where the key to each row is a (unique) RDF subject; each subject points to a map of (unique) predicates; each predicate points to a list of (possibly non-unique) values
 com.hp.hpl.jena.rdf.model.RDFErrorHandler setErrorHandler(com.hp.hpl.jena.rdf.model.RDFErrorHandler rdfErrorHandler)
          Deprecated.  
 java.lang.Object setProperty(java.lang.String arg0, java.lang.Object arg1)
          Deprecated. No properties are currently supported.
 void write(com.hp.hpl.jena.rdf.model.Model model, java.io.OutputStream outputStream, java.lang.String base)
          Deprecated.  
 void write(com.hp.hpl.jena.rdf.model.Model model, java.io.Writer writer, java.lang.String base)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELIMITER_STR

protected final java.lang.String DELIMITER_STR
Deprecated. 
Default field delimiter

See Also:
Constant Field Values

DELIMITER_ENC

private java.lang.String DELIMITER_ENC
Deprecated. 

CHARSET

protected final java.lang.String CHARSET
Deprecated. 
Default charset for URLEncoding

See Also:
Constant Field Values

rdfErrorHandler

private com.hp.hpl.jena.rdf.model.RDFErrorHandler rdfErrorHandler
Deprecated. 
Constructor Detail

RDFCSVWriter

public RDFCSVWriter()
Deprecated. 
Method Detail

setErrorHandler

public com.hp.hpl.jena.rdf.model.RDFErrorHandler setErrorHandler(com.hp.hpl.jena.rdf.model.RDFErrorHandler rdfErrorHandler)
Deprecated. 
Specified by:
setErrorHandler in interface com.hp.hpl.jena.rdf.model.RDFWriter

setProperty

public java.lang.Object setProperty(java.lang.String arg0,
                                    java.lang.Object arg1)
Deprecated. 
No properties are currently supported.

Specified by:
setProperty in interface com.hp.hpl.jena.rdf.model.RDFWriter

write

public void write(com.hp.hpl.jena.rdf.model.Model model,
                  java.io.Writer writer,
                  java.lang.String base)
Deprecated. 
Specified by:
write in interface com.hp.hpl.jena.rdf.model.RDFWriter

write

public void write(com.hp.hpl.jena.rdf.model.Model model,
                  java.io.OutputStream outputStream,
                  java.lang.String base)
Deprecated. 
Specified by:
write in interface com.hp.hpl.jena.rdf.model.RDFWriter

makeDataStructure

protected RDFCSVWriter.DataStructure makeDataStructure(com.hp.hpl.jena.rdf.model.Model model)
Deprecated. 
The data structure for a RDF model is: a map of "rows", where the key to each row is a (unique) RDF subject; each subject points to a map of (unique) predicates; each predicate points to a list of (possibly non-unique) values

Parameters:
model - the source RDF model to transform
Returns:
a data structure of rows and properties


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.