rdf4h-0.6.1: A library for RDF processing in Haskell.ContentsIndex
Text.RDF.Namespace
Synopsis
data Namespace
makePlainNS :: ByteString -> Namespace
makePrefixedNS :: ByteString -> ByteString -> Namespace
makePrefixedNS' :: String -> String -> Namespace
newtype PrefixMapping = PrefixMapping (ByteString, ByteString)
newtype PrefixMappings = PrefixMappings (Map ByteString ByteString)
toPMList :: PrefixMappings -> [(ByteString, ByteString)]
mergePrefixMappings :: PrefixMappings -> PrefixMappings -> PrefixMappings
makeUri :: Namespace -> ByteString -> ByteString
prefixOf :: Namespace -> Maybe ByteString
uriOf :: Namespace -> ByteString
rdf :: Namespace
rdfs :: Namespace
dc :: Namespace
dct :: Namespace
owl :: Namespace
xsd :: Namespace
skos :: Namespace
foaf :: Namespace
ex :: Namespace
ex2 :: Namespace
standard_ns_mappings :: PrefixMappings
Documentation
data Namespace
Represents a namespace as either a prefix and uri, respectively, or just a uri.
show/hide Instances
makePlainNS :: ByteString -> Namespace
Make a namespace for the given URI reference.
makePrefixedNS :: ByteString -> ByteString -> Namespace
Make a namespace having the given prefix for the given URI reference, respectively.
makePrefixedNS' :: String -> String -> Namespace
Make a namespace having the given prefix for the given URI reference, respectively, using strings which will be converted to bytestrings automatically.
newtype PrefixMapping
A mapping of a prefix to the URI for that prefix.
Constructors
PrefixMapping (ByteString, ByteString)
show/hide Instances
newtype PrefixMappings
An alias for a set of prefix mappings.
Constructors
PrefixMappings (Map ByteString ByteString)
show/hide Instances
toPMList :: PrefixMappings -> [(ByteString, ByteString)]
View the prefix mappings as a list of key-value pairs. The PM in in the name is to reduce name clashes if used without qualifying.
mergePrefixMappings :: PrefixMappings -> PrefixMappings -> PrefixMappings
Perform a left-biased merge of the two sets of prefix mappings.
makeUri :: Namespace -> ByteString -> ByteString
Make a URI consisting of the given namespace and the given localname.
prefixOf :: Namespace -> Maybe ByteString
Determine the prefix of the given namespace, if it has one.
uriOf :: Namespace -> ByteString
Determine the URI of the given namespace.
rdf :: Namespace
The RDF namespace.
rdfs :: Namespace
The RDF Schema namespace.
dc :: Namespace
The Dublic Core namespace.
dct :: Namespace
The Dublin Core terms namespace.
owl :: Namespace
The OWL namespace.
xsd :: Namespace
The XML Schema namespace.
skos :: Namespace
The SKOS namespace.
foaf :: Namespace
The friend of a friend namespace.
ex :: Namespace
Example namespace #1.
ex2 :: Namespace
Example namespace #2.
standard_ns_mappings :: PrefixMappings
Produced by Haddock version 0.9