devicemodel

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EVENT             = models.EVENT
	REQUEST           = models.REQUEST
	EVENT_AND_REQUEST = models.EVENT_AND_REQUEST
)
View Source
const CONTROLLING_FUNCTION_PREFIX = "urn:infai:ses:controlling-function:"
View Source
const MEASURING_FUNCTION_PREFIX = "urn:infai:ses:measuring-function:"
View Source
const PREFIX_RDF = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>"
View Source
const PREFIX_SES = "PREFIX ses: <https://senergy.infai.org/ontology/> "

PREFIXES

View Source
const RDFS_COMMENT = "http://www.w3.org/2000/01/rdf-schema#comment"
View Source
const RDFS_LABEL = "http://www.w3.org/2000/01/rdf-schema#label"
View Source
const RDF_TYPE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
View Source
const SES_ONTOLOGY_ASPECT = "https://senergy.infai.org/ontology/Aspect"
View Source
const SES_ONTOLOGY_CHARACTERISTIC = "https://senergy.infai.org/ontology/Characteristic"
View Source
const SES_ONTOLOGY_CONCEPT = "https://senergy.infai.org/ontology/Concept"
View Source
const SES_ONTOLOGY_CONTROLLING_FUNCTION = "https://senergy.infai.org/ontology/ControllingFunction"

Classes

View Source
const SES_ONTOLOGY_COUNT = "https://senergy.infai.org/ontology/Count"
View Source
const SES_ONTOLOGY_DEVICE_CLASS = "https://senergy.infai.org/ontology/DeviceClass"
View Source
const SES_ONTOLOGY_DEVICE_TYPE = "https://senergy.infai.org/ontology/DeviceType"
View Source
const SES_ONTOLOGY_EXPOSES_FUNCTION = "https://senergy.infai.org/ontology/exposesFunction"
View Source
const SES_ONTOLOGY_HAS_BASE_CHARACTERISTIC = "https://senergy.infai.org/ontology/hasBaseCharacteristic"
View Source
const SES_ONTOLOGY_HAS_CHARACTERISTIC = "https://senergy.infai.org/ontology/hasCharacteristic"
View Source
const SES_ONTOLOGY_HAS_CONCEPT = "https://senergy.infai.org/ontology/hasConcept"

Properties

View Source
const SES_ONTOLOGY_HAS_DEVICE_CLASS = "https://senergy.infai.org/ontology/hasDeviceClass"
View Source
const SES_ONTOLOGY_HAS_IMAGE = "https://senergy.infai.org/ontology/hasImage"
View Source
const SES_ONTOLOGY_HAS_INTERACTION = "https://senergy.infai.org/ontology/interaction"
View Source
const SES_ONTOLOGY_HAS_MAX_VALUE = "https://senergy.infai.org/ontology/hasMaxValue"
View Source
const SES_ONTOLOGY_HAS_MIN_VALUE = "https://senergy.infai.org/ontology/hasMinValue"
View Source
const SES_ONTOLOGY_HAS_PROTOCOL = "https://senergy.infai.org/ontology/hasProtocol"
View Source
const SES_ONTOLOGY_HAS_SERVICE = "https://senergy.infai.org/ontology/hasService"
View Source
const SES_ONTOLOGY_HAS_SUB_CHARACTERISTIC = "https://senergy.infai.org/ontology/hasSubCharacteristic"
View Source
const SES_ONTOLOGY_HAS_VALUE = "https://senergy.infai.org/ontology/hasValue"
View Source
const SES_ONTOLOGY_HAS_VALUE_TYPE = "https://senergy.infai.org/ontology/hasValueType"
View Source
const SES_ONTOLOGY_LOCATION = "https://senergy.infai.org/ontology/Location"
View Source
const SES_ONTOLOGY_MEASURING_FUNCTION = "https://senergy.infai.org/ontology/MeasuringFunction"
View Source
const SES_ONTOLOGY_REFERS_TO = "https://senergy.infai.org/ontology/refersTo"
View Source
const SES_ONTOLOGY_SERVICE = "https://senergy.infai.org/ontology/Service"
View Source
const SES_ONTOLOGY_TOTAL_COUNT = "https://senergy.infai.org/ontology/totalCount"
View Source
const URN_PREFIX = "urn:infai:ses:"

Variables

This section is empty.

Functions

func AspectIds

func AspectIds(aspectId string, aspectIds []string) []string

