crlmapsdomain

package
v0.0.0-...-eb15970 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CrlMapSourceURI = CrlMapURI + "/Source"

CrlMapSourceURI is the URI of the CrlMap source

View Source
var CrlMapTargetURI = CrlMapURI + "/Target"

CrlMapTargetURI is the URI of the CrlMap target

View Source
var CrlMapURI = CrlMapsDomainURI + "/Map"

CrlMapURI is the uri of the ancestor of all maps

View Source
var CrlMapsDomainURI = "http://activeCRL.com/crlmaps/CrlMaps"

CrlMapsDomainURI is the URI for the concpet space that defines the CRL Data Types

View Source
var CrlOneToOneMapURI = CrlMapsDomainURI + "/OneToOneMap"

CrlOneToOneMapURI is the URI for the Element-to-Element Map

Functions

func BuildCrlMapsDomain

func BuildCrlMapsDomain(uOfD *core.UniverseOfDiscourse, trans *core.Transaction) error

BuildCrlMapsDomain constructs the domain for CRL maps

func FindAttributeMapForSource

func FindAttributeMapForSource(currentMap core.Concept, source core.Concept, attributeName core.AttributeName, trans *core.Transaction) core.Concept

FindAttributeMapForSource locates the attribute map referencing the given source, if any.

func FindMapForSource

func FindMapForSource(currentMap core.Concept, source core.Concept, trans *core.Transaction) core.Concept

FindMapForSource locates the map corresponding to the given source, if any. It explores the current map and its descendants.

func FindMapForSourceAttribute

func FindMapForSourceAttribute(currentMap core.Concept, source core.Concept, attributeName core.AttributeName, trans *core.Transaction) core.Concept

FindMapForSourceAttribute locates the map corresponding to the given source attribute, if any.

func FindTargetForSource

func FindTargetForSource(currentMap core.Concept, source core.Concept, trans *core.Transaction) core.Concept

FindTargetForSource locates the map corresponding to the given source (if any) and then returns its target

func GetSource

func GetSource(theMap core.Concept, trans *core.Transaction) core.Concept

GetSource returns the source referenced by the given map

func GetSourceReference

func GetSourceReference(theMap core.Concept, trans *core.Transaction) core.Concept

GetSourceReference returns the source reference for the given map

func GetTarget

func GetTarget(theMap core.Concept, trans *core.Transaction) core.Concept

GetTarget returns the target referenced by the given map

func GetTargetReference

func GetTargetReference(theMap core.Concept, trans *core.Transaction) core.Concept

GetTargetReference returns the target reference for the given map

func NewOneToOneMap

func NewOneToOneMap(uOfD *core.UniverseOfDiscourse, trans *core.Transaction) (core.Concept, error)

NewOneToOneMap creates an instance of a one-to-one map with its source and target references

func SearchForMapForSource

func SearchForMapForSource(currentMap core.Concept, source core.Concept, trans *core.Transaction) core.Concept

SearchForMapForSource locates the map corresponding to the given source, if any. It starts with the current map. If not found, it then goes up one level to the parent map. It keeps going up until either a target is found or there is no parent. This method returns the first map found if there is more than one map.

func SetSource

func SetSource(theMap core.Concept, newSource core.Concept, attributeName core.AttributeName, trans *core.Transaction) error

SetSource sets the source referenced by the given map

func SetTarget

func SetTarget(theMap core.Concept, newTarget core.Concept, attributeName core.AttributeName, trans *core.Transaction) error

SetTarget sets the target referenced by the given map

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL