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

From OPENRESEARCH mk copy Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
== Broken file links ==
 
== Broken file links ==
 
* List of all broken links which contain a file path but the file does not exist can be found here: https://www.openresearch.org/wiki/Category:Pages_with_broken_file_links
 
* List of all broken links which contain a file path but the file does not exist can be found here: https://www.openresearch.org/wiki/Category:Pages_with_broken_file_links
 +
 +
== Broken properties and errors==
 +
* The property Property:Has improper value for stores all invalid values.
 +
* For the Fix for ordinals the following approaches can be used :
 +
** This approach finds and edits all events with ordinals fixed:
 +
<source lang='bash'>
 +
wikiedit -t wikiId -q "[[isA::Event]]" --search "(\|Ordinal=[0-9]+)(?:st|nd|rd|th)\b" --replace "\1"
 +
</source>
 +
** A code snippet can be used coupled with wikibackup and bash tools for specific editing of pages:
 +
** [https://github.com/SmartDataAnalytics/OpenResearch/files/6065394/Python_Ordinal.zip Code Snippet]

Revision as of 21:51, 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.
  • For the Fix for ordinals the following approaches can be used :
    • This approach finds and edits all events with ordinals fixed:
wikiedit -t wikiId -q "[[isA::Event]]" --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