cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute is entry point for cobra cli application

Types

type Identities

type Identities []Identity

Identities is sequence

func (*Identities) UnmarshalJSON

func (seq *Identities) UnmarshalJSON(b []byte) error

UnmarshalJSON handler either Seq<Identity> or Identity parseing

type Identity

type Identity struct {
	ID string `json:"@id,omitempty"`
}

Identity of other graph node

"rdfs:subClassOf": {
  "@id": "schema:Text"
}

type Schema

type Schema struct {
	ID            string     `json:"@id,omitempty"`
	Type          String     `json:"@type,omitempty"`
	Comment       String     `json:"rdfs:comment,omitempty"`
	Label         String     `json:"rdfs:label,omitempty"`
	SubPropertyOf Identities `json:"rdfs:subPropertyOf,omitempty"`
	SubClassOf    Identities `json:"rdfs:subClassOf,omitempty"`
	Domain        Identities `json:"schema:domainIncludes,omitempty"`
	Range         Identities `json:"schema:rangeIncludes,omitempty"`
}

Schema specification of entity from schema.org

{
	"@id": "schema:URL",
	"@type": "rdfs:Class",
	"rdfs:comment": "Data type: URL.",
	"rdfs:label": "URL",
	"rdfs:subClassOf": {
		"@id": "schema:Text"
	}
}

type SchemaOrg

type SchemaOrg struct {
	Graph []Schema `json:"@graph,omitempty"`
}

SchemaOrg is JSON-LD representation of schema.org

type String

type String []string

String is either single string or array of strings

func (*String) UnmarshalJSON

func (seq *String) UnmarshalJSON(b []byte) error

UnmarshalJSON handler either Seq<Identity> or Identity parseing

Jump to

Keyboard shortcuts

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