|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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.
Field Summary | |
---|---|
protected DeciderIF |
filter
|
protected com.hp.hpl.jena.rdf.arp.StatementHandler |
handler
|
protected com.hp.hpl.jena.rdf.model.Model |
model
|
protected java.util.Map |
namepreds
|
protected java.util.Map |
preferred_roles
|
protected boolean |
preserve_reification
|
protected boolean |
preserve_scope
|
protected java.io.Writer |
writer
|
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(java.io.OutputStream stream,
java.lang.String encoding)
PUBLIC: Creates a writer that writes the RDF representation to the given OutputStream serialized to RDF/XML and using the given 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. |
protected void |
setup(TopicMapIF topicmap)
|
protected void |
write(AssociationIF assoc)
|
protected void |
write(TopicIF topic)
|
void |
write(TopicMapIF topicmap)
PUBLIC: Writes the given topic map to an implicit implementation dependent destination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.hp.hpl.jena.rdf.arp.StatementHandler handler
protected com.hp.hpl.jena.rdf.model.Model model
protected java.io.Writer writer
protected java.util.Map namepreds
protected java.util.Map preferred_roles
protected boolean preserve_scope
protected boolean preserve_reification
protected DeciderIF filter
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.OutputStream stream, java.lang.String encoding) 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 setPreserveScope(boolean preserve_scope)
public boolean getPreserveScope()
public void setPreserveReification(boolean preserve_reification)
public boolean getPreserveReification()
public void setFilter(DeciderIF filter)
filter
- Places constraints on individual topicmap constructs.public void write(TopicMapIF topicmap)
TopicMapWriterIF
write
in interface TopicMapWriterIF
topicmap
- The topic map to be exported/written;
an object implementing TopicMapIFprotected void write(TopicIF topic)
protected void write(AssociationIF assoc)
protected void setup(TopicMapIF topicmap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |