swish-0.5.0.3: A semantic web toolkit.

PortabilityMultiParamTypeClasses
Stabilityexperimental
MaintainerDouglas Burke

Swish.RDF.Ruleset

Description

This module defines a ruleset data type, used to collect information about a ruleset that may contribute torwards inferences in RDF; e.g. RDF and RDFS are rulesets.

A ruleset consists of a namespace, a collection of axioms and a collection of rules.

Synopsis

Documentation

data Ruleset ex Source

Ruleset, having namespace, axioms and rules

Constructors

Ruleset 

Fields

rsNamespace :: Namespace
 
rsAxioms :: [Formula ex]
 
rsRules :: [Rule ex]
 

Instances

getRulesetAxiom :: ScopedName -> Ruleset ex -> Maybe (Formula ex)Source

Find a named axiom in a ruleset.

getRulesetRule :: ScopedName -> Ruleset ex -> Maybe (Rule ex)Source

Find a named rule in a ruleset.

getContextAxiom :: ScopedName -> Formula ex -> [Ruleset ex] -> Formula exSource

Find a named axiom or rule in a proof context.