com.franz.ag
Class RDFManifestSerializer
java.lang.Object
com.franz.ag.AllegroGraphSerializer
com.franz.ag.RDFManifestSerializer
- public class RDFManifestSerializer
- extends com.franz.ag.AllegroGraphSerializer
The RDF Manifest serializer is described in more detail in the
AllegroGraph Reference Guide for Lisp users
as the serialize-rdf-manifest function.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDFManifestSerializer
public RDFManifestSerializer()
isSingleStream
public boolean isSingleStream()
- Returns:
- the singleStream
setSingleStream
public void setSingleStream(boolean singleStream)
- Parameters:
singleStream
- the singleStream to set
isVerbose
public boolean isVerbose()
- Returns:
- the verbose
setVerbose
public void setVerbose(boolean verbose)
- Parameters:
verbose
- the verbose to set
run
public java.lang.Object run(AllegroGraph source)
throws AllegroGraphException
- Serialize all the triples in a triple store.
- Parameters:
source
- The AllegroGraph instance to be serialized.
- Returns:
- The string containing the serialization if destination is null,
or null if the destination is a file.
- Throws:
AllegroGraphException
run
public java.lang.Object run(Cursor source)
throws AllegroGraphException
- Serialize all the triples collected by a cursor.
- Parameters:
source
- The Cursor instance to be serialized.
- Returns:
- The string containing the serialization if destination is null,
or null if the destination is a file.
- Throws:
AllegroGraphException
getDestination
public java.lang.String getDestination()
- Returns:
- the destination
setDestination
public void setDestination(java.lang.String destination)
- Parameters:
destination
- Null to serialize to a string, or a string containing the pathname
of the destination file or folder.
getResult
public java.lang.Object getResult()
- Returns:
- the result
getSource
public java.lang.Object getSource()
- Returns:
- the source