Documentation
¶
Overview ¶
Package normative derives the name-based UUIDs (RFC 4122 v5) KerML fixes for the named elements of the standard library, as the SysML v2 pilot does:
package = uuid5(NAMESPACE_URL, prefix + escaped(package name)) descendant = uuid5(package, escaped qualified name) membership = uuid5(package, escaped qualified name + "/owningMembership")
Index ¶
Constants ¶
const Separator = "::"
Separator joins the segments of a qualified name.
Variables ¶
var NamespaceURL = mustParse("6ba7b811-9dad-11d1-80b4-00c04fd430c8")
NamespaceURL is the RFC 4122 name space for URLs, the root of every library id.
Functions ¶
func ElementID ¶
ElementID is the normative id of the library element with the given qualified name (segments as declared, the first its library package); "" for none.
func EscapeName ¶
EscapeName spells a name as the pilot's qualified names do: an ASCII identifier or `$` as is, anything else single-quoted with control and quote characters escaped.
func OwningMembershipID ¶
OwningMembershipID is the normative id of the OwningMembership owning the library element with the given qualified name, a library package included.