Package net.ontopia.topicmaps.utils.rdf
Class RDFPathTopicMapSource
java.lang.Object
net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
net.ontopia.topicmaps.utils.rdf.RDFPathTopicMapSource
- All Implemented Interfaces:
FileFilter,AutoCloseable,TopicMapSourceIF
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
ConstructorsConstructorDescriptionRDFPathTopicMapSource(String path, FileFilter filter) RDFPathTopicMapSource(String path, String suffix) -
Method Summary
Modifier and TypeMethodDescriptionprotected TopicMapReferenceIFcreateReference(URL url, String id, String title, LocatorIF base_address) voidsetGenerateNames(String yesno) INTERNAL: Tells the source to generate names based on their URIs for topics which are nameless after the conversion.voidsetLenient(String yesno) INTERNAL: Makes the RDF reader lenient, so that it will overlook certain kinds of errors.voidsetMappingFile(String file) INTERNAL: Sets the mapping file which will be used to convert the RDF files found by this source to topic maps.voidINTERNAL: Sets the syntax the source will read.Methods inherited from class net.ontopia.topicmaps.entry.AbstractPathTopicMapSource
accept, close, 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
-
Constructor Details
-
RDFPathTopicMapSource
public RDFPathTopicMapSource() -
RDFPathTopicMapSource
-
RDFPathTopicMapSource
-
-
Method Details
-
setSyntax
INTERNAL: Sets the syntax the source will read. Possible values are "RDF/XML", "N3", "N-TRIPLE". The default is "RDF/XML". -
setMappingFile
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
INTERNAL: Tells the source to generate names based on their URIs for topics which are nameless after the conversion.- Since:
- 2.0.4
-
setLenient
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:
createReferencein classAbstractPathTopicMapSource
-