Difference between revisions of "PySMWSync"
Jump to navigation
Jump to search
(Created page with "{{OsProject }}") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | =OsProject= | ||
+ | |||
{{OsProject | {{OsProject | ||
+ | |id=pySMWSync | ||
+ | |state=active | ||
+ | |owner=WolfgangFahl | ||
+ | |title=pySMWSync | ||
+ | |url=https://github.com/WolfgangFahl/pySMWsync | ||
+ | |version=0.0.3 | ||
+ | |description=synchronize Semantic MediaWiki content e.g. with wikidata | ||
+ | |date=2023-03-06 | ||
+ | |since=2023-03-03 | ||
}} | }} | ||
+ | {{pip|pySMWSync}} | ||
+ | = Usage = | ||
+ | == Command line == | ||
+ | === smwsync === | ||
+ | <source lang='bash'> | ||
+ | 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 | ||
+ | </source> |
Latest revision as of 18:20, 6 March 2023
OsProject
OsProject | |
---|---|
id | pySMWSync |
state | active |
owner | WolfgangFahl |
title | pySMWSync |
url | https://github.com/WolfgangFahl/pySMWsync |
version | 0.0.3 |
description | synchronize Semantic MediaWiki content e.g. with wikidata |
date | 2023-03-06 |
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