-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from SOM-Research/v0.3.0
v0.3.0 released
- Loading branch information
Showing
16 changed files
with
2,422 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/* 1. top regular author attendance for a given journal */ | ||
select airn.author_id, airn.author, count(distinct year) as presence | ||
from dblp_pub_new pub join dblp_authorid_ref_new airn | ||
on pub.id = airn.id | ||
where source = 'Sci. Comput. Program.' and pub.type = 'article' | ||
group by airn.author_id | ||
order by presence desc | ||
limit 10; | ||
|
||
/* 2. top author publications for a given journal */ | ||
select airn.author_id, airn.author, count(pub.id) as publications | ||
from dblp_pub_new pub join dblp_authorid_ref_new airn | ||
on pub.id = airn.id | ||
where source = 'Sci. Comput. Program.' and pub.type = 'article' | ||
group by airn.author_id | ||
order by publications desc | ||
limit 10; | ||
|
||
/* 3. collaboration graph between authors of a given journal */ | ||
select connections.*, source_authors.publications, target_authors.publications | ||
from ( | ||
select source_author_name, source_author_id, target_author_name, target_author_id, relation_strength | ||
from | ||
( | ||
select source_authors.author as source_author_name, source_authors.author_id as source_author_id, | ||
target_authors.author as target_author_name, target_authors.author_id as target_author_id, | ||
count(*) as relation_strength, source_authors.author_id * target_authors.author_id as connection_id | ||
from ( | ||
select pub.id as pub, author, author_id | ||
from dblp_pub_new pub | ||
join dblp_authorid_ref_new airn | ||
on pub.id = airn.id | ||
where source = 'Sci. Comput. Program.' and pub.type = 'article') as source_authors | ||
join | ||
(select pub.id as pub, author, author_id | ||
from dblp_pub_new pub | ||
join dblp_authorid_ref_new airn | ||
on pub.id = airn.id | ||
where source = 'Sci. Comput. Program.' and pub.type = 'article') as target_authors | ||
on source_authors.pub = target_authors.pub and source_authors.author_id <> target_authors.author_id | ||
group by source_authors.author_id, target_authors.author_id) as x | ||
where relation_strength > 1 | ||
group by connection_id) as connections | ||
join | ||
(select airn.author_id, airn.author, count(pub.id) as publications | ||
from dblp_pub_new pub join dblp_authorid_ref_new airn | ||
on pub.id = airn.id | ||
where source = 'Sci. Comput. Program.' and pub.type = 'article' | ||
group by airn.author_id) as source_authors | ||
on connections.source_author_id = source_authors.author_id | ||
join | ||
(select airn.author_id, airn.author, count(pub.id) as publications | ||
from dblp_pub_new pub join dblp_authorid_ref_new airn | ||
on pub.id = airn.id | ||
where source = 'Sci. Comput. Program.' and pub.type = 'article' | ||
group by airn.author_id) as target_authors | ||
on connections.target_author_id = target_authors.author_id; | ||
|
||
/* 4. number of papers per author per journal per year */ | ||
create table _number_papers_per_author_per_journal_per_year as | ||
select auth.author_id as author_id, auth.author as author_name, | ||
count(distinct pub.id) as num_paper_per_author, source, year | ||
from dblp_pub_new pub | ||
join | ||
dblp_authorid_ref_new auth | ||
on pub.id = auth.id | ||
where type = 'article' | ||
group by author_id, source, year; | ||
|
||
/* 5. number of papers per jounal per year */ | ||
create table _num_of_papers_per_journal_per_year as | ||
select count(id) as num_papers, source, source_id, year | ||
from dblp_pub_new where type = 'article' and source_id is not null and source is not null | ||
group by source, source_id, year; | ||
|
||
/* 6. number of authors per journal per year*/ | ||
create table _num_authors_per_journal_per_year as | ||
select count(auth.author_id) as num_authors, count(distinct auth.author_id) as num_unique_authors, source, year | ||
from dblp_pub_new pub | ||
join | ||
dblp_authorid_ref_new auth | ||
on pub.id = auth.id | ||
where type = 'article' | ||
group by source, year; | ||
|
||
/* 6. avg number of authors per paper per journal per year */ | ||
create table _avg_number_authors_per_paper_per_journal_per_year as | ||
select avg(author_per_paper) as avg_author_per_paper, source, source_id, year | ||
from ( | ||
select count(auth.author_id) as author_per_paper, pub.id as paper_id, source, source_id, year | ||
from dblp_pub_new pub | ||
join | ||
dblp_authorid_ref_new auth | ||
on pub.id = auth.id | ||
where type = 'article' | ||
group by paper_id, source, source_id, year) as count | ||
group by source, source_id, year; | ||
|
||
/* 7. avg number of papers per author per journal per year */ | ||
create table _avg_number_papers_per_author_per_journal_per_year as | ||
select avg(num_paper_per_author) as avg_num_paper_per_author, source, source_id, year | ||
from (select auth.author_id as author_id, auth.author as author_name, | ||
count(distinct pub.id) as num_paper_per_author, source, source_id, year | ||
from dblp_pub_new pub | ||
join | ||
dblp_authorid_ref_new auth | ||
on pub.id = auth.id | ||
where type = 'article' | ||
group by author_id, source, source_id, year) as count | ||
group by source, source_id, year; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
allowOrigin=http://som-research.uoc.edu | ||
dblpSchema=dblp20150613 | ||
version=v0.2.13 | ||
<<<<<<< HEAD | ||
version=v0.3.0 |
2 changes: 1 addition & 1 deletion
2
web-server/metaScience/WebContent/WEB-INF/config.properties.jlcanovas.dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
allowOrigin=http://localhost:8000 | ||
dblpSchema=dblp20150613 | ||
version=v0.2.13 | ||
version=v0.3.0 |
2 changes: 1 addition & 1 deletion
2
web-server/metaScience/WebContent/WEB-INF/config.properties.rBoncorps.dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
allowOrigin=http://localhost:8080 | ||
dblpSchema=dblp | ||
version=v0.2.13 | ||
version=v0.3.0 |
2 changes: 1 addition & 1 deletion
2
web-server/metaScience/WebContent/WEB-INF/config.properties.server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
allowOrigin=http://som-research.uoc.edu | ||
dblpSchema=dblp20150613 | ||
version=v0.2.13 | ||
version=v0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.