Skip to content
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

Ideas for future validations #21

Open
nicolas-raoul opened this issue May 30, 2016 · 0 comments
Open

Ideas for future validations #21

nicolas-raoul opened this issue May 30, 2016 · 0 comments

Comments

@nicolas-raoul
Copy link
Collaborator

nicolas-raoul commented May 30, 2016

A few ideas for more validation.
Low urgency so no need to integrate them into ValidationReport.java now, this can be a memo for one-time SQL queries for now.

Global checks

Find listings with a wikipedia value but no wikidata value:

SELECT article, title FROM wikivoyage_listings WHERE wikipedia != "" AND wikidata == "";

Find listings with duplicate coordinates:

SELECT
    article, title, latitude, longitude, COUNT(*)
FROM
    wikivoyage_listings
GROUP BY
    latitude, longitude
HAVING 
    COUNT(*) > 1
ORDER BY
    COUNT(*) DESC;

Listings with same name in same article:

SELECT
    article, title, COUNT(*)
FROM
    wikivoyage_listings
WHERE
    title != ""
GROUP BY
    article, title
HAVING 
    COUNT(*) > 1
ORDER BY
    COUNT(*) DESC;

URL validation

?utm_source= is always unnecessary in URLs, it is a tracking code.

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

No branches or pull requests

1 participant