PySMWSync: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
No edit summary
Line 17: Line 17:
=== smwsync ===
=== smwsync ===
<source lang='bash'>
<source lang='bash'>
smwsync -h               
usage: smwsync [-h] [-a] [--context CONTEXT] [-d] [--dry] [-e ENDPOINT] [-pk PRIMARYKEY]
usage: smwsync [-h] [-a] [--context CONTEXT] [-d] [-t TARGET] [-u] [--topic TOPIC] [--props] [-V]
              [-pkv PRIMARYKEYVALUES [PRIMARYKEYVALUES ...]] [-t TARGET] [-u] [--topic TOPIC] [--proplist] [-V]
              [-p PROPS [PROPS ...]] [-pm PROPERTYMAP]


pySMWSync - ('synchronize Semantic MediaWiki content e.g. with wikidata',)(v0.0.1,2023-03-03)
pySMWSync - python library to synchronize property values of a semantic MediaWiki with e.g. wikidata or another Semantic MediaWiki(v0.0.2,2023-03-03)


options:
options:
Line 27: Line 28:
   --context CONTEXT    context to generate from [default: CrSchema]
   --context CONTEXT    context to generate from [default: CrSchema]
   -d, --debug          show debug info [default: False]
   -d, --debug          show debug info [default: False]
  --dry                dry run only - do not execute wikiedit commands but just display them
  -e ENDPOINT, --endpoint ENDPOINT
                        the SPARQL endpoint to be used [default: wikidata]
  -pk PRIMARYKEY, --primaryKey PRIMARYKEY
                        primary Key [default: qid]
  -pkv PRIMARYKEYVALUES [PRIMARYKEYVALUES ...], --primaryKeyValues PRIMARYKEYVALUES [PRIMARYKEYVALUES ...]
                        primary Key Values
   -t TARGET, --target TARGET
   -t TARGET, --target TARGET
                         wikiId of the target wiki [default: ceur-ws]
                         wikiId of the target wiki [default: ceur-ws]
   -u, --update          update the local cache
   -u, --update          update the local cache
   --topic TOPIC        the topic to work with [default: Scholar]
   --topic TOPIC        the topic to work with [default: Scholar]
   --props              show the properties
   --proplist            show the properties
   -V, --version        show program's version number and exit
   -V, --version        show program's version number and exit
 
  -p PROPS [PROPS ...], --props PROPS [PROPS ...]
                        properties to sync
  -pm PROPERTYMAP, --propertyMap PROPERTYMAP
                        the yaml property map
</source>
</source>

Revision as of 21:22, 3 March 2023

OsProject

OsProject
id  pySMWSync
state  active
owner  WolfgangFahl
title  pySMWSync
url  https://github.com/WolfgangFahl/pySMWsync
version  0.0.2
description  synchronize Semantic MediaWiki content e.g. with wikidata
date  2023-03-03
since  2023-03-03
until  


Installation

pip install pySMWSync
# alternatively if your pip is not a python3 pip
pip3 install pySMWSync 
# local install from source directory of pySMWSync 
pip install .

upgrade

pip install pySMWSync  -U
# alternatively if your pip is not a python3 pip
pip3 install pySMWSync -U


Usage

Command line

smwsync

usage: smwsync [-h] [-a] [--context CONTEXT] [-d] [--dry] [-e ENDPOINT] [-pk PRIMARYKEY]
               [-pkv PRIMARYKEYVALUES [PRIMARYKEYVALUES ...]] [-t TARGET] [-u] [--topic TOPIC] [--proplist] [-V]
               [-p PROPS [PROPS ...]] [-pm PROPERTYMAP]

pySMWSync - python library to synchronize property values of a semantic MediaWiki with e.g. wikidata or another Semantic MediaWiki(v0.0.2,2023-03-03)

options:
  -h, --help            show this help message and exit
  -a, --about           show about info [default: False]
  --context CONTEXT     context to generate from [default: CrSchema]
  -d, --debug           show debug info [default: False]
  --dry                 dry run only - do not execute wikiedit commands but just display them
  -e ENDPOINT, --endpoint ENDPOINT
                        the SPARQL endpoint to be used [default: wikidata]
  -pk PRIMARYKEY, --primaryKey PRIMARYKEY
                        primary Key [default: qid]
  -pkv PRIMARYKEYVALUES [PRIMARYKEYVALUES ...], --primaryKeyValues PRIMARYKEYVALUES [PRIMARYKEYVALUES ...]
                        primary Key Values
  -t TARGET, --target TARGET
                        wikiId of the target wiki [default: ceur-ws]
  -u, --update          update the local cache
  --topic TOPIC         the topic to work with [default: Scholar]
  --proplist            show the properties
  -V, --version         show program's version number and exit
  -p PROPS [PROPS ...], --props PROPS [PROPS ...]
                        properties to sync
  -pm PROPERTYMAP, --propertyMap PROPERTYMAP
                        the yaml property map