{"modulePath":"github.com/google/note-maps","version":"v0.1.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package tmaps\n\nPackage tmaps defines a vocabulary of simple types and common constants that related packages can use to share topic maps and topic map items.\n\n## Constants\n\n```go\nconst (\n\t// SubjectSI is the subject identifier of a topic representing the base type\n\t// of all topic map items. Every topic map item is an instance of the type\n\t// represented by that topic.\n\tSubjectSI = \"http://psi.topicmaps.org/iso13250/model/subject\"\n\n\t// TopicNameSI is the subject identifier of a topic representing the type of\n\t// all topic names. Every topic name is an instance of the type represented\n\t// by that topic.\n\tTopicNameSI = \"http://psi.topicmaps.org/iso13250/model/topic-name\"\n\n\tTypeSI         = \"http://psi.topicmaps.org/iso13250/model/type\"\n\tInstanceSI     = \"http://psi.topicmaps.org/iso13250/model/instance\"\n\tTypeInstanceSI = \"http://psi.topicmaps.org/iso13250/model/type-instance\"\n\n\tSupertypeSI        = \"http://psi.topicmaps.org/iso13250/model/supertype\"\n\tSubtypeSI          = \"http://psi.topicmaps.org/iso13250/model/subtype\"\n\tSupertypeSubtypeSI = \"http://psi.topicmaps.org/iso13250/model/supertype-subtype\"\n\n\t// SortNameSI is the subject identifier of a topic that is included in the\n\t// scope of topic name variants that are sort names.\n\tSortNameSI = \"http://psi.topicmaps.org/iso13250/model/sort\"\n)\n```\n\n## Functions\n\n```go\nfunc IsAssociation(item *pb.AnyItem) bool\n```\n\n```go\nfunc IsTopic(item *pb.AnyItem) bool\n```\n\n## Types\n\n```go\ntype Merger interface {\n\tMerge(t *pb.AnyItem) error\n}\n```\nMerger is a sink for TMDM items.\n\n```go\ntype TopicMap struct {\n\tII       []string\n\tChildren []*pb.AnyItem\n}\n```\nTopicMap is a TMDM TopicMap.\n\n```go\nfunc (tm *TopicMap) Merge(t *pb.AnyItem) error\n```\nMergeTopic merges any item into a TopicMap.\n\n","path":"github.com/google/note-maps/tmaps","name":"tmaps","synopsis":"Package tmaps defines a vocabulary of simple types and common constants that related packages can use to share topic maps and topic map items.","isRedistributable":true}
