Skip to content

Commit

Permalink
Fix requests by Daniel
Browse files Browse the repository at this point in the history
  • Loading branch information
carlinmack authored and fnielsen committed Oct 20, 2023
1 parent 0640f37 commit bb15758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scholia/app/templates/wikiproject.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ <h1 id="h1">WikiProject</h1>

<div id="intro"></div>

<h2 id="types">Types of items maintained by this WikiProject</h2>
<h2 id="types">Types of entities maintained by this WikiProject</h2>

<table class="table table-hover" id="maintained-table"></table>

<h2 id="focus">Types of items on focus list of this WikiProject</h2>
<h2 id="focus">Types of entities on focus list of this WikiProject</h2>

<table class="table table-hover" id="focus-table"></table>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PREFIX target: <http://www.wikidata.org/entity/{{ q }}>

SELECT ?count
?wikiproject ?wikiprojectLabel (CONCAT("/wikiproject/", SUBSTR(STR(?wikiproject), 32)) AS ?wikiprojectUrl)
?example_work ?example_workLabel (CONCAT("/work/", SUBSTR(STR(?example_work), 32)) AS ?example_workUrl)
?example_entity ?example_entityLabel (CONCAT("/", SUBSTR(STR(?example_entity), 32)) AS ?example_entityUrl)
WITH {
SELECT (COUNT(?work) AS ?count) ?wikiproject (SAMPLE(?work) AS ?example_work) WHERE {
SELECT (COUNT(?work) AS ?count) ?wikiproject (SAMPLE(?work) AS ?example_entity) WHERE {
# Find works for the specific queried wikiproject
VALUES ?p { wdt:P6104 wdt:P5008 }
SERVICE bd:sample { ?work ?p target: . bd:serviceParam bd:sample.limit 100000 }
Expand Down

0 comments on commit bb15758

Please sign in to comment.