Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dpriskorn committed Sep 9, 2021
1 parent b43024c commit c635459
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
# Global settings
wd_prefix = "http://www.wikidata.org/entity/"
user_agent = f"ItemSubjector (https://github.com/dpriskorn/ItemSubjector)"
endpoint = "https://query.wikidata.org/sparql"
7 changes: 6 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import logging

from wikibaseintegrator import wbi_config
from wikibaseintegrator.wbi_helpers import execute_sparql_query

import config
from models.task import Task
from models.wikidata import Items, Item

#wbi_config.config['SPARQL_ENDPOINT_URL'] = config.endpoint

class ScholarlyArticles(Items):
def fetch_scientific_articles_without_main_subject(self):
Expand All @@ -25,7 +30,7 @@ def fetch_scientific_articles_without_main_subject(self):
LIMIT 10
}}
}}
'''))
''', endpoint=config.endpoint))
logger.info("Got the data")
logger.debug(f"data:{results.keys()}")
try:
Expand Down

0 comments on commit c635459

Please sign in to comment.