caf

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"`
	Strict     bool       `xml:"strict,attr"`
	Pro        bool       `xml:"pro,attr"`
	Scheme     string     `xml:"scheme,attr"`
	Weight     float64    `xml:"weight,attr"`
	Value      float64    `xml:"value,attr"`
	Metadata   Metadata   `xml:"metadata"`
	Conclusion Conclusion `xml:"conclusion"`
	Premises   Premises   `xml:"premises"`
}

type Arguments

type Arguments struct {
	XMLName xml.Name   `xml:"arguments"`
	Content []Argument `xml:"argument"`
}

type CAF

type CAF struct {
	XMLName    xml.Name   `xml:"caf"`
	Version    string     `xml:"version,attr"`
	Metadata   Metadata   `xml:"metadata"`
	Statements Statements `xml:"statements"`
	Arguments  Arguments  `xml:"arguments"`
	References References `xml:"references"`
}

func (*CAF) Caes

func (caf *CAF) Caes() *caes.ArgGraph

Convert to an CAF argument graph to a CAES argument graph

type Conclusion

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

type Description

type Description struct {
	XMLName xml.Name `xml:"description"`
	Lang    string   `xml:"lang,attr"`
	Text    string   `xml:",innerxml"`
}

type Descriptions

type Descriptions struct {
	XMLName xml.Name      `xml:"descriptions"`
	Content []Description `xml:"description"`
}

type Metadata

type Metadata struct {
	XMLName      xml.Name     `xml:"metadata"`
	Key          string       `xml:"key,attr"`
	Contributor  string       `xml:"contributor,attr"`
	Coverage     string       `xml:"coverage,attr"`
	Creator      string       `xml:"creator,attr"`
	Date         string       `xml:"date,attr"`
	Format       string       `xml:"format,attr"`
	Identifier   string       `xml:"identifier,attr"`
	Language     string       `xml:"language,attr"`
	Publisher    string       `xml:"publisher,attr"`
	Relation     string       `xml:"relation,attr"`
	Rights       string       `xml:"rights,attr"`
	Source       string       `xml:"source,attr"`
	Subject      string       `xml:"subject,attr"`
	Title        string       `xml:"title,attr"`
	Type         string       `xml:"type,attr"`
	Descriptions Descriptions `xml:"descriptions"`
}

type Premise

type Premise struct {
	XMLName   xml.Name `xml:"premise"`
	Positive  bool     `xml:"positive,attr"`
	Role      string   `xml:"role,attr"`
	Implicit  string   `xml:"implicit,attr"`
	Statement string   `xml:"statement,attr"` // Id
}

type Premises

type Premises struct {
	XMLName xml.Name  `xml:"premises"`
	Content []Premise `xml:"premise"`
}

type References

type References struct {
	XMLName xml.Name   `xml:"references"`
	Content []Metadata `xml:"metadata"`
}

type Statement

type Statement struct {
	XMLName  xml.Name     `xml:"statement"`
	Id       string       `xml:"id,attr"`
	Weight   float64      `xml:"weight,attr"`
	Value    float64      `xml:"value,attr"`
	Standard string       `xml:"standard,attr"`
	Atom     string       `xml:"atom,attr"`
	Main     bool         `xml:"main,attr"`
	Metadata Metadata     `xml:"metadata"`
	Texts    Descriptions `xml:"descriptions"`
}

type Statements

type Statements struct {
	XMLName xml.Name    `xml:"statements"`
	Content []Statement `xml:"statement"`
}

Jump to

Keyboard shortcuts

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