AS.hs revision c4076ff1721f8901a30e4b7aa004479ecb2631e0
{- |
Module : $Header$
Copyright : (c) Francisc-Nicolae Bungiu
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
RDF abstract syntax
References:
<http://www.informatik.uni-bremen.de/~till/papers/ontotrans.pdf>
<http://www.w3.org/TR/rdf-concepts/#section-Graph-syntax>
-}
module RDF.AS where
import OWL2.AS
import Common.Id
import qualified Data.Map as Map
-- * Graphs
type Subject = IRI
type Predicate = IRI
type Object = Either IRI Literal
-- Axiom represents a RDF Triple
data Axiom = Axiom Subject Predicate Object
deriving (Show, Eq, Ord)
data RDFGraph = RDFGraph [Axiom]
deriving (Show, Eq, Ord)
data RDFEntityType = Subject | Predicate | Object
deriving (Show, Eq, Ord)
data RDFEntity = RDFEntity RDFEntityType IRI
deriving (Show, Eq, Ord)
type StringMap = Map.Map String String
type MorphMap = Map.Map RDFEntity IRI
instance GetRange RDFGraph where
instance GetRange Axiom where
instance GetRange RDFEntity where