forked from eguetti/VitrineNeuroMAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsultas_vitrine_paper_wecudi
91 lines (79 loc) · 2.41 KB
/
consultas_vitrine_paper_wecudi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
consulta afiliados conferencia WECUDI
---------------------
#defaultView:Map
SELECT ?coordsLabel ?coords ?paisLabel WHERE {
Values ?Anio { 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024}
?pesquisadores p:P1416 [ps:P1416 wd:Q18477654;
pq:P39 ?position;
pq:P580 ?starttime;
pq:P582 ?endtime;
].
BIND(YEAR(?starttime) AS ?AnoIni)
BIND(YEAR(?endtime) AS ?AnoFim)
BIND(STR(?Anio) AS ?Ano)
FILTER( ?Anio >= ?AnoIni && ?Anio <= ?AnoFim )
optional {
?pesquisadores wdt:P108 ?employer.
?employer wdt:P625 ?coords.
}
optional {
?pesquisadores wdt:P108 ?employer.
?employer wdt:P17 ?pais.
?pais wdt:P625 ?coords.
}
optional {
?pesquisadores wdt:P185 ?doutor.
?pesquisadores wdt:P27 ?pais.
?pais wdt:P625 ?coords.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],pt". }
}
Consulta grafo co-autores por gênero
------------------
#defaultView:Graph
SELECT DISTINCT ?Autor1 ?Autor1Label ?rgb ?Autor2 ?Autor2Label
WITH {
SELECT ?Obra WHERE {
?Obra wdt:P361 wd:Q18477654;
wdt:P1433 ?revista;
wdt:P577 ?data_.
?Obra wdt:P50 ?Autor.
?Autor wdt:P31 wd:Q5.
?Autor wdt:P21 ?Gênero .
BIND(STR(YEAR(?data_)) AS ?Year)
OPTIONAL {
?revista wdt:P9683 ?qualis.
OPTIONAL{
?qualis rdfs:label ?label_.
FILTER(LANG(?label_)="pt-br")
}
BIND(IF(wikibase:isSomeValue(?qualis), "Sem Cla", ?label_) AS ?label)
}
FILTER( str(?label)!="B1" && str(?label)!="B2" && str(?label)!="B3"
&& str(?label)!="B4" && str(?label)!="C" && str(?label)!="NP"
&& str(?label)!="Sem Cla")
}
} AS %artigos
WITH {
SELECT distinct ?Autor1 ?Obra WHERE {
INCLUDE %artigos.
?Obra wdt:P50 ?Autor1.
?Autor1 wdt:P31 wd:Q5.
}
} AS %autor1
WITH {
SELECT distinct ?Autor1 ?Autor2 ?Obra WHERE {
INCLUDE %artigos.
INCLUDE %autor1.
?Obra wdt:P50 ?Autor2.
?Autor2 wdt:P31 wd:Q5.
FILTER(?Autor1 != ?Autor2)
}
GROUP BY ?Autor1 ?Autor2 ?Obra
} AS %autor2
WHERE {
INCLUDE %autor2.
?Autor1 wdt:P21 ?Gênero .
BIND( IF(?Gênero = wd:Q6581097, "3182BD", "FF007F") AS ?rgb)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}