Documentation
¶
Overview ¶
Package model provides various models for structuring extra information about terms, relationships and graphs in the OBO Graph.
Index ¶
- type BasicPropertyValue
- type Definition
- type Meta
- func (m *Meta) BasicPropertyValues() []*BasicPropertyValue
- func (m *Meta) Comments() []string
- func (m *Meta) Definition() *Definition
- func (m *Meta) IsDeprecated() bool
- func (m *Meta) Namespace() string
- func (m *Meta) Subsets() []string
- func (m *Meta) Synonyms() []*Synonym
- func (m *Meta) Version() string
- func (m *Meta) Xrefs() []*Xref
- func (m *Meta) XrefsValues() []string
- type MetaOptions
- type PropertyValue
- type Synonym
- type Xref
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicPropertyValue ¶
type BasicPropertyValue struct {
*PropertyValue
}
BasicPropertyValue is a generic PropertyValue.
func NewBasicPropertyValue ¶
func NewBasicPropertyValue(prd, val string) *BasicPropertyValue
NewBasicPropertyValue returns a new Basic.
type Definition ¶
type Definition struct {
*PropertyValue
}
Definition represents a textual definition of an ontology term.
func NewDefinition ¶
func NewDefinition(val string, refs []string) *Definition
NewDefinition returns a new Definition.
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
Meta is a container for hosting sets of PropertyValue objects.
func (*Meta) BasicPropertyValues ¶
func (m *Meta) BasicPropertyValues() []*BasicPropertyValue
BasicPropertyValues are the collection of meta properties.
func (*Meta) IsDeprecated ¶ added in v1.6.0
IsDeprecated returns a boolean indicating whether the meta information is deprecated.
func (*Meta) Namespace ¶
Namespace returns either the default namespace(top level ontology) or the individual namespace of a node.
func (*Meta) XrefsValues ¶
XrefsValues are values of all the xrefs.
type MetaOptions ¶
type MetaOptions struct {
Definition *Definition
BaseProps []*BasicPropertyValue
Synonyms []*Synonym
Xrefs []*Xref
Comments []string
Subsets []string
Version string
Deprecated bool
}
MetaOptions is a container for various types of metadata.
type PropertyValue ¶
type PropertyValue struct {
// contains filtered or unexported fields
}
PropertyValue for modeling ontology metadata other than term and their relationships.
func (*PropertyValue) Pred ¶
func (p *PropertyValue) Pred() string
Pred corresponds to OWL properties.
func (*PropertyValue) Value ¶
func (p *PropertyValue) Value() string
Value is the value of property.
func (*PropertyValue) Xrefs ¶
func (p *PropertyValue) Xrefs() []string
Xrefs is list of data supporting the property-value assertion.
type Synonym ¶
type Synonym struct {
*PropertyValue
}
Synonym represent an alternate term for the node.
func NewSynonymWithRefs ¶
NewSynonymWithRefs returns a new Synonym.