entitysparql

package
v0.0.0-...-e211119 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Type  string
	Value string
}

type Bindings

type Bindings struct {
	Values interface{}
}

type DuplicateCheckingTriple

type DuplicateCheckingTriple struct {
	Rel  string
	From string
	To   string
}

This is only used for duplicate checking in a roundabout manner, since entity.Edge cannot be used as a key for a map, since it contains interface{}

type MetaData

type MetaData struct {
	Triples map[string]Tuple
}

Maps a relation (e.g. r1) to the two entities it's connceted to (e.g. e0,e1) This is our neccesary metadata for executing a query and converting the output into our standard format

type Result

type Result struct {
	Head    Select
	Results map[string][]map[string]Binding
}

Defines the result type of the JSON received as a response when sending a query to a SPARQL dataset standard by https://www.w3.org/TR/2013/REC-sparql11-results-json-20130321/

type Select

type Select struct {
	Vars []string
}

type Tuple

type Tuple struct {
	From string
	To   string
}

Go has no tuples, so we make one ourselves specifically for SPARQL subject-predicate-object relation types

Jump to

Keyboard shortcuts

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