Skip to content

Commit

Permalink
First upload of new website
Browse files Browse the repository at this point in the history
  • Loading branch information
essepuntato committed Feb 22, 2018
1 parent f17cdca commit 3267a7d
Show file tree
Hide file tree
Showing 89 changed files with 15,180 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__*/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# website
The code and content of the official website of OpenCitations

# Install web.py (Python 3)

`pip3 install git+https://github.com/webpy/webpy#egg=web.py --user`
45 changes: 45 additions & 0 deletions conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"html": "html-template",
"occ_base_path": "/srv/oc/data/corpus/",
"oc_base_url": "https://w3id.org/oc",
"tmp_dir": "/tmp/",
"json_context_path": "/srv/oc/data/corpus/context.json",
"sparql_endpoint": "http://localhost:3000/blazegraph/sparql",
"corpus_local_url": "/corpus/",
"virtual_local_url": "/virtual/",
"ontology_base_url": "https://w3id.org/oc/",
"documentation_base_path": "ontology/",
"ontology_url": "/src/material/ontology/ontology.owl",
"onto_acronym": "ontology",
"dir_split_number": "10000",
"file_split_number": "1000",
"default_dir": "_",
"statistics": "/srv/data/log/occ_statistics.csv",
"log_dir": "/srv/web/log/",
"label_conf": {
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "is a",
"http://xmlns.com/foaf/0.1/givenName": "given name",
"http://xmlns.com/foaf/0.1/familyName": "family name",
"http://prismstandard.org/namespaces/basic/2.0/startingPage": "first page",
"http://prismstandard.org/namespaces/basic/2.0/endingPage": "last page",
"http://purl.org/dc/terms/issued": "publication date",
"http://purl.org/dc/terms/modified": "modification date",
"http://purl.org/spar/biro/references": "references"
},
"ved_conf": {
"ci": [
{
"query": "PREFIX cito: <http://purl.org/spar/cito/> PREFIX fabio: <http://purl.org/spar/fabio/> SELECT ?citing ?cited ?citing_year ?cited_year WHERE { BIND(<https://w3id.org/oc/corpus/br/[[CITING]]> AS ?citing) BIND(<https://w3id.org/oc/corpus/br/[[CITED]]> AS ?cited) ?citing cito:cites ?cited . OPTIONAL { ?citing fabio:hasPublicationYear ?citing_year } OPTIONAL { ?cited fabio:hasPublicationYear ?cited_year } }",
"prefix": "",
"tp": "https://w3id.org/oc/sparql",
"use_it": "yes"
},
{
"query": "SELECT ?citing ?cited ?citing_year ?cited_year WHERE { BIND(wd:Q[[CITING]] AS ?citing) BIND(wd:Q[[CITED]] AS ?cited) ?citing wdt:P2860 ?cited . OPTIONAL { ?citing wdt:P577 ?citing_year } OPTIONAL { ?cited wdt:P577 ?cited_year } } LIMIT 1",
"prefix": "010",
"tp": "https://query.wikidata.org/sparql",
"use_it": "yes"
}
]
}
}
45 changes: 45 additions & 0 deletions conf_local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"html": "html-template",
"occ_base_path": "../test/data/corpus/",
"oc_base_url": "http://localhost:8000",
"tmp_dir": "/Users/six/Desktop/",
"json_context_path": "../corpus/context.json",
"sparql_endpoint": "http://localhost:3000/blazegraph/sparql",
"corpus_local_url": "/corpus/",
"virtual_local_url": "/virtual/",
"ontology_base_url": "http://localhost:8000/",
"documentation_base_path": "ontology/",
"ontology_url": "../ontology/ontology.owl",
"onto_acronym": "ontology",
"dir_split_number": "6",
"file_split_number": "3",
"default_dir": "_",
"statistics": "../test/data/log/occ_statistics.csv",
"log_dir": "../test/web/log/",
"label_conf": {
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "is a",
"http://xmlns.com/foaf/0.1/givenName": "given name",
"http://xmlns.com/foaf/0.1/familyName": "family name",
"http://prismstandard.org/namespaces/basic/2.0/startingPage": "first page",
"http://prismstandard.org/namespaces/basic/2.0/endingPage": "last page",
"http://purl.org/dc/terms/issued": "publication date",
"http://purl.org/dc/terms/modified": "modification date",
"http://purl.org/spar/biro/references": "references"
},
"ved_conf": {
"ci": [
{
"query": "PREFIX cito: <http://purl.org/spar/cito/> PREFIX fabio: <http://purl.org/spar/fabio/> SELECT ?citing ?cited ?citing_year ?cited_year WHERE { BIND(<https://w3id.org/oc/corpus/br/[[CITING]]> AS ?citing) BIND(<https://w3id.org/oc/corpus/br/[[CITED]]> AS ?cited) ?citing cito:cites ?cited . OPTIONAL { ?citing fabio:hasPublicationYear ?citing_year } OPTIONAL { ?cited fabio:hasPublicationYear ?cited_year } }",
"prefix": "",
"tp": "https://w3id.org/oc/sparql",
"use_it": "yes"
},
{
"query": "SELECT ?citing ?cited ?citing_year ?cited_year WHERE { BIND(wd:Q[[CITING]] AS ?citing) BIND(wd:Q[[CITED]] AS ?cited) ?citing wdt:P2860 ?cited . OPTIONAL { ?citing wdt:P577 ?citing_year } OPTIONAL { ?cited wdt:P577 ?cited_year } } LIMIT 1",
"prefix": "010",
"tp": "https://query.wikidata.org/sparql",
"use_it": "yes"
}
]
}
}
45 changes: 45 additions & 0 deletions conf_remote.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"html": "html-template",
"occ_base_path": "/srv/oc/data/corpus/",
"oc_base_url": "https://w3id.org/oc",
"tmp_dir": "/tmp/",
"json_context_path": "/srv/oc/data/corpus/context.json",
"sparql_endpoint": "http://localhost:3000/blazegraph/sparql",
"corpus_local_url": "/corpus/",
"virtual_local_url": "/virtual/",
"ontology_base_url": "https://w3id.org/oc/",
"documentation_base_path": "ontology/",
"ontology_url": "/src/material/ontology/ontology.owl",
"onto_acronym": "ontology",
"dir_split_number": "10000",
"file_split_number": "1000",
"default_dir": "_",
"statistics": "/srv/data/log/occ_statistics.csv",
"log_dir": "/srv/web/log/",
"label_conf": {
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "is a",
"http://xmlns.com/foaf/0.1/givenName": "given name",
"http://xmlns.com/foaf/0.1/familyName": "family name",
"http://prismstandard.org/namespaces/basic/2.0/startingPage": "first page",
"http://prismstandard.org/namespaces/basic/2.0/endingPage": "last page",
"http://purl.org/dc/terms/issued": "publication date",
"http://purl.org/dc/terms/modified": "modification date",
"http://purl.org/spar/biro/references": "references"
},
"ved_conf": {
"ci": [
{
"query": "PREFIX cito: <http://purl.org/spar/cito/> PREFIX fabio: <http://purl.org/spar/fabio/> SELECT ?citing ?cited ?citing_year ?cited_year WHERE { BIND(<https://w3id.org/oc/corpus/br/[[CITING]]> AS ?citing) BIND(<https://w3id.org/oc/corpus/br/[[CITED]]> AS ?cited) ?citing cito:cites ?cited . OPTIONAL { ?citing fabio:hasPublicationYear ?citing_year } OPTIONAL { ?cited fabio:hasPublicationYear ?cited_year } }",
"prefix": "",
"tp": "https://w3id.org/oc/sparql",
"use_it": "yes"
},
{
"query": "SELECT ?citing ?cited ?citing_year ?cited_year WHERE { BIND(wd:Q[[CITING]] AS ?citing) BIND(wd:Q[[CITED]] AS ?cited) ?citing wdt:P2860 ?cited . OPTIONAL { ?citing wdt:P577 ?citing_year } OPTIONAL { ?cited wdt:P577 ?cited_year } } LIMIT 1",
"prefix": "010",
"tp": "https://query.wikidata.org/sparql",
"use_it": "yes"
}
]
}
}
115 changes: 115 additions & 0 deletions html-template/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
$def with (pages, active)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />


<link rel="icon" href="/static/favicon.ico" />
<title>OpenCitations - About</title>

<!-- Bootstrap core CSS -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />

<!-- Font Awesome -->
<link href="/static/css/font-awesome.min.css" rel="stylesheet" />

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="/static/css/ie10-viewport-bug-workaround.css" rel="stylesheet" />

<!-- Custom styles for this template -->
<link href="/static/css/cover.css" rel="stylesheet" />

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="/static/js/html5shiv.min.js"><![CDATA[ ]]></script>
<script src="/static/js/respond.min.js"><![CDATA[ ]]></script>
<![endif]-->
</head>
<body>
<div class="cover-container">
<div class="masthead clearfix">

<nav class="navbar">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<h3 class="masthead-brand">
<a href="/"><span class="oc-purple">Open</span><span class="oc-blue">Citations</span></a>
</h3>
</div>

<div class="navbar-collapse collapse">

<div class="masthead-search">
<form class="input-group" action="search" method="get">
<input type="text" class="form-control oc-purple" placeholder="Search..." name="text">
<div class="input-group-btn">
<button class="btn btn-default oc-purple" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</div>
</form>
</div>

<div class="masthead-pages">
<ul class="nav masthead-nav navbar-nav">
$for page in pages:
$if page == active:
<li class="active">
$else:
<li>
<a href="$page">
$if page == "/":
Home
$else:
$page.title()
</a>
</li>
</ul>
</div>

