DMU2OWL2.hs revision e9458b1a7a19a63aa4c179f9ab20f4d50681c168
Module : ./OWL2/DMU2OWL2.hs
License : GPLv2 or higher, see LICENSE.txt
Portability : non-portable (imports Logic.Logic)
translating DMU xml to OWL using OntoDMU.jar by Marco Franke from BIBA
module OWL2.DMU2OWL2 where
import Logic.Logic
import Logic.Comorphism
import Common.AS_Annotation
import Common.DefaultMorphism
import Common.ExtSign
import Common.GlobalAnnotations
import Common.ProofTree
import Common.Result
import Common.Utils
import Common.Lib.State
import qualified Data.Map as Map
import DMU.Logic_DMU
import OWL2.AS
import OWL2.MS
import OWL2.Logic_OWL2
import OWL2.Morphism
import OWL2.Sign
import OWL2.StaticAnalysis
import OWL2.ProfilesAndSublogics
import OWL2.ManchesterParser
import OWL2.Symbols
import OWL2.Function
import OWL2.Extract
import Text.ParserCombinators.Parsec (eof, runParser)
import Control.Monad
import System.Directory
import System.IO.Unsafe (unsafePerformIO)
ontoDMUpath <- getEnvDef "HETS_ONTODMU" "DMU/OntoDMU.jar"
tmpFile <- getTempFile str "ontoDMU.xml"
readOWL str = case runParser (liftM2 const (basicSpec Map.empty) eof) () "" str of