Copyright | (c) C. Maeder, Felix Gabriel Mance |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Christian.Maeder@dfki.de |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
OWL 2 Functional Syntax constructs
References: http://www.w3.org/TR/2009/REC-owl2-syntax-20091027/#Functional-Style_Syntax http://www.w3.org/TR/owl2-manchester-syntax/
- data IRIType
- = Full
- | Abbreviated
- | NodeID
- data QName = QN {
- namePrefix :: String
- localPart :: String
- iriType :: IRIType
- expandedIRI :: String
- iriPos :: Range
- qNameRange :: QName -> [Pos]
- showQN :: QName -> String
- showQU :: QName -> String
- showQI :: QName -> String
- nullQName :: QName
- isNullQName :: QName -> Bool
- unamedS :: String
- dnamedS :: String
- dummyQName :: QName
- mkQName :: String -> QName
- setQRange :: Range -> QName -> QName
- setPrefix :: String -> QName -> QName
- setFull :: QName -> QName
- type IRI = QName
- isAnonymous :: IRI -> Bool
- cssIRI :: String -> IRIType
- type PrefixMap = Map String String
- predefPrefixes :: PrefixMap
- type LexicalForm = String
- type LanguageTag = String
- type ImportIRI = IRI
- type OntologyIRI = IRI
- type Class = IRI
- type Datatype = IRI
- type ObjectProperty = IRI
- type DataProperty = IRI
- type AnnotationProperty = IRI
- type Individual = IRI
- data EquivOrDisjoint
- showEquivOrDisjoint :: EquivOrDisjoint -> String
- data DomainOrRange
- showDomainOrRange :: DomainOrRange -> String
- data SameOrDifferent
- showSameOrDifferent :: SameOrDifferent -> String
- data Relation
- showRelation :: Relation -> String
- getED :: Relation -> EquivOrDisjoint
- getDR :: Relation -> DomainOrRange
- getSD :: Relation -> SameOrDifferent
- data Character
- data PositiveOrNegative
- data QuantifierType
- showQuantifierType :: QuantifierType -> String
- thingMap :: PreDefMaps
- isThing :: IRI -> Bool
- makePredefObjProp :: PreDefMaps
- isPredefObjProp :: IRI -> Bool
- makePredefDataProp :: PreDefMaps
- isPredefDataProp :: IRI -> Bool
- makePredefRDFSAnnoProp :: PreDefMaps
- isPredefRDFSAnnoProp :: IRI -> Bool
- makePredefOWLAnnoProp :: PreDefMaps
- isPredefOWLAnnoProp :: IRI -> Bool
- isPredefAnnoProp :: IRI -> Bool
- isPredefPropOrClass :: IRI -> Bool
- predefIRIs :: Set IRI
- isDatatypeKey :: IRI -> Bool
- xsdMap :: PreDefMaps
- owlNumbersMap :: PreDefMaps
- rdfMap :: PreDefMaps
- rdfsMap :: PreDefMaps
- isDatatypeKeyAux :: IRI -> [(String, String)]
- type PreDefMaps = ([String], String, String)
- preDefMaps :: [String] -> String -> PreDefMaps
- checkPredefAux :: PreDefMaps -> IRI -> Maybe (String, String)
- checkPredef :: PreDefMaps -> IRI -> Bool
- makeOWLPredefMaps :: [String] -> PreDefMaps
- setDatatypePrefix :: IRI -> IRI
- setReservedPrefix :: IRI -> IRI
- stripReservedPrefix :: IRI -> IRI
- getPredefName :: IRI -> String
- uriToTok :: IRI -> Token
- uriToId :: IRI -> Id
- entityToId :: Entity -> Id
- printDatatype :: IRI -> String
- data DatatypeCat
- getDatatypeCat :: IRI -> DatatypeCat
- makeXsdMap :: [String] -> PreDefMaps
- xsdBooleanMap :: PreDefMaps
- xsdNumbersMap :: PreDefMaps
- xsdStringsMap :: PreDefMaps
- facetToIRI :: DatatypeFacet -> ConstrainingFacet
- data CardinalityType
- showCardinalityType :: CardinalityType -> String
- data Cardinality a b = Cardinality CardinalityType Int a (Maybe b)
- data JunctionType
- type ConstrainingFacet = IRI
- type RestrictionValue = Literal
- data Entity = Entity {
- label :: Maybe String
- entityKind :: EntityType
- cutIRI :: IRI
- mkEntity :: EntityType -> IRI -> Entity
- mkEntityLbl :: String -> EntityType -> IRI -> Entity
- data EntityType
- showEntityType :: EntityType -> String
- entityTypes :: [EntityType]
- pairSymbols :: Entity -> Entity -> Result Entity
- data TypedOrUntyped
- = Typed Datatype
- | Untyped (Maybe LanguageTag)
- data Literal
- data NNInt = NNInt [Int]
- zeroNNInt :: NNInt
- isZeroNNInt :: NNInt -> Bool
- data IntLit = IntLit {}
- zeroInt :: IntLit
- isZeroInt :: IntLit -> Bool
- negNNInt :: Bool -> NNInt -> IntLit
- negInt :: IntLit -> IntLit
- data DecLit = DecLit {}
- isDecInt :: DecLit -> Bool
- negDec :: Bool -> DecLit -> DecLit
- data FloatLit = FloatLit {}
- isFloatDec :: FloatLit -> Bool
- isFloatInt :: FloatLit -> Bool
- floatToInt :: FloatLit -> IntLit
- intToDec :: IntLit -> DecLit
- decToFloat :: DecLit -> FloatLit
- intToFloat :: IntLit -> FloatLit
- abInt :: IntLit -> IntLit
- abDec :: DecLit -> DecLit
- abFloat :: FloatLit -> FloatLit
- isNegDec :: DecLit -> Bool
- numberName :: FloatLit -> String
- cTypeS :: String
- type InverseObjectProperty = ObjectPropertyExpression
- data ObjectPropertyExpression
- objPropToIRI :: ObjectPropertyExpression -> Individual
- type DataPropertyExpression = DataProperty
- data DataRange
- data ClassExpression
- = Expression Class
- | ObjectJunction JunctionType [ClassExpression]
- | ObjectComplementOf ClassExpression
- | ObjectOneOf [Individual]
- | ObjectValuesFrom QuantifierType ObjectPropertyExpression ClassExpression
- | ObjectHasValue ObjectPropertyExpression Individual
- | ObjectHasSelf ObjectPropertyExpression
- | ObjectCardinality (Cardinality ObjectPropertyExpression ClassExpression)
- | DataValuesFrom QuantifierType DataPropertyExpression DataRange
- | DataHasValue DataPropertyExpression Literal
- | DataCardinality (Cardinality DataPropertyExpression DataRange)
- data Annotation = Annotation [Annotation] AnnotationProperty AnnotationValue
- data AnnotationValue
Documentation
data IRIType
data QName
full or abbreviated IRIs with a possible uri for the prefix or a local part following a hash sign
qNameRange :: QName -> [Pos]
isNullQName :: QName -> Bool
dummyQName :: QName
isAnonymous :: IRI -> Bool
checks if an IRI is an anonymous individual
type LexicalForm = String
type LanguageTag = String
type OntologyIRI = IRI
type ObjectProperty = IRI
type DataProperty = IRI
type AnnotationProperty = IRI
type Individual = IRI
data EquivOrDisjoint
data DomainOrRange
data SameOrDifferent
data Relation
showRelation :: Relation -> String
getED :: Relation -> EquivOrDisjoint
getDR :: Relation -> DomainOrRange
getSD :: Relation -> SameOrDifferent
data Character
data PositiveOrNegative
data QuantifierType
Predefined IRI checkings
isPredefObjProp :: IRI -> Bool
isPredefDataProp :: IRI -> Bool
isPredefRDFSAnnoProp :: IRI -> Bool
isPredefOWLAnnoProp :: IRI -> Bool
isPredefAnnoProp :: IRI -> Bool
isPredefPropOrClass :: IRI -> Bool
predefIRIs :: Set IRI
isDatatypeKey :: IRI -> Bool
xsdMap :: PreDefMaps
rdfMap :: PreDefMaps
isDatatypeKeyAux :: IRI -> [(String, String)]
type PreDefMaps = ([String], String, String)
preDefMaps :: [String] -> String -> PreDefMaps
checkPredefAux :: PreDefMaps -> IRI -> Maybe (String, String)
checkPredef :: PreDefMaps -> IRI -> Bool
makeOWLPredefMaps :: [String] -> PreDefMaps
setDatatypePrefix :: IRI -> IRI
sets the correct prefix for the predefined datatypes
setReservedPrefix :: IRI -> IRI
checks if the IRI is part of the built-in ones and puts the correct prefix
stripReservedPrefix :: IRI -> IRI
getPredefName :: IRI -> String
returns the name of the predefined IRI (e.g xsd:string returns "string" or http://www.w3.org/2002/07/owl#real returns "real")
entityToId :: Entity -> Id
Extracts Id from Entities
printDatatype :: IRI -> String
data DatatypeCat
getDatatypeCat :: IRI -> DatatypeCat
makeXsdMap :: [String] -> PreDefMaps
Cardinalities
data CardinalityType
data Cardinality a b
Cardinality CardinalityType Int a (Maybe b) |
(Eq a, Eq b) => Eq (Cardinality a b) | |
(Data a, Data b) => Data (Cardinality a b) | |
(Ord a, Ord b) => Ord (Cardinality a b) | |
(Show a, Show b) => Show (Cardinality a b) | |
(ShATermConvertible a, ShATermConvertible b) => ShATermConvertible (Cardinality a b) | |
(ShATermConvertible a, ShATermConvertible b) => ShATermConvertible (Cardinality a b) | |
Typeable (* -> * -> *) Cardinality |
data JunctionType
type ConstrainingFacet = IRI
type RestrictionValue = Literal
ENTITIES
data Entity
Entity | |
|
mkEntity :: EntityType -> IRI -> Entity
mkEntityLbl :: String -> EntityType -> IRI -> Entity
data EntityType
showEntityType :: EntityType -> String
entityTypes :: [EntityType]
pairSymbols :: Entity -> Entity -> Result Entity
LITERALS
data TypedOrUntyped
data Literal
data NNInt
non-negative integers given by the sequence of digits
isZeroNNInt :: NNInt -> Bool
data IntLit
data DecLit
data FloatLit
isFloatDec :: FloatLit -> Bool
isFloatInt :: FloatLit -> Bool
floatToInt :: FloatLit -> IntLit
decToFloat :: DecLit -> FloatLit
intToFloat :: IntLit -> FloatLit
numberName :: FloatLit -> String
PROPERTY EXPRESSIONS
DATA RANGES
data DataRange
CLASS EXPERSSIONS
data ClassExpression
ANNOTATIONS
data Annotation
Eq Annotation | |
Data Annotation | |
Ord Annotation | |
Show Annotation | |
ShATermConvertible Annotation | |
ShATermConvertible Annotation | |
Pretty Annotation | |
Function Annotation | |
Function Annotations | |
Typeable * Annotation | |
Function a => Function (AnnotatedList a) | only for non-IRI AnnotatedLists |