Package edu.lehigh.swat.bench.uba
Interface Writer
- All Known Implementing Classes:
StreamRDFWriter
public interface Writer
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(int property, int valueClass, String valueId) Adds a property statement for the current element whose value is an individual.voidaddProperty(int property, String value, boolean isResource) Adds the specified property statement for the current element.voidend()Called when finish data generation.voidendFile()Finishes the current file.voidendSection(int classType) Finishes the current section.voidstart()Called when starting data generation.voidstartAboutSection(int classType, String id) Starts a section for the specified instance identified by an rdf:about attribute.voidStarts file writing.voidstartSection(int classType, String id) Starts a section for the specified instance.
-
Method Details
-
start
void start()Called when starting data generation. -
end
void end()Called when finish data generation. -
startFile
Starts file writing.- Parameters:
fileName- File name.
-
endFile
void endFile()Finishes the current file. -
startSection
Starts a section for the specified instance.- Parameters:
classType- Type of the instance.id- Id of the instance.
-
startAboutSection
Starts a section for the specified instance identified by an rdf:about attribute.- Parameters:
classType- Type of the instance.id- Id of the instance.
-
endSection
void endSection(int classType) Finishes the current section.- Parameters:
classType- Type of the current instance.
-
addProperty
Adds the specified property statement for the current element.- Parameters:
property- Type of the property.value- Property value.isResource- Indicates if the property value is an rdf resource (True), or it is literal (False).
-
addProperty
Adds a property statement for the current element whose value is an individual.- Parameters:
property- Type of the property.valueClass- Type of the individual.valueId- Id of the individual.
-