tmaps

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package tmaps defines a vocabulary of simple types and common constants that related packages can use to share topic maps and topic map items.

Index

Constants

View Source
const (
	// SubjectSI is the subject identifier of a topic representing the base type
	// of all topic map items. Every topic map item is an instance of the type
	// represented by that topic.
	SubjectSI = "http://psi.topicmaps.org/iso13250/model/subject"

	// TopicNameSI is the subject identifier of a topic representing the type of
	// all topic names. Every topic name is an instance of the type represented
	// by that topic.
	TopicNameSI = "http://psi.topicmaps.org/iso13250/model/topic-name"

	TypeSI         = "http://psi.topicmaps.org/iso13250/model/type"
	InstanceSI     = "http://psi.topicmaps.org/iso13250/model/instance"
	TypeInstanceSI = "http://psi.topicmaps.org/iso13250/model/type-instance"

	SupertypeSI        = "http://psi.topicmaps.org/iso13250/model/supertype"
	SubtypeSI          = "http://psi.topicmaps.org/iso13250/model/subtype"
	SupertypeSubtypeSI = "http://psi.topicmaps.org/iso13250/model/supertype-subtype"

	// SortNameSI is the subject identifier of a topic that is included in the
	// scope of topic name variants that are sort names.
	SortNameSI = "http://psi.topicmaps.org/iso13250/model/sort"
)

Variables

This section is empty.

Functions

func IsAssociation

func IsAssociation(item *pb.AnyItem) bool

func IsTopic

func IsTopic(item *pb.AnyItem) bool

Types

type Merger

type Merger interface {
	Merge(t *pb.AnyItem) error
}

Merger is a sink for TMDM items.

type TopicMap

type TopicMap struct {
	II       []string
	Children []*pb.AnyItem
}

TopicMap is a TMDM TopicMap.

func (*TopicMap) Merge

func (tm *TopicMap) Merge(t *pb.AnyItem) error

MergeTopic merges any item into a TopicMap.

Directories

Path Synopsis
ctm
Package ctm implements decoding from the CTM format.
Package ctm implements decoding from the CTM format.
internal/lex
Package lex implements lexing for the CTM data format.
Package lex implements lexing for the CTM data format.
internal
lex
Package lex implements common lexing utilities.
Package lex implements common lexing utilities.
Package mobileapi is intended for use with gomobile.
Package mobileapi is intended for use with gomobile.
Package pb defines protocol buffer message types intended for use in tmaps APIs.
Package pb defines protocol buffer message types intended for use in tmaps APIs.
Package pbapi implements an API based on protocol buffer messages.
Package pbapi implements an API based on protocol buffer messages.
Package tmdb is an application database library for storing topic maps.
Package tmdb is an application database library for storing topic maps.
models
Package models implements storage and retrieval of topic maps in a local key-value store using package kv.
Package models implements storage and retrieval of topic maps in a local key-value store using package kv.
models/internal/pb
Package pb includes protocol buffer message types.
Package pb includes protocol buffer message types.
Package tmql implements decoding TMQL queries.
Package tmql implements decoding TMQL queries.

Jump to

Keyboard shortcuts

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