structures

package
v0.0.0-...-d578a7f Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const MaxReadableDoc = 100
View Source
const NumArticlePerPageMA = 8
View Source
const SaveFilePath = "DocumentiSerialize.txt"
View Source
const ThreadBasePort = 23513

Valore da cui ricavo il numero di porta specifico del thread. thread_port = threadBasePort + id_del_thread

View Source
const URLAcademic = "https://academic.microsoft.com/"
View Source
const URLScholar = "https://scholar.google.com"

Variables

View Source
var FieldsName = []string{"Url", "Title", "Authors", "NumCitations", "LinkCitations", "Date"}
View Source
var FieldsNameMA = []string{"Title", "Url", "Authors", "NumCitations", "LinkCitations", "NumReferences",
	"LinkReferences", "Abstract", "Date", "FieldsOfStudy"}

Functions

This section is empty.

Types

type Author

type Author struct {
	Name        string //Contenuto: "nome cognome"
	Affiliation string //Ente con cui l'autore ha collaborato per scrivere la pubblicazione
}

Oltre al nome e cognome dell'autore, memorizzo anche le informazioni sulla sua affiliazione che puo' essere diversa da pubblicazione a pubblicazione ma unica per ognuna

type CiteRelation

type CiteRelation struct {
	SourceTitle      string
	DestinationTitle string
}

It stores the information about "CITE" relation obtained from db by the query:

match (s:MADocumentBasic)-[:CITE]->(d:MADocumentBasic) return s.title, d.title

docDatabase/GetGraphDocuments -- draw/CreateFile

type Document

type Document struct {
	Url           string //Singolo link a una sorgente della pubblicazione
	Title         string
	Authors       []string //Alcuni nomi degli autori del documento
	NumCitations  uint16   //Numero dei documenti che lo citano
	LinkCitations string   //URL a quei documenti
	Date          int64    //-1 if is not available
}

Document e' utilizzata per i documenti presi da Google Scholar !!!!!!!!! CAMBIA CitedBy CON Citations !!!!!!!!!!!!!!

type MADocument

type MADocument struct {
	Title          string
	URL            string
	Url            sources  //URL dei vari sorgenti disponibili
	Authors        []Author //Nomi, cognomi e affiliazioni dei vari autori
	NumCitations   int64
	LinkCitations  string //Link alla pagina di Academy con i documenti che lo citano
	NumReferences  int64
	LinkReferences string //Link alla pagina di Academy con i documenti che cita
	Abstract       string
	Date           string //time.Time //Data pubblicazione
	FieldsOfStudy  []string
}

MADocument e' utilizzata per i documenti presi da Microsoft Academic

Jump to

Keyboard shortcuts

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