com.franz.ag
Class RDFN3Serializer

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

public class RDFN3Serializer
extends com.franz.ag.AllegroGraphSerializer

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


Constructor Summary
RDFN3Serializer()
           
 
Method Summary
 java.lang.String getDestination()
           
 java.lang.Object getIfDoesNotExist()
           
 java.lang.Object getIfExists()
           
 int getIndent()
           
 java.lang.Object getResult()
           
 java.lang.Object getSource()
           
 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 setIfDoesNotExist(java.lang.String ifDoesNotExist)
           
 void setIfExists(java.lang.String ifExists)
           
 void setIndent(int indent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFN3Serializer

public RDFN3Serializer()
Method Detail

getIfDoesNotExist

public java.lang.Object 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.Object 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

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