Documentation ¶
Index ¶
- Variables
- func AddListMemberAfter(list core.Concept, priorMemberReference core.Concept, newMember core.Concept, ...) (core.Concept, error)
- func AddListMemberBefore(list core.Concept, postMemberReference core.Concept, newMember core.Concept, ...) (core.Concept, error)
- func AddSetMember(set core.Concept, newMember core.Concept, trans *core.Transaction) error
- func AddStringListMemberAfter(list core.Concept, priorMemberLiteral core.Concept, newMember string, ...) (core.Concept, error)
- func AddStringListMemberBefore(list core.Concept, postMemberLiteral core.Concept, newMember string, ...) (core.Concept, error)
- func AppendListMember(list core.Concept, newMember core.Concept, trans *core.Transaction) (core.Concept, error)
- func AppendStringListMember(list core.Concept, value string, trans *core.Transaction) (core.Concept, error)
- func BuildCrlDataStructuresDomain(uOfD *core.UniverseOfDiscourse, trans *core.Transaction)
- func BuildCrlListsConcepts(uOfD *core.UniverseOfDiscourse, parentSpace core.Concept, ...)
- func BuildCrlSetsConcepts(uOfD *core.UniverseOfDiscourse, parentSpace core.Concept, ...)
- func BuildCrlStringListsConcepts(uOfD *core.UniverseOfDiscourse, parentSpace core.Concept, ...)
- func ClearList(list core.Concept, trans *core.Transaction)
- func ClearSet(set core.Concept, trans *core.Transaction)
- func ClearStringList(list core.Concept, trans *core.Transaction)
- func GetFirstLiteralForString(list core.Concept, value string, trans *core.Transaction) (core.Concept, error)
- func GetFirstMemberLiteral(list core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetFirstMemberReference(list core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetFirstReferenceForMember(list core.Concept, member core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetLastMemberLiteral(list core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetLastMemberReference(list core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetListType(list core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetNextMemberLiteral(memberLiteral core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetNextMemberReference(memberReference core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetPriorMemberLiteral(memberLiteral core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetPriorMemberReference(memberReference core.Concept, trans *core.Transaction) (core.Concept, error)
- func GetSetType(set core.Concept, trans *core.Transaction) (core.Concept, error)
- func IsList(list core.Concept, trans *core.Transaction) bool
- func IsListMember(list core.Concept, el core.Concept, trans *core.Transaction) bool
- func IsListMemberReference(memberReference core.Concept, trans *core.Transaction) bool
- func IsSetMember(set core.Concept, el core.Concept, trans *core.Transaction) bool
- func IsStringList(list core.Concept, trans *core.Transaction) bool
- func IsStringListMember(list core.Concept, value string, trans *core.Transaction) bool
- func IsStringListMemberLiteral(memberLiteral core.Concept, trans *core.Transaction) bool
- func NewList(uOfD *core.UniverseOfDiscourse, setType core.Concept, trans *core.Transaction, ...) (core.Concept, error)
- func NewListMemberReference(uOfD *core.UniverseOfDiscourse, trans *core.Transaction, newURI ...string) (core.Concept, error)
- func NewSet(uOfD *core.UniverseOfDiscourse, setType core.Concept, trans *core.Transaction) (core.Concept, error)
- func NewSetMemberReference(uOfD *core.UniverseOfDiscourse, trans *core.Transaction) (core.Concept, error)
- func NewStringList(uOfD *core.UniverseOfDiscourse, trans *core.Transaction, newURI ...string) (core.Concept, error)
- func NewStringListMemberLiteral(uOfD *core.UniverseOfDiscourse, trans *core.Transaction, newURI ...string) (core.Concept, error)
- func PrependListMember(list core.Concept, newMember core.Concept, trans *core.Transaction) (core.Concept, error)
- func PrependStringListMember(list core.Concept, value string, trans *core.Transaction) (core.Concept, error)
- func RemoveListMember(list core.Concept, el core.Concept, trans *core.Transaction) error
- func RemoveSetMember(set core.Concept, el core.Concept, trans *core.Transaction) error
- func RemoveStringListMember(list core.Concept, value string, trans *core.Transaction) error
- func SetListType(list core.Concept, listType core.Concept, trans *core.Transaction) error
Constants ¶
This section is empty.
Variables ¶
var CrlDataStructuresDomainURI = "http://activeCRL.com/crldatastructuresdomain/CrlDataStructuresDomain"
CrlDataStructuresDomainURI is the uri for the concept space that defines the Crl Data Structures
var CrlListMemberReferenceURI = CrlListURI + "/ListMemberReference"
CrlListMemberReferenceURI is the URI that identifies the prototype for a list member reference
var CrlListReferenceToFirstMemberReferenceURI = CrlListURI + "/ListReferenceToFirstMemberReference"
CrlListReferenceToFirstMemberReferenceURI is the URI that identifies the prototype for the first member reference
var CrlListReferenceToLastMemberReferenceURI = CrlListURI + "/ListReferenceToLastMemberReference"
CrlListReferenceToLastMemberReferenceURI is the URI that identifies the prototype for a the last member reference
var CrlListReferenceToNextMemberReferenceURI = CrlListURI + "/ReferenceToNextMemberReference"
CrlListReferenceToNextMemberReferenceURI is the URI that identifies a member reference's next member reference
var CrlListReferenceToPriorMemberReferenceURI = CrlListURI + "/ReferenceToPriorMemberReference"
CrlListReferenceToPriorMemberReferenceURI is the URI that identifies a member reference's prior member reference
var CrlListTypeReferenceURI = CrlListURI + "/ListTypeReference"
CrlListTypeReferenceURI is the URI that identifies the prototype for a list type reference
var CrlListURI = CrlDataStructuresDomainURI + "/List"
CrlListURI is the URI that identifies the prototype for list
var CrlSetMemberReferenceURI = CrlSetURI + "/SetMemberReference"
CrlSetMemberReferenceURI is the URI that identifies the prototype for a set member reference
var CrlSetTypeReferenceURI = CrlSetURI + "/SetTypeReference"
CrlSetTypeReferenceURI is the URI that identifies the prototype for a set type reference
var CrlSetURI = CrlDataStructuresDomainURI + "/Set"
CrlSetURI is the URI that identifies the prototype for sets
var CrlStringListMemberLiteralURI = CrlStringListURI + "/StringListMemberLiteral"
CrlStringListMemberLiteralURI is the URI that identifies the prototype for a list member literal
var CrlStringListReferenceToFirstMemberLiteralURI = CrlStringListURI + "/StringListReferenceToFirstMemberLiteral"
CrlStringListReferenceToFirstMemberLiteralURI is the URI that identifies the prototype for the first member literal
var CrlStringListReferenceToLastMemberLiteralURI = CrlStringListURI + "/StringListReferenceToLastMemberLiteral"
CrlStringListReferenceToLastMemberLiteralURI is the URI that identifies the prototype for a the last member literal
var CrlStringListReferenceToNextMemberLiteralURI = CrlStringListURI + "/ReferenceToNextMemberLiteral"
CrlStringListReferenceToNextMemberLiteralURI is the URI that identifies a member literal's next member literal
var CrlStringListReferenceToPriorMemberLiteralURI = CrlStringListURI + "/ReferenceToPriorMemberLiteral"
CrlStringListReferenceToPriorMemberLiteralURI is the URI that identifies a member literal's prior member literal
var CrlStringListURI = CrlDataStructuresDomainURI + "/StringList"
CrlStringListURI is the URI that identifies the prototype for list
Functions ¶
func AddListMemberAfter ¶
func AddListMemberAfter(list core.Concept, priorMemberReference core.Concept, newMember core.Concept, trans *core.Transaction) (core.Concept, error)
AddListMemberAfter adds a member to the list after the priorMemberReference and returns the newMemberReference. If the priorMemberReference is nil, the member is added to the beginning of the list. An error is returned if the supplied list is not a list, the newElement is nil, or the priorElementReference is not a CrlListMemberReference in this list.
func AddListMemberBefore ¶
func AddListMemberBefore(list core.Concept, postMemberReference core.Concept, newMember core.Concept, trans *core.Transaction) (core.Concept, error)
AddListMemberBefore adds a member to the list before the postMember. If the postMember is nil, the member is added at the end of the list.
func AddSetMember ¶
AddSetMember adds a member to the set
func AddStringListMemberAfter ¶
func AddStringListMemberAfter(list core.Concept, priorMemberLiteral core.Concept, newMember string, trans *core.Transaction) (core.Concept, error)
AddStringListMemberAfter adds a string to the list after the priorMemberLiteral and returns the newMemberLiteral. If the priorMemberLiteral is nil, the string is added to the beginning of the list. An error is returned if the supplied list is not a list, the newMember is the empty string, or the priorMemberLiteral is not a CrlStringListMemberLiteral in this list.
func AddStringListMemberBefore ¶
func AddStringListMemberBefore(list core.Concept, postMemberLiteral core.Concept, newMember string, trans *core.Transaction) (core.Concept, error)
AddStringListMemberBefore adds a member to the list before the postMember. If the postMember is nil, the member is added at the end of the list.
func AppendListMember ¶
func AppendListMember(list core.Concept, newMember core.Concept, trans *core.Transaction) (core.Concept, error)
AppendListMember adds a member to the end of the list
func AppendStringListMember ¶
func AppendStringListMember(list core.Concept, value string, trans *core.Transaction) (core.Concept, error)
AppendStringListMember adds a string to the end of the list
func BuildCrlDataStructuresDomain ¶
func BuildCrlDataStructuresDomain(uOfD *core.UniverseOfDiscourse, trans *core.Transaction)
BuildCrlDataStructuresDomain constructs the concept space for CRL data structures
func BuildCrlListsConcepts ¶
func BuildCrlListsConcepts(uOfD *core.UniverseOfDiscourse, parentSpace core.Concept, trans *core.Transaction)
BuildCrlListsConcepts builds the CrlList concept and adds it as a child of the provided parent concept space
func BuildCrlSetsConcepts ¶
func BuildCrlSetsConcepts(uOfD *core.UniverseOfDiscourse, parentSpace core.Concept, trans *core.Transaction)
BuildCrlSetsConcepts builds the CrlSets concept space and adds it as a child of the provided parent concept space
func BuildCrlStringListsConcepts ¶
func BuildCrlStringListsConcepts(uOfD *core.UniverseOfDiscourse, parentSpace core.Concept, trans *core.Transaction)
BuildCrlStringListsConcepts builds the CrlStringList concept and adds it as a child of the provided parent concept space
func ClearList ¶
func ClearList(list core.Concept, trans *core.Transaction)
ClearList removes all members from the list
func ClearSet ¶
func ClearSet(set core.Concept, trans *core.Transaction)
ClearSet removes all members from the set
func ClearStringList ¶
func ClearStringList(list core.Concept, trans *core.Transaction)
ClearStringList removes all members from the list
func GetFirstLiteralForString ¶
func GetFirstLiteralForString(list core.Concept, value string, trans *core.Transaction) (core.Concept, error)
GetFirstLiteralForString returns the first Literal whose value is the given string. It returns an error if the list is not a list. It returns nil if the string it is not found in the list.
func GetFirstMemberLiteral ¶
GetFirstMemberLiteral returns the reference to the first member of the list. It returns an error if the list is not a list. It returns nil if the list is empty
func GetFirstMemberReference ¶
GetFirstMemberReference returns the reference to the first member of the list. It returns an error if the list is not a list. It returns nil if the list is empty
func GetFirstReferenceForMember ¶
func GetFirstReferenceForMember(list core.Concept, member core.Concept, trans *core.Transaction) (core.Concept, error)
GetFirstReferenceForMember returns the first reference to the given member. It returns an error if the list is not a list. It returns nil if the element it is not found in the list.
func GetLastMemberLiteral ¶
GetLastMemberLiteral returns the reference to the last member of the list. It returns an error if list is not a list. It returns nil if the list is empty
func GetLastMemberReference ¶
GetLastMemberReference returns the reference to the last member of the list. It returns an error if list is not a list. It returns nil if the list is empty
func GetListType ¶
GetListType returns the element that should be an abstraction of every member. It returns an error if the argument is not a list
func GetNextMemberLiteral ¶
func GetNextMemberLiteral(memberLiteral core.Concept, trans *core.Transaction) (core.Concept, error)
GetNextMemberLiteral returns the successor member literal in the list
func GetNextMemberReference ¶
func GetNextMemberReference(memberReference core.Concept, trans *core.Transaction) (core.Concept, error)
GetNextMemberReference returns the successor member reference in the list
func GetPriorMemberLiteral ¶
func GetPriorMemberLiteral(memberLiteral core.Concept, trans *core.Transaction) (core.Concept, error)
GetPriorMemberLiteral returns the predecessor member literal in the list
func GetPriorMemberReference ¶
func GetPriorMemberReference(memberReference core.Concept, trans *core.Transaction) (core.Concept, error)
GetPriorMemberReference returns the predecessor member reference in the list
func GetSetType ¶
GetSetType returns the element that should be an abstraction of every member. It returns an error if the argument is not a set
func IsList ¶
func IsList(list core.Concept, trans *core.Transaction) bool
IsList returns true if the supplied Element is a refinement of List
func IsListMember ¶
IsListMember returns true if the element is a memeber of the given list
func IsListMemberReference ¶
func IsListMemberReference(memberReference core.Concept, trans *core.Transaction) bool
IsListMemberReference returns true if the supplied Reference is a refinement of ListMemberReference
func IsSetMember ¶
IsSetMember returns true if the element is a memeber of the given set
func IsStringList ¶
func IsStringList(list core.Concept, trans *core.Transaction) bool
IsStringList returns true if the supplied Element is a refinement of StringList
func IsStringListMember ¶
IsStringListMember returns true if the string is a memeber of the given list
func IsStringListMemberLiteral ¶
func IsStringListMemberLiteral(memberLiteral core.Concept, trans *core.Transaction) bool
IsStringListMemberLiteral returns true if the supplied Reference is a refinement of StringListMemberLiteral
func NewList ¶
func NewList(uOfD *core.UniverseOfDiscourse, setType core.Concept, trans *core.Transaction, newURI ...string) (core.Concept, error)
NewList creates an instance of a list
func NewListMemberReference ¶
func NewListMemberReference(uOfD *core.UniverseOfDiscourse, trans *core.Transaction, newURI ...string) (core.Concept, error)
NewListMemberReference creates a list member reference with its child concepts
func NewSet ¶
func NewSet(uOfD *core.UniverseOfDiscourse, setType core.Concept, trans *core.Transaction) (core.Concept, error)
NewSet creates an instance of a set
func NewSetMemberReference ¶
func NewSetMemberReference(uOfD *core.UniverseOfDiscourse, trans *core.Transaction) (core.Concept, error)
NewSetMemberReference creates a SetMemberReference with its child concepts
func NewStringList ¶
func NewStringList(uOfD *core.UniverseOfDiscourse, trans *core.Transaction, newURI ...string) (core.Concept, error)
NewStringList creates an instance of a list
func NewStringListMemberLiteral ¶
func NewStringListMemberLiteral(uOfD *core.UniverseOfDiscourse, trans *core.Transaction, newURI ...string) (core.Concept, error)
NewStringListMemberLiteral returns a new refinement of CrlStringListMemberLiteral
func PrependListMember ¶
func PrependListMember(list core.Concept, newMember core.Concept, trans *core.Transaction) (core.Concept, error)
PrependListMember adds a member to the end of the list
func PrependStringListMember ¶
func PrependStringListMember(list core.Concept, value string, trans *core.Transaction) (core.Concept, error)
PrependStringListMember adds a string to the beginning of the list
func RemoveListMember ¶
RemoveListMember removes the first occurrance of an element from the given list
func RemoveSetMember ¶
RemoveSetMember removes the element from the given set
func RemoveStringListMember ¶
RemoveStringListMember removes the first occurrance of an element from the given list
func SetListType ¶
SetListType sets the element that should be an abstraction of every member. It is only valid on a list that does not already have a list type assigned, i.e. you can't change the type of a list once it has been set. It returns an error if the argument is not a list or if the list already has a type assigned
Types ¶
This section is empty.