Taxonomy.hs revision 43b4c41fbb07705c9df321221ab9cb9832460407
{- |
Module : $Header$
Copyright : (c) Klaus L�ttich, Uni Bremen 2002-2004
Licence : similar to LGPL, see HetCATS/LICENCE.txt or LIZENZ.txt
Maintainer : hets@tzi.de
Stability : provisional
Portability : non-portable (imports Logic)
This module provides the access to Achim Mahnke's taxonomy
visualisation for subsort hierarchies.
-}
module GUI.Taxonomy where
import Logic.Logic
import Logic.Grothendieck
import Taxonomy.MMiSSOntology
import Taxonomy.MMiSSOntologyGraph
import Common.Taxonomy
import Common.Result as Res
import Driver.Options
displayConceptGraph :: String -> G_theory -> IO ()
displayConceptGraph _ _ =
putStrLn "display of Concept Graph not yet implemented"
displaySubsortGraph :: String -> G_theory -> IO ()
displaySubsortGraph = displayGraph KSubsort
displayGraph :: TaxoGraphKind -> String -> G_theory -> IO ()
displayGraph kind thyName (G_theory lid sign sens) =
case theory_to_taxonomy lid kind
(emptyMMiSSOntology thyName AutoInsert)
sign sens of
Res.Result [] (Just taxo) -> displayClassGraph taxo Nothing
Res.Result dias _ -> showDiags defaultHetcatsOpts dias