Class QedeqImporter
java.lang.Object
org.episteme.core.mathematics.loaders.logic.QedeqImporter
- All Implemented Interfaces:
ResourceIO<Map<String,Object>>, ResourceReader<Map<String, Object>>, FormalSystemImporter
Importer for QEDEQ (Hilbert II) XML modules.
Parses QEDEQ XML files and extracts:
- Module name and title
- Chapters and sections
- Axioms and definitions
- Theorems and propositions
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested classes/interfaces inherited from interface FormalSystemImporter
FormalSystemImporter.ParseException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the file extensions this importer can handle.importSystem(Reader reader) Imports a formal system from the specified reader.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FormalSystemImporter
getCategory, getDescription, getLongDescription, getName, getResourcePath, getResourceType, getSupportedVersions, importSystem, importSystem, loadMethods inherited from interface ResourceIO
getExpectedResourceFiles, isFileBased, isOutputMethods inherited from interface ResourceReader
isInput
-
Constructor Details
-
QedeqImporter
public QedeqImporter()
-
-
Method Details
-
importSystem
public Map<String,Object> importSystem(Reader reader) throws IOException, FormalSystemImporter.ParseException Description copied from interface:FormalSystemImporterImports a formal system from the specified reader.- Specified by:
importSystemin interfaceFormalSystemImporter- Parameters:
reader- the reader to import from- Returns:
- a map of module names to their axioms/theorems
- Throws:
IOException- if an I/O error occursFormalSystemImporter.ParseException- if the input format is invalid
-
getSupportedExtensions
Description copied from interface:FormalSystemImporterReturns the file extensions this importer can handle.- Specified by:
getSupportedExtensionsin interfaceFormalSystemImporter- Specified by:
getSupportedExtensionsin interfaceResourceIO<Map<String,Object>> - Returns:
- array of file extensions (e.g., [".v", ".vo"])
-