|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.utils.rdf.RDFTopicMapReader
public class RDFTopicMapReader
PUBLIC: Converts an RDF model to a topic map using a schema-specific mapping defined using RDF. The mapping is taken from the RDF model unless a different model is specifically indicated to contain the mapping.
Field Summary | |
---|---|
protected boolean |
duplicate_suppression
|
protected boolean |
generate_names
|
protected java.lang.String |
infileurl
|
protected boolean |
lenient
|
protected java.lang.String |
mappingsyntax
|
protected java.lang.String |
mappingurl
|
protected java.lang.String |
syntax
|
Constructor Summary | |
---|---|
RDFTopicMapReader(java.io.File infile)
PUBLIC: Creates a reader that will read RDF/XML from the given file. |
|
RDFTopicMapReader(java.io.File infile,
java.lang.String syntax)
PUBLIC: Creates a reader that will read RDF from the given file in the indicated syntax. |
|
RDFTopicMapReader(LocatorIF url)
PUBLIC: Creates a topic map reader bound to the URL given in the arguments. |
|
RDFTopicMapReader(LocatorIF url,
java.lang.String syntax)
PUBLIC: Creates a topic map reader bound to the URL given in the arguments. |
|
RDFTopicMapReader(java.lang.String infileurl)
PUBLIC: Creates a reader that will read RDF/XML from the given URL. |
|
RDFTopicMapReader(java.lang.String infileurl,
java.lang.String syntax)
PUBLIC: Creates a reader that will read RDF from the given URL in the indicated syntax. |
Method Summary | |
---|---|
void |
importInto(TopicMapIF topicmap)
PUBLIC: Imports an implicitly designated topic map into the given topic map. |
TopicMapIF |
read()
PUBLIC: Reads the next topic map available from some implicit, implementation dependent source. |
java.util.Collection |
readAll()
PUBLIC: Reads all the topic map available from some implicit, implementation dependent source. |
void |
setDuplicateSuppression(boolean duplicate_suppression)
PUBLIC: Tells the reader whether or not to perform duplicate suppression at the end of the import. |
void |
setGenerateNames(boolean generate_names)
PUBLIC: Controls whether or not to automatically generate names for nameless topics from their subject indicators. |
void |
setLenient(boolean lenient)
PUBLIC: Tells the reader whether or not to stop when errors are found in the mapping. |
void |
setMappingFile(java.io.File mappingfile)
PUBLIC: Sets the file from which the reader will read the RDF-to-topic map mapping definition. |
void |
setMappingFile(java.io.File mappingfile,
java.lang.String syntax)
PUBLIC: Sets the file from which the reader will read the RDF-to-topic map mapping definition. |
void |
setMappingURL(java.lang.String url)
PUBLIC: Sets the URL from which the reader will read the RDF-to-topic map mapping definition. |
void |
setMappingURL(java.lang.String url,
java.lang.String syntax)
PUBLIC: Sets the URL from which the reader will read the RDF-to-topic map mapping definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String infileurl
protected java.lang.String syntax
protected java.lang.String mappingurl
protected java.lang.String mappingsyntax
protected boolean duplicate_suppression
protected boolean generate_names
protected boolean lenient
Constructor Detail |
---|
public RDFTopicMapReader(java.io.File infile)
public RDFTopicMapReader(LocatorIF url)
url
- The URL of the topic map document.public RDFTopicMapReader(LocatorIF url, java.lang.String syntax)
url
- The URL of the topic map document.syntax
- The RDF syntax to use. Possible values are "RDF/XML", "N3",
"N-TRIPLE". If the value is null it defaults to "RDF/XML".public RDFTopicMapReader(java.io.File infile, java.lang.String syntax)
syntax
- The RDF syntax to use. Possible values are "RDF/XML", "N3",
"N-TRIPLE". If the value is null it defaults to "RDF/XML".public RDFTopicMapReader(java.lang.String infileurl)
public RDFTopicMapReader(java.lang.String infileurl, java.lang.String syntax)
syntax
- The RDF syntax to use. Possible values are "RDF/XML", "N3",
"N-TRIPLE". If the value is null it defaults to "RDF/XML".Method Detail |
---|
public void setMappingFile(java.io.File mappingfile)
public void setMappingFile(java.io.File mappingfile, java.lang.String syntax)
syntax
- The RDF syntax to use. Possible values are "RDF/XML", "N3",
"N-TRIPLE". If the value is null it defaults to "RDF/XML".public void setMappingURL(java.lang.String url)
public void setMappingURL(java.lang.String url, java.lang.String syntax)
syntax
- The RDF syntax to use. Possible values are "RDF/XML", "N3",
"N-TRIPLE". If the value is null it defaults to "RDF/XML".public void setGenerateNames(boolean generate_names)
public void setDuplicateSuppression(boolean duplicate_suppression)
public void setLenient(boolean lenient)
public TopicMapIF read() throws java.io.IOException
TopicMapReaderIF
null
is returned when there are no more
topic maps available. In a sense this is iterator-like
behaviour.
read
in interface TopicMapReaderIF
java.io.IOException
- Thrown if reading the source fails.public java.util.Collection readAll() throws java.io.IOException
TopicMapReaderIF
readAll
in interface TopicMapReaderIF
java.io.IOException
- Thrown if reading the source fails.public void importInto(TopicMapIF topicmap) throws java.io.IOException
TopicMapImporterIF
importInto
in interface TopicMapImporterIF
topicmap
- The topic map into which the import will be done;
an object implementing TopicMapIF.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |