Lokal_Profil (André Costa)
(WMSE)

Projects (102)

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Thursday

  • Clear sailing ahead.

User Details

User Since
Oct 3 2014, 2:51 PM (155 w, 3 d)
Availability
Available
LDAP User
Lokal Profil
MediaWiki User
Lokal Profil

Developer at Wikimedia Sverige (WMSE). Also known as Lokal_Profil when I'm not wearing my WMSE hat.

Recent Activity

Today

Lokal_Profil added a comment to T176560: Better unused images output for sparql harvests.

Another good change would be to append #P18 to the links. That way it's easy to see if someone has already added an image.

Tue, Sep 26, 8:57 AM · Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T117327: Sort and group "Unused images" and "Missing commons category links" by the page name.

Note that the description at Commons:Monuments_database/Unused_images would need to be updated to reflect the changes in the structure.

Tue, Sep 26, 8:45 AM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil updated subscribers of T176724: Investigate why monuments_without_id is not run.

@JeanFred @Multichill: Have you got any memories of why this was deactivated or when?

Tue, Sep 26, 8:43 AM · Wiki-Loves-Monuments-Database
Lokal_Profil created T176724: Investigate why monuments_without_id is not run.
Tue, Sep 26, 8:42 AM · Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T176722: Make missing_commonscat_links support sparql datasets.

Change 380060 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] [WIP]Restructure missing_commonscat_links Statistics

https://gerrit.wikimedia.org/r/380060

Tue, Sep 26, 8:38 AM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil created T176722: Make missing_commonscat_links support sparql datasets.
Tue, Sep 26, 8:31 AM · Patch-For-Review, Wiki-Loves-Monuments-Database

Yesterday

JeanFred awarded T174333: Add Australia to Monuments Database a Party Time token.
Mon, Sep 25, 9:59 PM · Wiki-Loves-Monuments-Sources, Patch-For-Review, Wiki-Loves-Monuments (2017)
Lokal_Profil closed T174426: Add Uganda in English to monuments database as Resolved.
Mon, Sep 25, 9:45 PM · Patch-For-Review, Wiki-Loves-Monuments (2017), Wiki-Loves-Monuments-Sources
Lokal_Profil added a comment to T117327: Sort and group "Unused images" and "Missing commons category links" by the page name.

Change 379141 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] [WIP]Group unused images per source page

https://gerrit.wikimedia.org/r/379141

Mon, Sep 25, 9:35 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T176560: Better unused images output for sparql harvests.

en:User:Gnangarra/Unusued_images_Australia is an example of what a sparql list looks like (before T117327: Sort and group "Unused images" and "Missing commons category links" by the page name )

Mon, Sep 25, 9:34 PM · Wiki-Loves-Monuments-Database
Lokal_Profil closed T174333: Add Australia to Monuments Database as Resolved.

Woho the first real sparql harvest in production =)

Mon, Sep 25, 9:33 PM · Wiki-Loves-Monuments-Sources, Patch-For-Review, Wiki-Loves-Monuments (2017)

Sun, Sep 24

Lokal_Profil updated the task description for T176586: Make better use of Commons:Monuments database/Unknown fields.
Sun, Sep 24, 9:22 PM · Wiki-Loves-Monuments-Sources, Wiki-Loves-Monuments-Database
Lokal_Profil updated subscribers of T176586: Make better use of Commons:Monuments database/Unknown fields.

Does this sound like a sensible thing to do @Effeietsanders @JeanFred? It would tell local organisers what these cryptic reports mean and how simple typos can be fixed. The stats would give wikignomes a starting point for helping out.

Sun, Sep 24, 9:21 PM · Wiki-Loves-Monuments-Sources, Wiki-Loves-Monuments-Database
Lokal_Profil created T176586: Make better use of Commons:Monuments database/Unknown fields.
Sun, Sep 24, 9:17 PM · Wiki-Loves-Monuments-Sources, Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T117330: Solution of "unknown fields" from monument lists.

Yay! I must say − I like how we iterated over the implementation on this :)

Sun, Sep 24, 9:07 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T174426: Add Uganda in English to monuments database.

@Effeietsanders It looks like one of the id's went wrong. See https://en.wikipedia.org/wiki/Talk:List_of_National_Cultural_Sites_in_Western_Region,_Uganda#Wrong_id

Sun, Sep 24, 8:24 PM · Patch-For-Review, Wiki-Loves-Monuments (2017), Wiki-Loves-Monuments-Sources
Lokal_Profil added a comment to T168480: Perform core Cloud Services rebranding.

Unsure where this fits but https://www.wikimedia.org/ should be updated with the new names (at least in the mouse-over)

Sun, Sep 24, 7:24 PM · Patch-For-Review, User-bd808, Goal, cloud-services-team (FY2017-18)
Lokal_Profil added a comment to T174333: Add Australia to Monuments Database.

I've now added these as sub-pages to the contact's (@Gnangarra ) user page on en.wiki. If you want them somewhere else let me know.

Sun, Sep 24, 3:32 PM · Wiki-Loves-Monuments-Sources, Patch-For-Review, Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T176530: ErfgoedBot write-to-wiki crashes when hitting AbuseFilter (PageSaveRelatedError).

If the page now updates it is fine. Just wasn't sure what had triggered the abuse filter

Sun, Sep 24, 10:05 AM · Patch-For-Review, Wiki-Loves-Monuments-Database

Sat, Sep 23

Lokal_Profil added a comment to T176200: Add usage instructions to "unused images" reports.

Created a patch to add the link to the top of all reports and added a section about the /header subpage to the landing page.

Sat, Sep 23, 10:49 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil updated the task description for T176200: Add usage instructions to "unused images" reports.
Sat, Sep 23, 10:48 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T176560: Better unused images output for sparql harvests.

Primarily created this to discuss which is best. There is a TODO in the code which should be removed if we decide to not implement a different format.

Sat, Sep 23, 9:40 PM · Wiki-Loves-Monuments-Database
Lokal_Profil added a project to T176560: Better unused images output for sparql harvests: Wiki-Loves-Monuments-Database.
Sat, Sep 23, 9:39 PM · Wiki-Loves-Monuments-Database
Lokal_Profil created T176560: Better unused images output for sparql harvests.
Sat, Sep 23, 9:39 PM · Wiki-Loves-Monuments-Database
Lokal_Profil updated subscribers of T176530: ErfgoedBot write-to-wiki crashes when hitting AbuseFilter (PageSaveRelatedError).

@LilyOfTheWest: could you investigate why we hit the abuse filter? Just to make sure future updates happen ok.

Sat, Sep 23, 4:22 PM · Patch-For-Review, Wiki-Loves-Monuments-Database

Thu, Sep 21

Lokal_Profil closed T174614: Add mechanism for switching between writing to wiki and outputting locally as Resolved.
Thu, Sep 21, 11:21 PM · Patch-For-Review, Wiki-Loves-Monuments-Database

Tue, Sep 19

Lokal_Profil added a comment to T176200: Add usage instructions to "unused images" reports.

Updated the descriptions since some of these suggestions were already implemented

Tue, Sep 19, 11:01 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil updated the task description for T176200: Add usage instructions to "unused images" reports.
Tue, Sep 19, 11:00 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil updated the task description for T176200: Add usage instructions to "unused images" reports.
Tue, Sep 19, 10:55 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T117330: Solution of "unknown fields" from monument lists.

Change 379126 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] Harvest the source page of unknown fields

https://gerrit.wikimedia.org/r/379126

Tue, Sep 19, 10:14 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T174333: Add Australia to Monuments Database.

@Effeietsanders I created T176200 to deal with the needed instructions.

Tue, Sep 19, 9:31 AM · Wiki-Loves-Monuments-Sources, Patch-For-Review, Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T176200: Add usage instructions to "unused images" reports.

@Effeietsanders @JeanFred Do you think the solution described above would work?

Tue, Sep 19, 9:26 AM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil created T176200: Add usage instructions to "unused images" reports.
Tue, Sep 19, 9:25 AM · Patch-For-Review, Wiki-Loves-Monuments-Database

Mon, Sep 18

Lokal_Profil updated subscribers of T174614: Add mechanism for switching between writing to wiki and outputting locally.
Mon, Sep 18, 9:12 PM · Patch-For-Review, Wiki-Loves-Monuments-Database

Thu, Sep 14

Lokal_Profil closed T153746: ErfgoedBot categorisation process should ignore hidden categories as Resolved.

Resolving this. Hidden categories now ignored

Thu, Sep 14, 9:57 PM · Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T174261: Add Egypt in Arabic to monuments database.

@Bachounda Could you give a suggestion where in ar.wiki we should put the "unused images" and "images without id" report pages?

Thu, Sep 14, 9:56 PM · Patch-For-Review, Wiki-Loves-Monuments (2017), Wiki-Loves-Monuments-Sources
Lokal_Profil added a comment to T174340: Add Iraq in Arabic to monuments database.

The report pages for "unused images" and "images without id" are still missing.

Thu, Sep 14, 9:52 PM · Patch-For-Review, Wiki-Loves-Monuments-Sources, Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T174871: Solve ErfgoedBot categorisation problem.

Before closing this task we should (possibly as a subtask) reach out to the local organisers of the skipped countries and explain what they need to do to get of the list and why it is important that they do (i.e. the way to find things in commons is through categories)

Thu, Sep 14, 9:48 PM · Patch-For-Review, Wiki-Loves-Monuments-Database, Wiki-Loves-Monuments (2017)
Lokal_Profil claimed T175839: ErfgoedBot categorisation fails with 'unicode' object has no attribute 'isHiddenCategory'.
Thu, Sep 14, 11:25 AM · Patch-For-Review, Wiki-Loves-Monuments-Database

Wed, Sep 13

Lokal_Profil added a comment to T175839: ErfgoedBot categorisation fails with 'unicode' object has no attribute 'isHiddenCategory'.

For which run/country did you get this?

Wed, Sep 13, 8:08 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T175839: ErfgoedBot categorisation fails with 'unicode' object has no attribute 'isHiddenCategory'.

Sounds like a category name, rather then a pywikibot.Category object, made it's way into the list

Wed, Sep 13, 7:38 PM · Patch-For-Review, Wiki-Loves-Monuments-Database
Lokal_Profil added a comment to T174340: Add Iraq in Arabic to monuments database.

The report pages for "unused images" and "images without id" are still missing.

Wed, Sep 13, 11:38 AM · Patch-For-Review, Wiki-Loves-Monuments-Sources, Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T174261: Add Egypt in Arabic to monuments database.

I'll review the patch but we should leave this task open afterwards so that we can update the config with an "unused images" and "images without id" report page.

Wed, Sep 13, 11:31 AM · Patch-For-Review, Wiki-Loves-Monuments (2017), Wiki-Loves-Monuments-Sources

Tue, Sep 12

Effeietsanders awarded T174245: Add Peru in Spanish to monuments database a Cookie token.
Tue, Sep 12, 4:29 PM · Patch-For-Review, Wiki-Loves-Monuments-Sources, Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T175363: Allow for Visual Editor signing in the Projekt namespace on se.wikimedia.

Sorry for being unclear in the request. VisualEditor is already active in the namespace, what we wish is for the signing icon to be activated for this namespace.

Tue, Sep 12, 7:49 AM · WMSE, Wikimedia-Site-requests

Sat, Sep 9

Lokal_Profil moved T175420: Write base code for ir_fa migration from Backlog to Review on the User-LokalProfil board.
Sat, Sep 9, 4:34 PM · User-LokalProfil, Patch-For-Review, Connected-Open-Heritage-Wikidata-migration (Ir_fa)
Lokal_Profil claimed T175420: Write base code for ir_fa migration.

PR: https://github.com/Vesihiisi/COH-tools/pull/98

Sat, Sep 9, 4:34 PM · User-LokalProfil, Patch-For-Review, Connected-Open-Heritage-Wikidata-migration (Ir_fa)
Lokal_Profil closed T156896: Investigate ID numbers of monuments in Ireland as Declined.
Sat, Sep 9, 12:20 PM · Connected-Open-Heritage-Wikidata-migration
Lokal_Profil added a comment to T174966: Move WLM-IR data to Wikidata.

@LilyOfTheWest Follow up question on street addresses. Are these mainly real addresses or also "how to get there" descriptions? If there is a mixture is there some pattern to isolate the real addresses (e.g. they always contain a number).

Sat, Sep 9, 9:04 AM · Connected-Open-Heritage-Wikidata-migration (Ir_fa), Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T174966: Move WLM-IR data to Wikidata.

We'll move them either way. The main decision is if a new item is always created or if, when there is a blue link, the statements can be added to that item instead of creating a new one.

Sat, Sep 9, 9:00 AM · Connected-Open-Heritage-Wikidata-migration (Ir_fa), Wiki-Loves-Monuments (2017)

Fri, Sep 8

Lokal_Profil merged T174329: [ir-fa] Class for import of Iran into T175420: Write base code for ir_fa migration.
Fri, Sep 8, 9:23 PM · User-LokalProfil, Patch-For-Review, Connected-Open-Heritage-Wikidata-migration (Ir_fa)
Lokal_Profil merged task T174329: [ir-fa] Class for import of Iran into T175420: Write base code for ir_fa migration.
Fri, Sep 8, 9:23 PM · User-Alicia_Fagerving_WMSE
Lokal_Profil added a project to T174556: Harvester misses field in lu_(lb): Easy.
Fri, Sep 8, 9:19 PM · Easy, Wiki-Loves-Monuments-Database
Lokal_Profil added a project to T174966: Move WLM-IR data to Wikidata: Connected-Open-Heritage-Wikidata-migration (Ir_fa).
Fri, Sep 8, 8:47 PM · Connected-Open-Heritage-Wikidata-migration (Ir_fa), Wiki-Loves-Monuments (2017)
Lokal_Profil added a subtask for T174966: Move WLM-IR data to Wikidata: T175420: Write base code for ir_fa migration.
Fri, Sep 8, 8:46 PM · Connected-Open-Heritage-Wikidata-migration (Ir_fa), Wiki-Loves-Monuments (2017)
Lokal_Profil added a parent task for T175420: Write base code for ir_fa migration: T174966: Move WLM-IR data to Wikidata.
Fri, Sep 8, 8:46 PM · User-LokalProfil, Patch-For-Review, Connected-Open-Heritage-Wikidata-migration (Ir_fa)
Lokal_Profil renamed T175420: Write base code for ir_fa migration from Write base code for ir_fa migrating to Write base code for ir_fa migration.
Fri, Sep 8, 8:46 PM · User-LokalProfil, Patch-For-Review, Connected-Open-Heritage-Wikidata-migration (Ir_fa)
Lokal_Profil created T175420: Write base code for ir_fa migration.
Fri, Sep 8, 8:45 PM · User-LokalProfil, Patch-For-Review, Connected-Open-Heritage-Wikidata-migration (Ir_fa)
Lokal_Profil created Connected-Open-Heritage-Wikidata-migration (Ir_fa).
Fri, Sep 8, 8:41 PM
Lokal_Profil added a comment to T174966: Move WLM-IR data to Wikidata.

@LilyOfTheWest Are you guys fairly sure that the majority of the auto generated links (on the name field) goes to the right article? Wondering since we can either migrate the data with that assumption or ignore any such links.

Fri, Sep 8, 3:48 PM · Connected-Open-Heritage-Wikidata-migration (Ir_fa), Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T172053: Move WLM-GE lists to Wikidata.
Fri, Sep 8, 3:34 PM · Connected-Open-Heritage-Wikidata-migration (ge-ka), Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T175369: Investigate clean-up action for descriptions.

A note for the future. In pywikibot the way to detect if a disambiguator is needed is to try and save the description then

try:
    #save description
except pwb.data.api.APIError as e:
    if e.other.get('messages')[0]['name'] == 'wikibase-validator-label-with-description-conflict':
        #add disambiguator and save again
Fri, Sep 8, 2:31 PM · Connected-Open-Heritage-Wikidata-migration (at-de)
Lokal_Profil created T175369: Investigate clean-up action for descriptions.
Fri, Sep 8, 2:29 PM · Connected-Open-Heritage-Wikidata-migration (at-de)
Lokal_Profil added a comment to T156896: Investigate ID numbers of monuments in Ireland.

Can this be abandoned with Yarls import of the Ireland data?

Fri, Sep 8, 2:25 PM · Connected-Open-Heritage-Wikidata-migration
Lokal_Profil updated the task description for T175144: Add blacklist filter for matching wikidata items.
Fri, Sep 8, 2:23 PM · Patch-For-Review, User-Alicia_Fagerving_WMSE, Connected-Open-Heritage-Wikidata-migration
Lokal_Profil updated the task description for T175144: Add blacklist filter for matching wikidata items.
Fri, Sep 8, 2:23 PM · Patch-For-Review, User-Alicia_Fagerving_WMSE, Connected-Open-Heritage-Wikidata-migration
Lokal_Profil closed T169031: Upload area claims for SWB as Resolved.
Fri, Sep 8, 2:13 PM · User-LokalProfil, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil closed T169031: Upload area claims for SWB, a subtask of T168025: Support adding area to SWB, as Resolved.
Fri, Sep 8, 2:13 PM · User-LokalProfil, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil moved T167854: Get statistics for Swedish SWB import from In process to Done on the WMSE-WFD-data-to-Wikidata-2016 board.

Updated

Fri, Sep 8, 2:13 PM · User-LokalProfil, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil updated the task description for T167854: Get statistics for Swedish SWB import.
Fri, Sep 8, 2:12 PM · User-LokalProfil, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil moved T167854: Get statistics for Swedish SWB import from Done to In process on the WMSE-WFD-data-to-Wikidata-2016 board.

This should be updated with the chemical status import

Fri, Sep 8, 2:00 PM · User-LokalProfil, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil closed T169033: Upload Chemical status claims for SWBs, a subtask of T169032: Implement Chemical status for SWB, as Resolved.
Fri, Sep 8, 2:00 PM · User-LokalProfil, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil closed T169033: Upload Chemical status claims for SWBs as Resolved.
Fri, Sep 8, 2:00 PM · User-LokalProfil, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil moved T169033: Upload Chemical status claims for SWBs from In process to Done on the WMSE-WFD-data-to-Wikidata-2016 board.
Fri, Sep 8, 1:59 PM · User-LokalProfil, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil added a comment to T172053: Move WLM-GE lists to Wikidata.

Hi @Lokal_Profil, please tell me whether I understood correctly, I must erase all the less used categories from d:Wikidata:WikiProject_WLM/Mapping_tables/ge_(ka)/types and leave only those that are most used?

Fri, Sep 8, 1:27 PM · Connected-Open-Heritage-Wikidata-migration (ge-ka), Wiki-Loves-Monuments (2017)
Lokal_Profil created T175363: Allow for Visual Editor signing in the Projekt namespace on se.wikimedia.
Fri, Sep 8, 1:16 PM · WMSE, Wikimedia-Site-requests
Lokal_Profil removed a project from T175337: Write base class for ge-ka: Wiki-Loves-Monuments (2017).
Fri, Sep 8, 11:25 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil added a comment to T172053: Move WLM-GE lists to Wikidata.
Fri, Sep 8, 11:25 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka), Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T172053: Move WLM-GE lists to Wikidata.

Hi @Mehman97 uploading the data to Wikidata is now almost ready. d:Wikidata:WikiProject_WLM/Mapping_tables/ge_(ka)/types still contains some fairly common terms which would benefit from being mapped to Wikidata though. The talk page has some suggested mappings but having a native speaker doing the mapping will go along way to avoid importing erroneous information.

Fri, Sep 8, 9:59 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka), Wiki-Loves-Monuments (2017)
Lokal_Profil closed T167661: [WikidataStuff] Ensure re-usable components of WFD importer are migrated to WikidataStuff as Resolved.
Fri, Sep 8, 9:31 AM · User-LokalProfil, Patch-For-Review, Technical-Debt, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil moved T167661: [WikidataStuff] Ensure re-usable components of WFD importer are migrated to WikidataStuff from In process to Done on the WMSE-WFD-data-to-Wikidata-2016 board.

#24 merged https://github.com/lokal-profil/WFD_import/commit/0c9103e3545afff4321ab4d1a51adbe2bcc39319

Fri, Sep 8, 9:31 AM · User-LokalProfil, Patch-For-Review, Technical-Debt, WMSE-WFD-data-to-Wikidata-2016
Lokal_Profil added a comment to T170410: [24 Aug - 11 Sept] Go through and evaluate wishes.

Meeting today decided to move forward with:

  • ORES
  • Swedish sources for Citoid with Automatic formatting of url refs done as part of this if time allows
Fri, Sep 8, 9:29 AM · User-Sebastian_Berlin-WMSE, WMSE-Development-Support-2017 (Survey-and-shortlist)
Lokal_Profil created T175337: Write base class for ge-ka.
Fri, Sep 8, 8:57 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil added a subtask for T172053: Move WLM-GE lists to Wikidata: T175336: Clean up type list.
Fri, Sep 8, 8:55 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka), Wiki-Loves-Monuments (2017)
Lokal_Profil added a parent task for T175336: Clean up type list: T172053: Move WLM-GE lists to Wikidata.
Fri, Sep 8, 8:55 AM · User-LokalProfil, Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil moved T175336: Clean up type list from In process to Done on the Connected-Open-Heritage-Wikidata-migration (ge-ka) board.
Fri, Sep 8, 8:55 AM · User-LokalProfil, Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil moved T175336: Clean up type list from Backlog to Done on the User-LokalProfil board.

Updated: diff

Fri, Sep 8, 8:55 AM · User-LokalProfil, Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil added a comment to T175336: Clean up type list.

Built

1from collections import OrderedDict
2import pywikibot as pwb
3
4site = pwb.Site('wikidata', 'wikidata')
5page = pwb.Page(site, 'Wikidata:WikiProject WLM/Mapping tables/ge (ka)/types')
6contents = page.get()
7header, sep, rest = contents.partition('|-')
8rest, sep, footer = rest.rpartition('|}')
9footer = '|}' + footer
10
11NATIONAL_IMPORTANCE_STR = "ეროვნული"
12
13def clean_type(text):
14"""
15 Return a cleaned version of self.type.
16 Multiple types may exist either separated by "<br />" or ",".
17 Types may include NATIONAL_IMPORTANCE_STR which should be used only
18 for heritage status.
19 """
20raw_type = text.lower()
21raw_type = raw_type.replace("<br />", ",")
22types = [typ.strip() for typ in raw_type.split(',')]
23if NATIONAL_IMPORTANCE_STR in types:
24types.remove(NATIONAL_IMPORTANCE_STR)
25types = list(filter(None, types)) # remove empty entries
26return ', '.join(types)
27
28entries = rest.split('|-')
29d = {}
30
31for entry in entries:
32parts = entry.split('\n|')
33name = clean_type(parts[1].strip())
34num = parts[2].strip() or "0"
35qid = parts[3].strip()
36com = parts[4].strip()
37if name not in d:
38d[name] = {'num': 0, 'qid': '', 'com': '', 'orig':[]}
39d[name]['num'] += int(num)
40if qid and d[name]['qid']:
41print('doh qid: {} {}'.format(qid, d[name]['qid']))
42if com and d[name]['com']:
43print('doh com: {} {}'.format(com, d[name]['com']))
44d[name]['qid'] = d[name]['qid'] or qid
45d[name]['com'] = d[name]['com'] or com
46d[name]['orig'].append(parts[1].strip())
47
48od = OrderedDict(sorted(d.items(), key=lambda t: t[1]['num'], reverse=True))
49
50txt = ''
51for k, v in od.items():
52txt += '|- \n| {}\n| {}\n| {}\n| {}\n'.format(k, v['num'], v['qid'], v['com'])
53
54page_text = header + txt + footer
55
56with open('tmp.wiki', 'w', encoding='utf-8') as f:
57f.write(page_text)
to do the processing

Fri, Sep 8, 8:53 AM · User-LokalProfil, Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil edited P5977 Dirty one of script for cleaning Georgian list of keywords.
Fri, Sep 8, 8:53 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil updated the language for P5977 Dirty one of script for cleaning Georgian list of keywords from autodetect to python.
Fri, Sep 8, 8:53 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil created P5977 Dirty one of script for cleaning Georgian list of keywords.
Fri, Sep 8, 8:53 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil created T175336: Clean up type list.
Fri, Sep 8, 8:52 AM · User-LokalProfil, Connected-Open-Heritage-Wikidata-migration (ge-ka)
Lokal_Profil edited projects for T172053: Move WLM-GE lists to Wikidata, added: Connected-Open-Heritage-Wikidata-migration (ge-ka); removed Connected-Open-Heritage-Wikidata-migration.
Fri, Sep 8, 8:48 AM · Connected-Open-Heritage-Wikidata-migration (ge-ka), Wiki-Loves-Monuments (2017)
Lokal_Profil created Connected-Open-Heritage-Wikidata-migration (ge-ka).
Fri, Sep 8, 8:47 AM
Lokal_Profil added a comment to T174336: Document existing tools and queries for WLM2017.

@Effeietsanders @LilyOfTheWest Finally got time to write down the text that I have been composing in my head every day when cycling to work. It's on Drive (commenting is allowed but currently not editing, I'm happy to add you though). Let me know what you think and if it's useful we can figure out where a natural home is.

Fri, Sep 8, 7:36 AM · Connected-Open-Heritage-Learning, Wiki-Loves-Monuments (2017)

Thu, Sep 7

Lokal_Profil created T175315: Build GoneFishing tool.
Thu, Sep 7, 10:28 PM · User-LokalProfil
Lokal_Profil added a project to T174336: Document existing tools and queries for WLM2017: Connected-Open-Heritage-Learning.

@Effeietsanders @LilyOfTheWest Finally got time to write down the text that I have been composing in my head every day when cycling to work. It's on Drive (commenting is allowed but currently not editing, I'm happy to add you though). Let me know what you think and if it's useful we can figure out where a natural home is.

Thu, Sep 7, 9:59 PM · Connected-Open-Heritage-Learning, Wiki-Loves-Monuments (2017)
Lokal_Profil added a comment to T175262: [be-bru] Post bot flag request.

Ping anyone who helped out in the mapping or who was contacted when looking into the country so that they have a chance to comment before this goes live

Thu, Sep 7, 6:30 PM · User-Alicia_Fagerving_WMSE, Connected-Open-Heritage-Wikidata-migration (be-bru)
Lokal_Profil added a comment to T174560: Enable ORES filters for svwiki.

Is there any tooling which needs to be activated on svwiki (or ported to svwiki) for editors to start consuming the scores? (e.g. on latest changes etc.)

Thu, Sep 7, 4:05 PM · WMSE-Development-Support-2017 (Support-for-fighting-vandalism), Scoring-platform-team, Collaboration-Team-Triage (Collab-Team-Q1-Jul-Sep-2017), editquality-modeling, ORES, artificial-intelligence
Lokal_Profil awarded T174560: Enable ORES filters for svwiki a 100 token.
Thu, Sep 7, 4:02 PM · WMSE-Development-Support-2017 (Support-for-fighting-vandalism), Scoring-platform-team, Collaboration-Team-Triage (Collab-Team-Q1-Jul-Sep-2017), editquality-modeling, ORES, artificial-intelligence