AspectIds folds a deprecated single aspect id into an aspect id list. It is the free function behind FilterCriteria.GetAspectIds, for the criteria and content variables that carry the same pair of fields without being a FilterCriteria.

Types

type Aspect

type Aspect struct {
	Id         string   `json:"id"`
	Name       string   `json:"name"`
	SubAspects []Aspect `json:"sub_aspects"`
}

type AspectNode

type AspectNode = models.AspectNode

type Attribute

type Attribute = models.Attribute

type Characteristic

type Characteristic struct {
	Id                 string           `json:"id"`
	Name               string           `json:"name"`
	DisplayUnit        string           `json:"display_unit"`
	Type               Type             `json:"type"`
	MinValue           interface{}      `json:"min_value,omitempty"`
	MaxValue           interface{}      `json:"max_value,omitempty"`
	Value              interface{}      `json:"value,omitempty"`
	SubCharacteristics []Characteristic `json:"sub_characteristics"`
}

type Concept

type Concept struct {
	Id                   string   `json:"id"`
	Name                 string   `json:"name"`
	CharacteristicIds    []string `json:"characteristic_ids"`
	BaseCharacteristicId string   `json:"base_characteristic_id"`
}

type ConceptWithCharacteristics

type ConceptWithCharacteristics struct {
	Id                   string           `json:"id"`
	Name                 string           `json:"name"`
	BaseCharacteristicId string           `json:"base_characteristic_id"`
	Characteristics      []Characteristic `json:"characteristics"`
}

type Configurable

type Configurable = models.Configurable

type Content

type Content = models.Content

type ContentVariable

type ContentVariable = models.ContentVariable

type Device

type Device = models.Device

type DeviceClass

type DeviceClass struct {
	Id    string `json:"id"`
	Image string `json:"image"`
	Name  string `json:"name"`
}

type DeviceGroup

type DeviceGroup = models.DeviceGroup

type DeviceGroupFilterCriteria

type DeviceGroupFilterCriteria = models.DeviceGroupFilterCriteria

type DeviceType

type DeviceType = models.DeviceType

type DeviceTypeSelectable

type DeviceTypeSelectable = models.DeviceTypeSelectable

type ExtendedDevice

type ExtendedDevice = models.ExtendedDevice

type FilterCriteria

type FilterCriteria struct {
	Interaction   string   `json:"interaction,omitempty"`
	FunctionId    string   `json:"function_id"`
	AspectId      string   `json:"aspect_id"` //deprecated: alias for a single element AspectIds
	AspectIds     []string `json:"aspect_ids,omitempty"`
	DeviceClassId string   `json:"device_class_id"`
}

func (FilterCriteria) GetAspectIds

func (this FilterCriteria) GetAspectIds() []string

GetAspectIds returns the aspects a criteria asks for, with the deprecated AspectId folded in. Everything that evaluates aspects reads the list, so the alias is resolved here instead of at every call site. Several aspects in one criteria are an AND on the content variable: the same variable has to carry all of them, each of them covering its own subtree.

func (FilterCriteria) Short

func (this FilterCriteria) Short() string

type Function

type Function = models.Function

type FunctionList

type FunctionList struct {
	Functions  []Function `json:"functions"`
	TotalCount int        `json:"total_count"`
}

type Hub

type Hub = models.Hub

type Interaction

type Interaction = models.Interaction

type Location

type Location struct {
	Id             string   `json:"id"`
	Name           string   `json:"name"`
	Description    string   `json:"description"`
	Image          string   `json:"image"`
	DeviceIds      []string `json:"device_ids"`
	DeviceGroupIds []string `json:"device_group_ids"`
}

type Protocol

type Protocol = models.Protocol

type ProtocolSegment

type ProtocolSegment = models.ProtocolSegment

type Service

type Service = models.Service

type ServiceGroup

type ServiceGroup = models.ServiceGroup

type ServicePathOption

type ServicePathOption = models.ServicePathOption

type TotalCount

type TotalCount struct {
	TotalCount int `json:"total_count"`
}

type Type

type Type = models.Type
const (
	String  Type = "https://schema.org/Text"
	Integer Type = "https://schema.org/Integer"
	Float   Type = "https://schema.org/Float"
	Boolean Type = "https://schema.org/Boolean"

	List      Type = "https://schema.org/ItemList"
	Structure Type = "https://schema.org/StructuredValue"
)

Jump to

Keyboard shortcuts

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