diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index 21af49285..88f3d3077 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -6,7 +6,7 @@ Source code an issue tracker
Scholia development is hosted at https://github.com/fnielsen/scholia.
-Technolgy stack
+Technology stack
---------------
Scholia is mainly based on
@@ -16,7 +16,7 @@ Scholia is mainly based on
- JavaScript with `jQuery `__ and
`wikidata-sdk `__
- SPARQL to query the `Wikidata Query
- Service `__
+ Service `__
Getting started
---------------
diff --git a/scholia/app/templates/author.html b/scholia/app/templates/author.html
index fed66a6a1..b4f180753 100644
--- a/scholia/app/templates/author.html
+++ b/scholia/app/templates/author.html
@@ -283,7 +283,7 @@ Locations
Citation statistics
-Highly cited works
+Most cited works
Works of the author ordered according to number of citations received.
@@ -303,6 +303,6 @@ Citing authors
-Missing citing authors here? Then go to missing page.
+Missing citing authors here? Then go to the missing page.
{% endblock %}
diff --git a/scholia/app/templates/author_missing.html b/scholia/app/templates/author_missing.html
index c3ff15ff1..acfb1a0ee 100644
--- a/scholia/app/templates/author_missing.html
+++ b/scholia/app/templates/author_missing.html
@@ -4,7 +4,31 @@
{% block scripts %}
{{super()}}
-
+
+{% endblock %}
+
+
+{% block page_content %}
+
+
+ Missing coauthor items
+
+The coauthors listed below may only be represented as strings in Wikidata
+with no link to Wikidata items.
+Follow the link to use the Author disambiguator tool to try to resolve
+the authors.
+
+
+
+
+
+{% endblock %}
diff --git a/scholia/app/templates/base.html b/scholia/app/templates/base.html
index dbcced3a6..12040d5a0 100644
--- a/scholia/app/templates/base.html
+++ b/scholia/app/templates/base.html
@@ -122,6 +122,8 @@
UNION
{ [] wdt:P123 wd:{{ q }} . BIND("publisher" AS ?aspect) }
UNION
+ { [] wdt:P872 wd:{{ q }} . BIND("printer" AS ?aspect) }
+ UNION
{ [] wdt:P179 wd:{{ q }} . BIND("series" AS ?aspect) }
UNION
{ [] wdt:P859 wd:{{ q }} . BIND("sponsor" AS ?aspect) }
@@ -132,6 +134,10 @@
UNION
{ [] wdt:P1433 wd:{{ q }} . BIND("venue" AS ?aspect) }
UNION
+ { wd:{{ q }} wdt:P235 [] . BIND("chemical" AS ?aspect) }
+ UNION
+ { [] wdt:P279 | wdt:P31 wd:{{ q }} . BIND("chemical" AS ?aspect) }
+ UNION
{ wd:{{ q }} wdt:P50 | wdt:P2093 [] . BIND("work" AS ?aspect) }
}
`;
@@ -213,6 +219,7 @@
Series
Catalogue
Publisher
+ Printer
@@ -224,6 +231,7 @@
diff --git a/scholia/app/templates/chemical.html b/scholia/app/templates/chemical.html
index 6c4cb971b..5af80e3e9 100644
--- a/scholia/app/templates/chemical.html
+++ b/scholia/app/templates/chemical.html
@@ -16,8 +16,18 @@
}
} LIMIT 500
} AS %RESULTS {
- INCLUDE %RESULTS
- BIND(IRI(REPLACE(?formatterurl, '\\\\$1', str(?id))) AS ?idUrls).
+ { SELECT * WHERE {
+ INCLUDE %RESULTS
+ FILTER (?IDpred = wd:P234)
+ BIND(IRI(REPLACE(?formatterurl, '\\\\$1', ENCODE_FOR_URI(str(?id)))) AS ?idUrls).
+ }
+ } UNION {
+ SELECT * WHERE {
+ INCLUDE %RESULTS
+ FILTER (?IDpred != wd:P234)
+ BIND(IRI(REPLACE(?formatterurl, '\\\\$1', str(?id))) AS ?idUrls).
+ }
+ }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?IDpred ?IDpredLabel ?id
ORDER BY ASC(?IDpredLabel)
@@ -90,7 +100,7 @@
}
} AS %works
WITH {
- SELECT (MAX(?dates) as ?datetime) ?work (GROUP_CONCAT(DISTINCT ?type_label; separator=", ") AS ?type) (GROUP_CONCAT(?topic_label; separator=" // ") AS ?topics) WHERE {
+ SELECT (MAX(?dates) as ?datetime) ?work (GROUP_CONCAT(DISTINCT ?type_label; separator=", ") AS ?type) (GROUP_CONCAT(DISTINCT ?topic_label; separator=" // ") AS ?topics) WHERE {
INCLUDE %works
?work wdt:P921 ?topic .
OPTIONAL { ?work wdt:P31 ?type_ . ?type_ rdfs:label ?type_label . FILTER (LANG(?type_label) = 'en') }
diff --git a/scholia/app/templates/chemical_class.html b/scholia/app/templates/chemical_class.html
index ee068d3ed..7cf344212 100644
--- a/scholia/app/templates/chemical_class.html
+++ b/scholia/app/templates/chemical_class.html
@@ -75,7 +75,7 @@
}
} AS %works
WITH {
- SELECT (MAX(?dates) as ?datetime) ?work (GROUP_CONCAT(DISTINCT ?type_label; separator=", ") AS ?type) (GROUP_CONCAT(?topic_label; separator=" // ") AS ?topics) WHERE {
+ SELECT (MAX(?dates) as ?datetime) ?work (GROUP_CONCAT(DISTINCT ?type_label; separator=", ") AS ?type) (GROUP_CONCAT(DISTINCT ?topic_label; separator=" // ") AS ?topics) WHERE {
INCLUDE %works
?work wdt:P921 ?topic .
OPTIONAL { ?work wdt:P31 ?type_ . ?type_ rdfs:label ?type_label . FILTER (LANG(?type_label) = 'en') }
diff --git a/scholia/app/templates/country_topic.html b/scholia/app/templates/country_topic.html
index bde2ef9ad..9ea522ae3 100644
--- a/scholia/app/templates/country_topic.html
+++ b/scholia/app/templates/country_topic.html
@@ -56,7 +56,7 @@ Country-topic
-Authors of the country within the topics
+Authors of the country who published on the topics
@@ -70,10 +70,10 @@ Co-author graph
Co-citation graph
-Citations between authors within the country and topic.
+Citations between authors of the country who published on the topic.
-
+
diff --git a/scholia/app/templates/event_empty.html b/scholia/app/templates/event_empty.html
index 94438b8f4..25de69326 100644
--- a/scholia/app/templates/event_empty.html
+++ b/scholia/app/templates/event_empty.html
@@ -5,6 +5,39 @@
+
+{% endblock %}
+
+
+{% block page_content %}
+
+Organization
+
+Missing information with respect to the organization.
+
+
+Author name strings to be resolved
+
+The author may be represented as a string rather than a Wikidata item.
+Follow the link to use the Author disambiguator tool to try to resolve the author name.
+
+
+
+
+{% endblock %}
diff --git a/scholia/app/templates/printer.html b/scholia/app/templates/printer.html
new file mode 100644
index 000000000..7fa6ce619
--- /dev/null
+++ b/scholia/app/templates/printer.html
@@ -0,0 +1,62 @@
+{% extends "base.html" %}
+
+{% block scripts %}
+{{super()}}
+
+
+
+{% endblock %}
+
+
+
+{% block page_content %}
+Printer
+
+
+
+Printed works
+
+
+
+
+
+{% endblock %}
diff --git a/scholia/app/templates/printer_empty.html b/scholia/app/templates/printer_empty.html
new file mode 100644
index 000000000..0037095dd
--- /dev/null
+++ b/scholia/app/templates/printer_empty.html
@@ -0,0 +1,69 @@
+{% extends "base.html" %}
+
+{% block page_content %}
+
+Printer
+
+
+
+Printed works per printer
+
+
+
+
+Map of printers
+
+
+
+
+
+
+
+{% endblock %}
+
+
+
+{% block scripts %}
+{{super()}}
+
+
+
+{% endblock %}
+
+
diff --git a/scholia/app/templates/project.html b/scholia/app/templates/project.html
index 24d2a3245..27e3729ac 100644
--- a/scholia/app/templates/project.html
+++ b/scholia/app/templates/project.html
@@ -125,7 +125,7 @@ Project Partners
Timeline
-
+
diff --git a/scholia/app/templates/sponsor.html b/scholia/app/templates/sponsor.html
index 84b264623..fb0db8551 100644
--- a/scholia/app/templates/sponsor.html
+++ b/scholia/app/templates/sponsor.html
@@ -7,9 +7,10 @@
recentlyPublishedSponsoredWorkSparql = `
SELECT ?publication_date ?number_of_citations ?work ?workLabel ?quote
WITH {
- SELECT (MIN(?date) AS ?publication_date) (COUNT(?citing_work) as ?number_of_citations) ?work (SAMPLE(?quote_) AS ?quote) WHERE {
- ?work p:P859 ?sponsor_statement .
- ?sponsor_statement ps:P859 wd:{{ q }} .
+ SELECT (MIN(?date) AS ?publication_date) (COUNT(?citing_work) as ?number_of_citations) ?work (SAMPLE(?quote_) AS ?quote)
+ WHERE {
+ ?work p:P859+ ?sponsor_statement .
+ ?sponsor_statement ps:P859+ wd:{{ q }} .
OPTIONAL { ?sponsor_statement prov:wasDerivedFrom/pr:P1683 ?quote_ . }
OPTIONAL {
?work wdt:P577 ?datetime .
@@ -32,7 +33,7 @@
WITH {
SELECT ?author (count(?work) as ?publication_count) (SAMPLE(?work) AS ?example_work)
WHERE {
- ?work wdt:P859 wd:{{ q }} .
+ ?work wdt:P859+ wd:{{ q }} .
?work wdt:P50 ?author .
}
GROUP BY ?author
@@ -48,9 +49,10 @@
# Co-founders including an example funded work
SELECT ?count ?sponsor ?sponsorLabel ?example_work ?example_workLabel
WITH {
- SELECT (COUNT(?work) AS ?count) ?sponsor (SAMPLE(?work) AS ?example_work) WHERE {
- ?work wdt:P859 wd:{{ q }} .
- ?work wdt:P859 ?sponsor .
+ SELECT (COUNT(?work) AS ?count) ?sponsor (SAMPLE(?work) AS ?example_work)
+ WHERE {
+ ?work wdt:P859+ wd:{{ q }} .
+ ?work wdt:P859+ ?sponsor .
FILTER (wd:{{ q }} != ?sponsor)
}
GROUP BY ?sponsor
@@ -64,10 +66,25 @@
`
$(document).ready(function() {
- sparqlToDataTable(recentlyPublishedSponsoredWorkSparql,
- "#recently-published-sponsored-work");
- sparqlToDataTable(authorsOnSponsoredWorkSparql, "#authors-on-sponsored-work");
- sparqlToDataTable(coSponsorsSparql, "#co-sponsors");
+ sparqlToDataTable(
+ recentlyPublishedSponsoredWorkSparql,
+ "#recently-published-sponsored-work", {
+ linkPrefixes: {
+ work: "../work/",
+ }
+ });
+ sparqlToDataTable(authorsOnSponsoredWorkSparql, "#authors-on-sponsored-work", {
+ linkPrefixes: {
+ author: "../author/",
+ example_work: "../work/",
+ },
+ });
+ sparqlToDataTable(coSponsorsSparql, "#co-sponsors", {
+ linkPrefixes: {
+ sponsor: "./",
+ example_work: "../work/",
+ },
+ });
});
@@ -83,7 +100,7 @@ Sponsor
-
+
@@ -96,7 +113,7 @@
-
+
diff --git a/scholia/app/templates/topic.html b/scholia/app/templates/topic.html
index edaabfcc5..e51a34614 100644
--- a/scholia/app/templates/topic.html
+++ b/scholia/app/templates/topic.html
@@ -284,11 +284,11 @@ Venues and series pu
Citations
-Works that are highly cited from works on the topic
+Works cited from works on the topic
-Authors that are highly cited from works on the topic
+Authors cited from works on the topic
diff --git a/scholia/app/templates/venue.html b/scholia/app/templates/venue.html
index 668df9484..de995ed40 100644
--- a/scholia/app/templates/venue.html
+++ b/scholia/app/templates/venue.html
@@ -142,7 +142,7 @@
mostCitedWorksSparql = `
#defaultView:Table
-# Highly cited works published in venue
+# Most cited works published in venue
SELECT
?count
?work ?workLabel
@@ -171,7 +171,7 @@
`
mostCitedAuthorsSparql = `
-# Highly cited authors published in venue
+# Most cited authors published in venue
SELECT
?count
?author ?authorLabel
@@ -293,6 +293,11 @@ Prolific authors
+Missing authors here?
+Then go to the
+missing
+page to resolve the author names.
+