com.franz.ag
Class RDFSerializer

java.lang.Object
  extended bycom.franz.ag.AllegroGraphSerializer
      extended bycom.franz.ag.RDFSerializer

public class RDFSerializer
extends com.franz.ag.AllegroGraphSerializer

The RDF serializer is described in more detail in the AllegroGraph Reference Guide for Lisp users as the serialize-rdf/xml function.


Constructor Summary
RDFSerializer()
           
 
Method Summary
 java.lang.String getDestination()
           
 java.lang.String getIfDoesNotExist()
           
 java.lang.String getIfExists()
           
 int getIndent()
           
 java.lang.Object getResult()
           
 java.lang.Object getSource()
           
 boolean isErrorOnInvalid()
           
 boolean isMemoizeAbbrevLookups()
           
 boolean isNest()
           
 boolean isOutputTypes()
           
 boolean isPrepareNamespaces()
           
 java.lang.Object run(AllegroGraph source)
          Serialize all the triples in a triple store.
 java.lang.Object run(Cursor source)
          Serialize all the triples collected by a cursor.
 void setDestination(java.lang.String destination)
           
 void setErrorOnInvalid(boolean errorOnInvalid)
           
 void setIfDoesNotExist(java.lang.String ifDoesNotExist)
           
 void setIfExists(java.lang.String ifExists)
           
 void setIndent(int indent)
           
 void setMemoizeAbbrevLookups(boolean memoizeAbbrevLookups)
           
 void setNest(boolean nest)
           
 void setOutputTypes(boolean outputTypes)
           
 void setPrepareNamespaces(boolean prepareNamespaces)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFSerializer

public RDFSerializer()
Method Detail

isErrorOnInvalid

public boolean isErrorOnInvalid()
Returns:
the errorOnInvalid

setErrorOnInvalid

public void setErrorOnInvalid(boolean errorOnInvalid)
Parameters:
errorOnInvalid - the errorOnInvalid to set

getIfDoesNotExist

public java.lang.String getIfDoesNotExist()
Returns:
the ifDoesNotExist

setIfDoesNotExist

public void setIfDoesNotExist(java.lang.String ifDoesNotExist)
Parameters:
ifDoesNotExist - the ifDoesNotExist to set. The allowed values are "create" or "error". The default is "create".

getIfExists

public java.lang.String getIfExists()
Returns:
the ifExists

setIfExists

public void setIfExists(java.lang.String ifExists)
Parameters:
ifExists - the ifExists to set. The valid values are "error", "supersede", or "append. The default is "error".

getIndent

public int getIndent()
Returns:
the indent

setIndent

public void setIndent(int indent)
Parameters:
indent - the indent to set

isMemoizeAbbrevLookups

public boolean isMemoizeAbbrevLookups()
Returns:
the memoizeAbbrevLookups

isNest

public boolean isNest()
Returns:
the nest

setNest

public void setNest(boolean nest)
Parameters:
nest - the nest to set

isOutputTypes

public boolean isOutputTypes()
Returns:
the outputTypes

setOutputTypes

public void setOutputTypes(boolean outputTypes)
Parameters:
outputTypes - the outputTypes to set

isPrepareNamespaces

public boolean isPrepareNamespaces()
Returns:
the prepareNamespaces

setPrepareNamespaces

public void setPrepareNamespaces(boolean prepareNamespaces)
Parameters:
prepareNamespaces - the prepareNamespaces to set

setMemoizeAbbrevLookups

public void setMemoizeAbbrevLookups(boolean memoizeAbbrevLookups)
Parameters:
memoizeAbbrevLookups - the memoizeAbbrevLookups 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