public interface ISerializer
| Modifier and Type | Method and Description |
|---|---|
void |
addStatement(String subject,
String predicate,
String object,
double confidence)
Adds a triple to the buffer of the serializer.
|
boolean |
close()
Closes the output file
|
File |
getFile(String fileName)
Method to open the file with the specific name
|
String |
getFileExtension() |
String |
getName() |
boolean |
open(String file)
Opens the output file
|
void |
printStatement(String subject,
String predicate,
String object,
double confidence)
Prints a triple in a file.
|
void |
setFolderPath(File folder)
Method to set the folder where Serializations should be saved to.
|
void |
setPrefixes(Map<String,String> prefixes)
Sets the prefixes to be used in the file.
|
void |
writeToFile(AMapping m,
String predicate,
String file)
Writes the whole results of a mapping to a file
|
void writeToFile(AMapping m, String predicate, String file)
m - Mapping computed by an organizerpredicate - of the mappingfile - Output file, where the results are to be writtenvoid setPrefixes(Map<String,String> prefixes)
prefixes - List of prefixes to usevoid printStatement(String subject, String predicate, String object, double confidence)
subject - The subject of the triplepredicate - The predicate of the tripleobject - The object of the tripleconfidence - valuevoid addStatement(String subject, String predicate, String object, double confidence)
subject - The subject of the triplepredicate - The predicate of the tripleobject - The object of the tripleconfidence - valueboolean close()
boolean open(String file)
file - Path to the file in which the output is to be writtenString getName()
String getFileExtension()
File getFile(String fileName)
fileName - stringvoid setFolderPath(File folder)
folder - File which points to the folder to serialize within.Copyright © 2018. All rights reserved.