Difference between revisions of "Workdocumentation 2021-03-30"

From OPENRESEARCH mk copy Wiki
Jump to navigation Jump to search
Line 22: Line 22:
 
grep Ordinal C:/Users/92031/wikibackup/ormk -l -r | python ordinal_to_cardinal.py -stdin -d '../dictionary.yaml' -ro -f | wikirestore -t ormk -stdinp -ui
 
grep Ordinal C:/Users/92031/wikibackup/ormk -l -r | python ordinal_to_cardinal.py -stdin -d '../dictionary.yaml' -ro -f | wikirestore -t ormk -stdinp -ui
 
</source>
 
</source>
 +
 +
=== End Date ===

Revision as of 22:01, 30 March 2021

Red Links and Data Fixations

Broken redirects

Broken file links

Broken properties and errors

  • The property Property:Has improper value for stores all invalid values.

Ordinals

  • For the Fix for ordinals the following approaches can be used :
    • This approach finds and edits all events with improper ordinals fixed:
wikiedit -t wikiId -q "[[Has improper value for::Ordinal]]" --search "(\|Ordinal=[0-9]+)(?:st|nd|rd|th)\b" --replace "\1"
  • A code snippet can be used coupled with wikibackup and bash tools for specific editing of pages: Code Snippet
  • Pipeline usage:
grep Ordinal C:/Users/92031/wikibackup/ormk -l -r | python ordinal_to_cardinal.py -stdin -d '../dictionary.yaml' -ro -f | wikirestore -t ormk -stdinp -ui

End Date