Class RDFPathTopicMapSource

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

public class RDFPathTopicMapSource extends AbstractPathTopicMapSource
INTERNAL: Source that locates RDF files in a directory on the file system.
  • Constructor Details

    • RDFPathTopicMapSource

      public RDFPathTopicMapSource()
    • RDFPathTopicMapSource

      public RDFPathTopicMapSource(String path, String suffix)
    • RDFPathTopicMapSource

      public RDFPathTopicMapSource(String path, FileFilter filter)
  • Method Details

    • setSyntax

      public void setSyntax(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(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(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(String yesno)
      INTERNAL: Makes the RDF reader lenient, so that it will overlook certain kinds of errors.
      Since:
      2.1
    • createReference

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