|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.impl.empire.model.RDFCSVWriter
@Deprecated public class RDFCSVWriter
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 |
---|
protected final java.lang.String DELIMITER_STR
private java.lang.String DELIMITER_ENC
protected final java.lang.String CHARSET
private com.hp.hpl.jena.rdf.model.RDFErrorHandler rdfErrorHandler
Constructor Detail |
---|
public RDFCSVWriter()
Method Detail |
---|
public com.hp.hpl.jena.rdf.model.RDFErrorHandler setErrorHandler(com.hp.hpl.jena.rdf.model.RDFErrorHandler rdfErrorHandler)
setErrorHandler
in interface com.hp.hpl.jena.rdf.model.RDFWriter
public java.lang.Object setProperty(java.lang.String arg0, java.lang.Object arg1)
setProperty
in interface com.hp.hpl.jena.rdf.model.RDFWriter
public void write(com.hp.hpl.jena.rdf.model.Model model, java.io.Writer writer, java.lang.String base)
write
in interface com.hp.hpl.jena.rdf.model.RDFWriter
public void write(com.hp.hpl.jena.rdf.model.Model model, java.io.OutputStream outputStream, java.lang.String base)
write
in interface com.hp.hpl.jena.rdf.model.RDFWriter
protected RDFCSVWriter.DataStructure makeDataStructure(com.hp.hpl.jena.rdf.model.Model model)
model
- the source RDF model to transform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |