Git Product home page Git Product logo

blacklight-cornell's People

Contributors

amccarty avatar baroquem avatar bmckinney avatar cappadona avatar chrisrlc avatar dependabot[bot] avatar es287 avatar franceswebb avatar gdelisle avatar hudajkhan avatar jac244 avatar jgr25 avatar jgreidy avatar mhk33 avatar sarah-cul avatar sk274 avatar starsplatter avatar tworrall avatar zimeon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blacklight-cornell's Issues

Multiple references to same place of education pulled in to author page from Wikidata

When a place of education has different labels in multiple Englishes (e.g., Q924289 has the label "King's College" in en vs "University of Cambridge King's College" in en-gb) in Wikidata, multiple references to the same place of education get pulled in. See E.M. Forster's author page as an example.

+ " OPTIONAL {?entity wdt:P69 ?educationRoot . ?educationRoot rdfs:label ?educated_at . FILTER (langMatches( lang(?educated_at), \"EN\" ) ) }"

Only one citizenship value pulled in to author page from Wikidata

When a person has multiple values for country of citizenship, only one is getting pulled in to the author page (unlike how educated at is handled). For example, Masha Gessen's author page displays "Citizenship: Soviet Union", while their Wikidata item has values Soviet Union, Russia, and United States of America for country of citizenship.

var sparqlQuery = "SELECT ?entity ?image ?citizenship ?label ?description (group_concat(DISTINCT ?educated_at; separator = \", \") as ?education) (group_concat(DISTINCT ?pseudos; separator = \", \") as ?pseudonyms) "
+ " WHERE { ?entity wdt:P244 '" + localname + "' . ?entity rdfs:label ?label . FILTER (langMatches( lang(?label), \"EN\" ) ) "
+ " OPTIONAL {?entity wdt:P18 ?image . ?entity wdt:P27 ?citizenshipRoot . ?citizenshipRoot rdfs:label ?citizenship . FILTER (langMatches( lang(?citizenship), \"EN\" ) ) }"
+ " OPTIONAL {?entity wdt:P69 ?educationRoot . ?educationRoot rdfs:label ?educated_at . FILTER (langMatches( lang(?educated_at), \"EN\" ) ) }"
+ " OPTIONAL {?entity wdt:P69 ?educationRoot . ?educationRoot rdfs:label ?educated_at . FILTER (langMatches( lang(?educated_at), \"EN\" ) ) }"
+ " OPTIONAL {?entity wdt:P742 ?pseudos . }"
+ " OPTIONAL {?entity schema:description ?description . FILTER(lang(?description) = \"en\")}"
+ " } GROUP BY ?entity ?image ?citizenship ?label?description LIMIT 1";

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.