lkif

package
v0.0.0-...-958f0fa Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(inFile io.Reader) (*caes.ArgGraph, error)

Types

type Argument

type Argument struct {
	XMLName    xml.Name   `xml:"argument"`
	Id         string     `xml:"id,attr"`
	Title      string     `xml:"title,attr"`
	Direction  string     `xml:"direction,attr"`
	Scheme     string     `xml:"scheme,attr"`
	Weight     float64    `xml:"weight,attr"`
	Conclusion Conclusion `xml:"conclusion"`
	Premises   Premises   `xml:"premises"`
}

type ArgumentGraph

type ArgumentGraph struct {
	XMLName    xml.Name   `xml:"argument-graph"`
	Id         string     `xml:"id,attr"`
	Title      string     `xml:"title,attr"`
	Main       string     `xml:"main-issue,attr"`
	Statements Statements `xml:"statements"`
	Arguments  Arguments  `xml:"arguments"`
}

func (*ArgumentGraph) Caes

func (lag *ArgumentGraph) Caes() *caes.ArgGraph

Convert to an LKIF argument graph to a CAES argument graph

type ArgumentGraphs

type ArgumentGraphs struct {
	XMLName xml.Name        `xml:"argument-graphs"`
	Content []ArgumentGraph `xml:"argument-graph"`
}

type Arguments

type Arguments struct {
	Content []Argument `xml:"argument"`
}

type Atom

type Atom struct {
	XMLName   xml.Name `xml:"s"`
	Predicate string   `xml:"pred,attr"`
	Assumable bool     `xml:"assumable,attr"`
	Text      string   `xml:",innerxml"`
}

type Conclusion

type Conclusion struct {
	XMLName   xml.Name `xml:"conclusion"`
	Statement string   `xml:"statement,attr"` // Id
}

type LKIF

type LKIF struct {
	XMLName        xml.Name       `xml:"lkif"`
	Version        string         `xml:"version,attr"`
	ArgumentGraphs ArgumentGraphs `xml:"argument-graphs"`
}

type Premise

type Premise struct {
	XMLName   xml.Name `xml:"premise"`
	Polarity  string   `xml:"polarity,attr"`
	Type      string   `xml:"type,attr"`
	Role      string   `xml:"role,attr"`
	Statement string   `xml:"statement,attr"` // Id
}

type Premises

type Premises struct {
	Content []Premise `xml:"premise"`
}

type Statement

type Statement struct {
	XMLName    xml.Name `xml:"statement"`
	Id         string   `xml:"id,attr"`
	Value      string   `xml:"value,attr"`
	Assumption bool     `xml:"assumption,attr"`
	Standard   string   `xml:"standard,attr"`
	Atom       Atom     `xml:"s"`
}

type Statements

type Statements struct {
	Content []Statement `xml:"statement"`
}

Jump to

Keyboard shortcuts

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