net.ontopia.topicmaps.utils.rdf
Class RDFPathTopicMapSource

java.lang.Object
  extended by net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
      extended by net.ontopia.topicmaps.utils.rdf.RDFPathTopicMapSource
All Implemented Interfaces:
java.io.FileFilter, TopicMapSourceIF

public class RDFPathTopicMapSource
extends AbstractPathTopicMapSource

INTERNAL: Source that locates RDF files in a directory on the file system.


Field Summary
 
Fields inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
base_address, duplicate_suppression, hidden, id, path, refmap, suffix, title
 
Constructor Summary
RDFPathTopicMapSource()
           
RDFPathTopicMapSource(java.lang.String path, java.io.FileFilter filter)
           
RDFPathTopicMapSource(java.lang.String path, java.lang.String suffix)
           
 
Method Summary
protected  TopicMapReferenceIF createReference(java.net.URL url, java.lang.String id, java.lang.String title, LocatorIF base_address)
           
 void setGenerateNames(java.lang.String yesno)
          INTERNAL: Tells the source to generate names based on their URIs for topics which are nameless after the conversion.
 void setLenient(java.lang.String yesno)
          INTERNAL: Makes the RDF reader lenient, so that it will overlook certain kinds of errors.
 void setMappingFile(java.lang.String file)
          INTERNAL: Sets the mapping file which will be used to convert the RDF files found by this source to topic maps.
 void setSyntax(java.lang.String syntax)
          INTERNAL: Sets the syntax the source will read.
 
Methods inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
accept, createReference, createTopicMap, getBase, getBaseAddress, getDuplicateSuppression, getFileFilter, getHidden, getId, getPath, getReferences, getSuffix, getTitle, refresh, refreshFromClasspath, refreshFromFilesystem, setBase, setBaseAddress, setDuplicateSuppression, setFileFilter, setHidden, setId, setPath, setSuffix, setTitle, supportsCreate, supportsDelete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFPathTopicMapSource

public RDFPathTopicMapSource()

RDFPathTopicMapSource

public RDFPathTopicMapSource(java.lang.String path,
                             java.lang.String suffix)

RDFPathTopicMapSource

public RDFPathTopicMapSource(java.lang.String path,
                             java.io.FileFilter filter)
Method Detail

setSyntax

public void setSyntax(java.lang.String syntax)
INTERNAL: Sets the syntax the source will read. Possible values are "RDF/XML", "N3", "N-TRIPLE". The default is "RDF/XML".


setMappingFile

public void setMappingFile(java.lang.String file)
INTERNAL: Sets the mapping file which will be used to convert the RDF files found by this source to topic maps.

Parameters:
file - A file name or URI.
Since:
2.0.3

setGenerateNames

public void setGenerateNames(java.lang.String yesno)
INTERNAL: Tells the source to generate names based on their URIs for topics which are nameless after the conversion.

Since:
2.0.4

setLenient

public void setLenient(java.lang.String yesno)
INTERNAL: Makes the RDF reader lenient, so that it will overlook certain kinds of errors.

Since:
2.1

createReference

protected TopicMapReferenceIF createReference(java.net.URL url,
                                              java.lang.String id,
                                              java.lang.String title,
                                              LocatorIF base_address)
Specified by:
createReference in class AbstractPathTopicMapSource


Copyright © 2000-2012 Ontopia.