Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조성현
/
graph-visualization
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
조성현
2017-06-21 17:02:08 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cdca4915018923007f5b45da9d733d2e636a4384
cdca4915
1 parent
08258573
add example of count citation
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
PaperGraph/main.cpp
PaperGraph/stdafx.h
PaperGraph/main.cpp
View file @
cdca491
...
...
@@ -22,6 +22,21 @@ int main(int argc, char *argv[]) {
rapidjson
::
Document
d
;
d
.
Parse
(
_curl_processor
.
get_buffer
().
c_str
());
rapidjson
::
Value
&
value_status
=
d
[
"status"
];
std
::
string
status_str
=
value_status
.
GetString
();
printf
(
"status: %s
\n
"
,
status_str
.
c_str
());
//if (status_str != "ok") {
// printf("status: %s\n", status_str.c_str());
// printf("not ok\n");
// return 1;
//}
rapidjson
::
Value
&
value_message
=
d
[
"message"
];
rapidjson
::
Value
&
citation_count
=
value_message
[
"is-referenced-by-count"
];
int
cit_cnt
=
citation_count
.
GetInt
();
printf
(
"citation: %d
\n
"
,
cit_cnt
);
return
0
;
}
...
...
PaperGraph/stdafx.h
View file @
cdca491
...
...
@@ -52,8 +52,6 @@
#include <bibtexreader.hpp>
#include <rapidjson/document.h>
#include <rapidjson/writer.h>
#include <rapidjson/stringbuffer.h>
#include "bibtex_processor.h"
#include "curl_processor.h"
...
...
Please
register
or
login
to post a comment