swish-0.6.3.0: A semantic web toolkit.

PortabilityOverloadedStrings
Stabilityexperimental
MaintainerDouglas Burke

Swish.RDF.Vocabulary

Contents

Description

This module defines some commonly used vocabulary terms, using the Namespace and ScopedName data types. Additional vocabularies are available in the set of Swish.RDF.Vocabulary.* modules, parts of which are re-exported by this module

Synopsis

Namespaces

namespaceRDFD :: NamespaceSource

Maps rdfd to http://id.ninebynine.org/2003/rdfext/rdfd#.

namespaceXsdTypeSource

Arguments

:: Text

lbl

-> Namespace

Namespace has prefix xsd_lbl and URI of http://id.ninebynine.org/2003/XMLSchema/lbl#.

Create a namespace for the datatype family schema used by Swish.

namespaceDefault :: NamespaceSource

Maps default to http://id.ninebynine.org/default/.

namespaceSwish :: NamespaceSource

Maps swish to http://id.ninebynine.org/2003/Swish/.

namespaceLang :: NamespaceSource

Maps lang to http://id.ninebynine.org/2003/Swish/Lang/.

RDF rules

The namespaces refer to RDF rules and axioms.

scopeRDF :: NamespaceSource

Maps rs_rdf to http://id.ninebynine.org/2003/Ruleset/rdf#.

scopeRDFS :: NamespaceSource

Maps rs_rdfs to http://id.ninebynine.org/2003/Ruleset/rdfs#.

scopeRDFD :: NamespaceSource

Maps rs_rdfd to http://id.ninebynine.org/2003/Ruleset/rdfd#.

Miscellaneous routines

langNameSource

Arguments

:: Text

The lower-case version of this label is used.

-> ScopedName 

Convert the label to a scoped name in the lang namespace (namespaceLang).

langTag :: ScopedName -> TextSource

Get the name of the language tag (note that the result is only guaranteed to be semantically valid if isLang returns True but that there is no enforcement of this requirement).

isLang :: ScopedName -> BoolSource

Is the scoped name in the namespaceLang namespace?

swishName :: Text -> ScopedNameSource

Convert a local name to a scoped name in the swish namespace (namespaceSwish).

Miscellaneous

rdfdGeneralRestriction :: ScopedNameSource

rdfd:GeneralRestriction.

rdfdOnProperties :: ScopedNameSource

rdfd:onProperties.

rdfdConstraint :: ScopedNameSource

rdfd:constraint.

rdfdMaxCardinality :: ScopedNameSource

rdfd:maxCardinality.

defaultBase :: ScopedNameSource

default:base.

Re-exported modules