ralphtq/elm-rdf/1.0.0

Rdf.Core.Prefixes

Default prefix bindings used by elm-qudt, plus helpers for working with prefix dictionaries.

qudtPrefixes : List ( Prefix, IRI )

The canonical prefix bindings used across elm-qudt. Covers RDF, RDFS, OWL, XSD, SHACL, SKOS, Dublin Core, PROV, plus the QUDT family (qudt, qkdv, unit, quantitykind, sou, prefix, etc.) and a couple of related auxiliaries (vaem, dtype, si-quantity, qfn).

corePrefixDict : PrefixDictionary

qudtPrefixes as a PrefixDictionary.

coreInversePrefixDict : InversePrefixDict

The inverse of corePrefixDict — IRI namespace to prefix label. Useful for CURIE shortening lookups.

makeSPARQLprefixes : PrefixDictionary -> String

Render a prefix dictionary as the leading PREFIX … : <…> lines of a SPARQL query.

findDuplicates : List ( String, String ) -> Dict String (List String)

Find prefixes that map to multiple distinct IRIs (or vice-versa). Returns a dictionary keyed by the duplicated key, with the conflicting values as the list.

qudtPrefixes percent-encoded as a single string of prefix … : <…> declarations, suitable for inclusion in a URL query parameter.