public class RDFTopicMapWriter extends Object implements TopicMapWriterIF
Modifier and Type | Field and Description |
---|---|
protected Predicate |
filter |
protected org.apache.jena.rdfxml.xmlinput.StatementHandler |
handler |
protected org.apache.jena.rdf.model.Model |
model |
protected Map |
namepreds |
protected Map |
preferred_roles |
protected boolean |
preserve_reification |
protected boolean |
preserve_scope |
static String |
PROPERTY_FILTER |
static String |
PROPERTY_PRESERVE_REIFICATION |
static String |
PROPERTY_PRESERVE_SCOPE |
protected Writer |
writer |
Constructor and Description |
---|
RDFTopicMapWriter(org.apache.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(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(OutputStream stream,
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(org.apache.jena.rdfxml.xmlinput.StatementHandler handler)
PUBLIC: Creates a writer that writes the RDF representation to the
given StatementHandler.
|
RDFTopicMapWriter(Writer writer)
PUBLIC: Creates a writer that writes the RDF representation to
the given OutputStream serialized to RDF/XML.
|
Modifier and Type | Method and Description |
---|---|
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 |
setAdditionalProperties(Map<String,Object> properties)
Sets additional properties for the RDFTopicMapWriter.
|
void |
setFilter(Predicate 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.
|
public static final String PROPERTY_PRESERVE_REIFICATION
public static final String PROPERTY_PRESERVE_SCOPE
public static final String PROPERTY_FILTER
protected org.apache.jena.rdfxml.xmlinput.StatementHandler handler
protected org.apache.jena.rdf.model.Model model
protected Writer writer
protected Map namepreds
protected Map preferred_roles
protected boolean preserve_scope
protected boolean preserve_reification
protected Predicate filter
public RDFTopicMapWriter(org.apache.jena.rdfxml.xmlinput.StatementHandler handler)
public RDFTopicMapWriter(OutputStream stream) throws IOException
IOException
public RDFTopicMapWriter(OutputStream stream, String encoding) throws IOException
IOException
public RDFTopicMapWriter(Writer writer)
public RDFTopicMapWriter(org.apache.jena.rdf.model.Model model)
public void setPreserveScope(boolean preserve_scope)
public boolean getPreserveScope()
public void setPreserveReification(boolean preserve_reification)
public boolean getPreserveReification()
public void setFilter(Predicate 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)
public void setAdditionalProperties(Map<String,Object> properties)
setPreserveReification(boolean)
setPreserveScope(boolean)
#setFilter(net.ontopia.utils.DeciderIF)
setAdditionalProperties
in interface TopicMapWriterIF
properties
-