Package edu.lehigh.swat.bench.uba
Class StreamRDFWriter
java.lang.Object
edu.lehigh.swat.bench.uba.StreamRDFWriter
- All Implemented Interfaces:
Writer
-
Constructor Summary
ConstructorsConstructorDescriptionStreamRDFWriter(org.apache.jena.riot.system.StreamRDF stream, Generator generator) -
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.
-
Constructor Details
-
StreamRDFWriter
-
-
Method Details
-
start
public void start()Description copied from interface:WriterCalled when starting data generation. -
end
public void end()Description copied from interface:WriterCalled when finish data generation. -
startFile
Description copied from interface:WriterStarts file writing. -
endFile
public void endFile()Description copied from interface:WriterFinishes the current file. -
startSection
Description copied from interface:WriterStarts a section for the specified instance.- Specified by:
startSectionin interfaceWriter- Parameters:
classType- Type of the instance.id- Id of the instance.
-
startAboutSection
Description copied from interface:WriterStarts a section for the specified instance identified by an rdf:about attribute.- Specified by:
startAboutSectionin interfaceWriter- Parameters:
classType- Type of the instance.id- Id of the instance.
-
endSection
public void endSection(int classType) Description copied from interface:WriterFinishes the current section.- Specified by:
endSectionin interfaceWriter- Parameters:
classType- Type of the current instance.
-
addProperty
Description copied from interface:WriterAdds the specified property statement for the current element.- Specified by:
addPropertyin interfaceWriter- 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
Description copied from interface:WriterAdds a property statement for the current element whose value is an individual.- Specified by:
addPropertyin interfaceWriter- Parameters:
property- Type of the property.valueClass- Type of the individual.valueId- Id of the individual.
-