New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up a Listeria list for journals without main subject #1072

Closed
Daniel-Mietchen opened this Issue Dec 7, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@Daniel-Mietchen
Owner

Daniel-Mietchen commented Dec 7, 2018

To get started, here is a query for journals with "Africa" in the label or an alias:

SELECT DISTINCT ?item ?itemLabel 
WHERE {
  hint:Query hint:optimizer "None".
  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "africa haswbstatement:P31=Q5633421" . 
    ?title wikibase:apiOutput mwapi:title.
  }
  BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
  FILTER NOT EXISTS { ?item wdt:P921 [] }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
# LIMIT 10000

See also #632 on inferring journal subject from article subjects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment