com.franz.ag
Class RDFN3Serializer
java.lang.Object
com.franz.ag.AllegroGraphSerializer
com.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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDFN3Serializer
public RDFN3Serializer()
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