public class TabSeparatedSerializer extends NtSerializer
| Modifier and Type | Field and Description |
|---|---|
protected String |
seperator |
folder, prefixMap, statements, writer| Constructor and Description |
|---|
TabSeparatedSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatement(String subject,
String predicate,
String object,
double similarity)
Adds a triple to the buffer of the serializer.
|
String |
getFileExtension() |
String |
getName() |
String |
getSeperator() |
void |
printStatement(String subject,
String predicate,
String object,
double similarity)
Writes in the file statement by statement.
|
void |
setSeperator(String seperator) |
void |
writeToFile(AMapping mapping,
String predicate,
String file)
Gets a mapping and serializes it to a file in the N3 format.
|
close, expand, flush, getFile, open, printPrefixes, setFolderPath, setPrefixesprotected String seperator
public void addStatement(String subject, String predicate, String object, double similarity)
ISerializeraddStatement in interface ISerializeraddStatement in class NtSerializersubject - The subject of the triplepredicate - The predicate of the tripleobject - The object of the triplesimilarity - valuepublic void printStatement(String subject, String predicate, String object, double similarity)
NtSerializerprintStatement in interface ISerializerprintStatement in class NtSerializersubject - Source object of a mapping, subject of the triple to be writtenpredicate - Predicate to be writtenobject - Target object of a mapping, object of the triple to be writtensimilarity - Similarity achieved by the subject and objectpublic String getName()
getName in interface ISerializergetName in class NtSerializerpublic void writeToFile(AMapping mapping, String predicate, String file)
writeToFile in interface ISerializerwriteToFile in class NtSerializermapping - Mapping to serializepredicate - Predicate to use while serializingfile - File in which the mapping is to be serializedpublic String getFileExtension()
getFileExtension in interface ISerializergetFileExtension in class NtSerializerpublic String getSeperator()
public void setSeperator(String seperator)
seperator - to be setCopyright © 2020. All rights reserved.