models

package
v0.0.0-...-d0daf6a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	ID         string    `json:"id"`
	SourceFile string    `json:"source_file"`
	Directory  string    `json:"directory"`
	FileDate   time.Time `json:"file_date"`
	SHA256Hash string    `json:"sha256_hash"`
}

type JSONContext

type JSONContext struct {
	Position     int      `json:"position"`
	FileID       string   `json:"file_id"`
	FilePosition int      `json:"file_position"`
	Before       []string `json:"before"`
	After        []string `json:"after"`
	Element      string   `json:"element"`
	Length       int      `json:"length"`
	StartOffset  int
	EndOffset    int
}

JSONContext représente le contexte d'un élément

type Ontology

type Ontology struct {
	ID         string
	Name       string
	Filename   string
	Format     string
	Size       int64
	SHA256     string
	ImportedAt time.Time
	Elements   []*OntologyElement
	Relations  []*Relation
	Source     *SourceMetadata
}

Ontology représente une ontologie complète

type OntologyElement

type OntologyElement struct {
	Name         string
	OriginalName string
	Type         string
	Positions    []int
	Description  string
	Contexts     []JSONContext
}

OntologyElement représente un élément individuel dans l'ontologie

type Relation

type Relation struct {
	Source      string
	Type        string
	Target      string
	Description string
}

Relation représente une relation entre deux éléments de l'ontologie

type SourceMetadata

type SourceMetadata struct {
	OntologyFile   string              `json:"ontology_file"`
	ProcessingDate time.Time           `json:"processing_date"`
	Files          map[string]FileInfo `json:"files"`
}

SourceMetadata représente les métadonnées du fichier source

Jump to

Keyboard shortcuts

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