</div>
</nav>

</div>

<div class="cover left">
<h3>$active.title()</h3>
<p><span class="oc-purple">Open</span><span class="oc-blue">Citations</span> has formally started in 2010 as a one-year project funded by <a href="http://www.jisc.ac.uk/whatwedo/programmes/inf11/jiscexpo/jiscopencitation.aspx">JISC</a> (with a subsequent extension), with David Shotton as director, who at that time was working in the Department of Zoology at the University of Oxford. The project was global in scope, and was designed to change the face of scientific publishing and scholarly communication, since it aimed to publish open bibliographic citation information in RDF and to make citation links as easy to traverse as Web links. The main deliverable of the project, among <a href="https://opencitations.wordpress.com/2011/07/01/jisc-open-citations-project-–-final-project-blog-post/">several outcomes</a>, was the release of an open repository of scholarly citation data described using the <a href="http://www.sparontologies.net/">SPAR (Semantic Publishing and Referencing) Ontologies</a>, and named the <span class="oc-purple">Open</span><span class="oc-blue">Citations</span> Corpus (OCC), which was initially populated with the citations from journal articles within the <a href="http://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/">Open Access Subset of PubMed Central</a>.</p>
<p>At the end of 2015 Silvio Peroni joined <span class="oc-purple">Open</span><span class="oc-blue">Citations</span> as co-director and technical manager, with the aim of setting up a new instantiation of the Corpus based on a new metadata schema and employing several new technologies to automate the ingestion of fresh citation metadata from authoritative sources. The current instantiation of the OCC is hosted by the Department of Computer Science and Engineering (DISI) at the University of Bologna, and since the beginning of July 2016 has been ingesting, processing and publishing reference lists of scholarly papers available in <a href="http://europepmc.org/">Europe PubMed Central</a>. Additional metadata for these citations are obtained from <a href="https://www.crossref.org/">Crossref</a> and (for authors) <a href="https://orcid.org/">ORCID</a>.</p>
</div>
</div>

<footer>
<div class="container">
<div class="row">
<div id="disi" class="col-xs-12 col-sm-6">
<p><a href="http://www.cse.unibo.it"><img src="/static/img/disi-unibo.png" /></a></p>
</div>
<div id="ox" class="col-xs-12 col-sm-6">
<p><a href="http://www.ox.ac.uk"><img src="/static/img/uniox.png" /></a></p>
</div>
</div>
</div>
<p>
<a class="social oc-purple" href="mailto:[email protected]"><i class="fa fa-envelope" aria-hidden="true"></i></a>
<a class="social oc-purple" href="http://www.twitter.com/opencitations"><i class="fa fa-twitter" aria-hidden="true"></i></a>
<a class="social oc-blue" href="http://github.com/essepuntato/opencitations"><i class="fa fa-github" aria-hidden="true"></i></a>
<a class="social oc-blue" href="https://opencitations.wordpress.com/"><i class="fa fa-wordpress" aria-hidden="true"></i></a>
</p>
</footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/static/js/jquery.min.js"><![CDATA[ ]]></script>
<script>window.jQuery || document.write('<script src="/static/js/jquery.min.js"><\/script>')</script>
<script src="/static/js/bootstrap.min.js"><![CDATA[ ]]></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="/static/js/ie10-viewport-bug-workaround.js"><![CDATA[ ]]></script>
</body>
</html>
69 changes: 69 additions & 0 deletions html-template/browser.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
$def with (data_path)

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/static/favicon.ico">


<!-- Bootstrap core CSS -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="/static/js/html5shiv.min.js"></script>
<script src="/static/js/respond.min.js"></script>
<![endif]-->

<!-- Custom styles for this template -->
<link href="/static/css/oc.css" rel="stylesheet">

<!-- ldd style -->
<link href="/static/css/browser.css" rel="stylesheet">
</head>
<!-- NAVBAR
================================================== -->
<body>
<!-- Wrap the rest of the page in another container to center all the content. -->

<div id="browser" class="browser">
<div id="browser_info" class="browser-info">
<div id="browser_header" class="browser-header"></div>
<div id="browser_details" class="browser-details"></div>
</div>
<div id="browser_metrics" class="browser-metrics"></div>

<!-- use this div to build a table of results -->
<div id="search" class="search">
<div id="search_body" class="search-body">
<div id="search_results" class="search-results"></div>
</div>
</div>

</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="/static/js/ie10-viewport-bug-workaround.js"></script>

<script src="/static/js/search.js"></script>
<link href="/static/css/search.css" rel="stylesheet">
<!--<script type="text/javascript" src="/static/js/search-conf.js"></script>-->

<script src="/static/js/browser.js"></script>
<script>
browser.do_sparql_query("$data_path");
</script>

</body>
</html>
Loading

0 comments on commit 3267a7d

Please sign in to comment.