org.deri.wsmo4j.io.serializer.rdf
Class WsmlRdfSerializer

java.lang.Object
  extended by org.deri.wsmo4j.io.serializer.rdf.WsmlRdfSerializer
All Implemented Interfaces:
org.wsmo.wsml.Serializer

public class WsmlRdfSerializer
extends Object
implements org.wsmo.wsml.Serializer

XML serializer of WSMO object (check wsml-xml-syntax.xsd)

Author:
not attributable

Field Summary
protected  boolean axiomAsTriple
           
static String DC_RELATION
           
static String RDF_AXIOMS
           
static String RDF_AXIOMS_PART
           
static String RDF_AXIOMS_TRIPLE
           
static Integer RDF_SERIALIZER_N3
           
static Integer RDF_SERIALIZER_NTRIPLES
           
static Integer RDF_SERIALIZER_TURTLE
           
static String RDF_SERIALIZER_TYPE
           
static Integer RDF_SERIALIZER_XML
           
 
Fields inherited from interface org.wsmo.wsml.Serializer
SERIALIZER_LE_SERIALIZER
 
Constructor Summary
WsmlRdfSerializer(Map map)
          Constructor should not be invoked directly.
 
Method Summary
 org.openrdf.model.ValueFactory getFactory()
           
 org.openrdf.rio.RdfDocumentWriter getWriter()
           
 void serialize(org.wsmo.common.TopEntity[] item, StringBuffer target)
          Serialize array of top entities to XML
 void serialize(org.wsmo.common.TopEntity[] item, StringBuffer target, Map options)
          Serialize array of top entities to XML
 void serialize(org.wsmo.common.TopEntity[] item, Writer target)
          Serialize array of top entities to XML
 void serialize(org.wsmo.common.TopEntity[] item, Writer target, Map options)
          Serialize array of top entities to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RDF_SERIALIZER_TYPE

public static final String RDF_SERIALIZER_TYPE
See Also:
Constant Field Values

RDF_SERIALIZER_N3

public static final Integer RDF_SERIALIZER_N3

RDF_SERIALIZER_NTRIPLES

public static final Integer RDF_SERIALIZER_NTRIPLES

RDF_SERIALIZER_XML

public static final Integer RDF_SERIALIZER_XML

RDF_SERIALIZER_TURTLE

public static final Integer RDF_SERIALIZER_TURTLE

RDF_AXIOMS

public static final String RDF_AXIOMS
See Also:
Constant Field Values

RDF_AXIOMS_TRIPLE

public static final String RDF_AXIOMS_TRIPLE
See Also:
Constant Field Values

RDF_AXIOMS_PART

public static final String RDF_AXIOMS_PART
See Also:
Constant Field Values

DC_RELATION

public static final String DC_RELATION
See Also:
Constant Field Values

axiomAsTriple

protected boolean axiomAsTriple
Constructor Detail

WsmlRdfSerializer

public WsmlRdfSerializer(Map map)
Constructor should not be invoked directly. Map properties = new TreeMap(); properties.put(Factory.PROVIDER_CLASS, "com.ontotext.wsmo4j.xmlparser.WsmlXmlSerializer"); serializer = Factory.createSerializer(properties);

Parameters:
map - All parameters are ignored
Method Detail

getFactory

public org.openrdf.model.ValueFactory getFactory()

getWriter

public org.openrdf.rio.RdfDocumentWriter getWriter()

serialize

public void serialize(org.wsmo.common.TopEntity[] item,
                      Writer target)
               throws IOException
Serialize array of top entities to XML

Specified by:
serialize in interface org.wsmo.wsml.Serializer
Parameters:
item - Entities to serialize
target - Output
Throws:
IOException

serialize

public void serialize(org.wsmo.common.TopEntity[] item,
                      Writer target,
                      Map options)
               throws IOException
Serialize array of top entities to XML

Specified by:
serialize in interface org.wsmo.wsml.Serializer
Parameters:
item - Entities to serialize
target - Output
options - Ignored
Throws:
IOException

serialize

public void serialize(org.wsmo.common.TopEntity[] item,
                      StringBuffer target)
Serialize array of top entities to XML

Specified by:
serialize in interface org.wsmo.wsml.Serializer
Parameters:
item - Entities to serialize
target - Output

serialize

public void serialize(org.wsmo.common.TopEntity[] item,
                      StringBuffer target,
                      Map options)
Serialize array of top entities to XML

Specified by:
serialize in interface org.wsmo.wsml.Serializer
Parameters:
item - Entities to serialize
target - Output
options - Ignored


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.