|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.topicmaps.utils.rdf.RDFTopicMapWriter
public class RDFTopicMapWriter
PUBLIC: A topic map writer that can convert topic maps to RDF. The conversion may result in an RDF event stream, an RDF model, or RDF serialized into the RDF/XML format.
Constructor Summary | |
---|---|
RDFTopicMapWriter(com.hp.hpl.jena.rdf.model.Model model)
PUBLIC: Creates a writer that builds an RDF representation of the topic map in the given Jena RDF model. |
|
RDFTopicMapWriter(java.io.OutputStream stream)
PUBLIC: Creates a writer that writes the RDF representation to the given OutputStream serialized to RDF/XML and using the UTF-8 character encoding. |
|
RDFTopicMapWriter(com.hp.hpl.jena.rdf.arp.StatementHandler handler)
PUBLIC: Creates a writer that writes the RDF representation to the given StatementHandler. |
|
RDFTopicMapWriter(java.io.Writer writer)
PUBLIC: Creates a writer that writes the RDF representation to the given OutputStream serialized to RDF/XML. |
Method Summary | |
---|---|
boolean |
getPreserveReification()
PUBLIC: Returns true if the writer will use RDF reification to preserve reification in the topic map. |
boolean |
getPreserveScope()
PUBLIC: Returns true if the writer will use RDF reification to preserve the scopes in the topic map. |
void |
setFilter(DeciderIF filter)
PUBLIC: Sets the filter that decides which topic map constructs are accepted and exported. |
void |
setPreserveReification(boolean preserve_reification)
PUBLIC: Controls whether the writer will use RDF reification to preserve reification in the topic map. |
void |
setPreserveScope(boolean preserve_scope)
PUBLIC: Controls whether the writer will use RDF reification to preserve the scopes in the topic map. |
void |
write(TopicMapIF topicmap)
PUBLIC: Writes the given topic map to an implicit implementation dependent destination. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RDFTopicMapWriter(com.hp.hpl.jena.rdf.arp.StatementHandler handler)
public RDFTopicMapWriter(java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
public RDFTopicMapWriter(java.io.Writer writer)
public RDFTopicMapWriter(com.hp.hpl.jena.rdf.model.Model model)
Method Detail |
---|
public void setFilter(DeciderIF filter)
filter
- Places constraints on individual topicmap constructs.public void setPreserveScope(boolean preserve_scope)
public boolean getPreserveScope()
public void setPreserveReification(boolean preserve_reification)
public boolean getPreserveReification()
public void write(TopicMapIF topicmap)
TopicMapWriterIF
write
in interface TopicMapWriterIF
topicmap
- The topic map to be exported/written;
an object implementing TopicMapIF
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |