Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releasing v0.3.0 #55

Merged
merged 8 commits into from
Sep 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions queries/journal_metrics.sql
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;
3 changes: 2 additions & 1 deletion web-server/metaScience/WebContent/WEB-INF/config.properties
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
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
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
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
10 changes: 10 additions & 0 deletions web-server/metaScience/WebContent/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,16 @@ footer a:link, footer a:visited, footer a:hover, footer a:active {
padding-right: 10px;
}

.nav-tabs > li > a {
background: #DADADA;
border-radius: 0;
box-shadow: inset 0 -8px 7px -9px rgba(0,0,0,.4),-2px -2px 5px -2px rgba(0,0,0,.4);
font-family: 'Helvetica Neue', Helvetica;
font-size: 18px;
font-weight: 500;
color: #2b5a70;
}

.socialBtnTop {
float : right;
margin-top: 30px;
Expand Down
59 changes: 39 additions & 20 deletions web-server/metaScience/WebContent/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div class="col-md-12">
<!--<img src="imgs/icon.png"/>-->
<h1><a href="http://som-research.uoc.edu/tools/metaScience">MetaScience</a></h1>
<h2>Analyzing the research profile of authors and conferences</h2>
<h2>Analyzing the research profile of authors, conferences and journals</h2>
<p>
<button class="btn" onclick="location.href='https://github.com/SOM-Research/metaScience'">
<img style="float: left; margin-right: 0px; margin-top: 0px; margin-right: 10px; padding-top: 0px; padding-left: 0px; width: 18px;" src="imgs/gh-icon.png"/>
Expand Down Expand Up @@ -83,30 +83,49 @@ <h4 style="margin-left: 20px;">...whether the number of co-authors per paper inc
</div>
</div>
</div>



<div class="row">
<h1 class="text-center">We can help you!</h1>
<div class="row" id="tabs">

<div class="col-md-6">
<div class="selectionBox">
<h2>Search by conference</h2>
<p class="text-center"><div id='vcombobox'></div></p>
<p class="text-center">
<button id="venueSearchBtn" class="btn btn-block" >Show me!</button>
</p>
</div>
</div>
<ul style="margin-top:15px;" class="nav nav-tabs nav-justified" role="tablist">
<li role="presentation" class="active"><a href="#venueSelection" aria-controls="venueSelection" role="tab" data-toggle="tab">Conference</a></li>
<li role="presentation"><a href="#authorSelection" aria-controls="authorSelection" role="tab" data-toggle="tab">Author</a></li>
<li role="presentation"><a href="#journalSelection" aria-controls="journalSelection" role="tab" data-toggle="tab">Journal</a></li>
</ul>

<div class="col-md-6">
<div class="selectionBox">
<h2>Search by author</h2>
<p class="text-center"><div id="acombobox"></div><p>
<p class="text-center">
<button id="authorSearchBtn" class="btn btn-block" >Show me!</button>
</p>
</div>
</div>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="venueSelection">
<div class="selectionBox">
<h2>Search by conference</h2>
<p class="text-center"><div id='vcombobox'></div></p>
<p class="text-center">
<button id="venueSearchBtn" class="btn btn-block" >Show me!</button>
</p>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="authorSelection">
<div class="selectionBox">
<h2>Search by author</h2>
<p class="text-center"><div id="acombobox"></div><p>
<p class="text-center">
<button id="authorSearchBtn" class="btn btn-block" >Show me!</button>
</p>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="journalSelection">
<div class="selectionBox">
<h2>Search by journal</h2>
<p class="text-center"><div id="jcombobox"></div><p>
<p class="text-center">
<button id="journalSearchBtn" class="btn btn-block" >Show me!</button>
</p>
</div>
</div>
</div>
</div>
</div>
</div>


Expand Down
Loading