WolfgangFahl / pyCEURmake

CEUR make python implementation
Apache License 2.0
2 stars 1 forks source link

add wikidata sync to command line #67

Closed WolfgangFahl closed 1 year ago

WolfgangFahl commented 1 year ago
ceur-ws -h
usage: ceur-ws [-h] [-a] [-c] [-d] [--host HOST] [-l] [-rc] [-wdu] [--port PORT]
               [-s] [-nq] [-V]

Copyright 2022 contributors. All rights reserved.

  Licensed under the Apache License 2.0
  http://www.apache.org/licenses/LICENSE-2.0

  Distributed on an "AS IS" basis without warranties
  or conditions of any kind, either express or implied.

options:
  -h, --help            show this help message and exit
  -a, --about           show about info [default: False]
  -c, --client          start client [default: False]
  -d, --debug           show debug info [default: False]
  --host HOST           the host to serve / listen from [default:
                        fix.bitplan.com]
  -l, --list            list all volumes [default: False]
  -rc, --recreate       recreated volume table
  -wdu, --wikidata_update
                        update tables from wikidata
  --port PORT           the port to serve from [default: 9998]
  -s, --serve           start webserver [default: False]
  -nq, --namedqueries   generate named queries [default: False]
  -V, --version         show program's version number and exit
WolfgangFahl commented 1 year ago
ceur-ws -wdu                
ceur-ws -wdu -d
Creating typemanager(StoreMode.SQL) for VolumeManager using cache /Users/wf/.ceurws/ceurws.db
reading volumes for VolumeManager from cache /Users/wf/.ceurws/ceurws.db
read 3357 volumes from VolumeManager in   0.1 s
Creating typemanager(StoreMode.SQL) for PaperManager using cache /Users/wf/.ceurws/ceurws.db
reading papers for PaperManager from cache /Users/wf/.ceurws/ceurws.db
read 61842 papers from PaperManager in   0.2 s
Querying proceedings from https://www.wikidata.org ...
stored 3340 proceedings records
found 8 duplicates URN entries
[{
  'item': 'http://www.wikidata.org/entity/Q113545306',
  'itemLabel': 'Proceedings of the 7th International Workshop on Uncertainty Reasoning for the Semantic Web (URSW 2011)',
  'itemDescription': 'Proceedings of URSW 2011 workshop',
  'sVolume': 778,
  'short_name': 'URSW 2011',
  'dblpProceedingsId': 'conf/semweb/2011ursw',
  'title': 'Proceedings of the 7th International Workshop on Uncertainty Reasoning for the Semantic Web (URSW 2011)',
  'URN_NBN': 'urn:nbn:de:0074-778-5',
  'publication_date': datetime.datetime(2011, 9, 15, 0, 0),
  'fullWorkUrl': 'http://ceur-ws.org/Vol-778/',
  'described_at_URL': 'http://ceur-ws.org/Vol-778/',
  'event': 'http://www.wikidata.org/entity/Q113659375',
  'eventLabel': '7th International Workshop on Uncertainty Reasoning for the Semantic Web (URSW 2011)',
  'eventSeries': '',
  'eventSeriesLabel': '',
  'eventSeriesOrdinal': '',
  'dblpEventId': 'conf/semweb/ursw2011'
}, {
  'item': 'http://www.wikidata.org/entity/Q113544682',
  'itemLabel': 'Joint Proceedings of REFSQ-2015 Workshops, Research Method Track, and Poster Track',
  'itemDescription': 'Proceedings of REFSQ-JP 2015 workshop',
  'sVolume': 1342,
  'short_name': 'REFSQ-JP 2015',
  'dblpProceedingsId': 'conf/refsq/2015w',
  'ppnId': '1657818195',
  'title': 'Joint Proceedings of REFSQ-2015 Workshops, Research Method Track, and Poster Track',
  'URN_NBN': 'urn:nbn:de:0074-1342-0',
  'publication_date': datetime.datetime(2015, 3, 17, 0, 0),
  'fullWorkUrl': 'http://ceur-ws.org/Vol-1342/',
  'described_at_URL': 'http://ceur-ws.org/Vol-1342/',
  'event': 'http://www.wikidata.org/entity/Q113649208',
  'eventLabel': 'REFSQ-2015 Workshops, Research Method Track, and Poster Track',
  'eventSeries': '',
  'eventSeriesLabel': '',
  'eventSeriesOrdinal': '',
  'dblpEventId': 'conf/refsq/refsq2015w'
}, {
  'item': 'http://www.wikidata.org/entity/Q113544542',
  'itemLabel': 'Proceedings of the 10th International Workshop on Models@run.time',
  'itemDescription': 'Proceedings of MRT 2015 workshop',
  'sVolume': 1474,
  'short_name': 'MRT 2015',
  'dblpProceedingsId': 'conf/models/2015runtime',
  'ppnId': '1023077302',
  'title': 'Proceedings of the 10th International Workshop on Models@run.time',
  'URN_NBN': 'urn:nbn:de:0074-1474-1',
  'publication_date': datetime.datetime(2015, 10, 16, 0, 0),
  'fullWorkUrl': 'http://ceur-ws.org/Vol-1474/',
  'described_at_URL': 'http://ceur-ws.org/Vol-1474/',
  'event': 'http://www.wikidata.org/entity/Q113646143',
  'eventLabel': '10th International Workshop on Models@run.time',
  'eventSeries': '',
  'eventSeriesLabel': '',
  'eventSeriesOrdinal': '',
  'dblpEventId': 'conf/models/runtime2015'
}, {
  'item': 'http://www.wikidata.org/entity/Q113544530',
  'itemLabel': 'Proceedings of the Doctoral Consortium (DC)',
  'itemDescription': 'Proceedings of AI*IA 2015 DC workshop',
  'sVolume': 1485,
  'short_name': 'AI*IA 2015 DC',
  'dblpProceedingsId': 'conf/aiia/2015dc',
  'ppnId': '1023136171',
  'title': 'Proceedings of the Doctoral Consortium (DC)',
  'URN_NBN': 'urn:nbn:de:0074-1473-7',
  'publication_date': datetime.datetime(2015, 10, 23, 0, 0),
  'fullWorkUrl': 'http://ceur-ws.org/Vol-1485/',
  'described_at_URL': 'http://ceur-ws.org/Vol-1485/',
  'event': 'http://www.wikidata.org/entity/Q113646155',
  'eventLabel': 'Doctoral Consortium (DC)',
  'eventSeries': '',
  'eventSeriesLabel': '',
  'eventSeriesOrdinal': '',
  'dblpEventId': 'conf/aiia/dc2015'
}, {
  'item': 'http://www.wikidata.org/entity/Q113544108',
  'itemLabel': 'Joint Proceedings of REFSQ-2017 Workshops, Doctoral Symposium, Research Method Track, and Poster Track',
  'itemDescription': 'Proceedings of REFSQ-JP 2017 workshop',
  'sVolume': 1796,
  'short_name': 'REFSQ-JP 2017',
  'dblpProceedingsId': 'conf/refsq/2017w',
  'ppnId': '1655828169',
  'title': 'Joint Proceedings of REFSQ-2017 Workshops, Doctoral Symposium, Research Method Track, and Poster Track',
  'URN_NBN': 'urn:nbn:de:0074-1796-0',
  'publication_date': datetime.datetime(2017, 2, 20, 0, 0),
  'fullWorkUrl': 'http://ceur-ws.org/Vol-1796/',
  'described_at_URL': 'http://ceur-ws.org/Vol-1796/',
  'event': 'http://www.wikidata.org/entity/Q113637643',
  'eventLabel': 'REFSQ-2017 Workshops, Doctoral Symposium, Research Method Track, and Poster Track',
  'eventSeries': '',
  'eventSeriesLabel': '',
  'eventSeriesOrdinal': '',
  'dblpEventId': 'conf/refsq/refsq2017w'
}, {
  'item': 'http://www.wikidata.org/entity/Q113544095',
  'itemLabel': 'Proceedings of the 2nd Workshop on Continuous Software Engineering',
  'itemDescription': 'Proceedings of CSE 2017 workshop',
  'sVolume': 1806,
  'short_name': 'CSE 2017',
  'dblpProceedingsId': 'conf/se/2017cse',
  'ppnId': '1654592021',
  'title': 'Proceedings of the 2nd Workshop on Continuous Software Engineering',
  'URN_NBN': 'urn:nbn:de:0074-1806-7',
  'publication_date': datetime.datetime(2017, 3, 3, 0, 0),
  'fullWorkUrl': 'http://ceur-ws.org/Vol-1806/',
  'described_at_URL': 'http://ceur-ws.org/Vol-1806/',
  'event': 'http://www.wikidata.org/entity/Q113625143',
  'eventLabel': '2nd Workshop on Continuous Software Engineering',
  'eventSeries': '',
  'eventSeriesLabel': '',
  'eventSeriesOrdinal': '',
  'dblpEventId': 'conf/se/cse2017'
}, {
  'item': 'http://www.wikidata.org/entity/Q113542979',
  'itemLabel': 'Proceedings of the AAAI 2019 Spring Symposium on Combining Machine Learning with Knowledge Engineering (AAAI-MAKE 2019)',
  'itemDescription': 'Proceedings of AAAI-MAKE 2019 workshop',
  'sVolume': 2350,
  'short_name': 'AAAI-MAKE 2019',
  'dblpProceedingsId': 'conf/aaaiss/2019make',
  'ppnId': '1668078449',
  'title': 'Proceedings of the AAAI 2019 Spring Symposium on Combining Machine Learning with Knowledge Engineering (AAAI-MAKE 2019)',
  'URN_NBN': 'urn:nbn:de:0074-2349-2',
  'publication_date': datetime.datetime(2019, 4, 26, 0, 0),
  'fullWorkUrl': 'http://ceur-ws.org/Vol-2350/',
  'described_at_URL': 'http://ceur-ws.org/Vol-2350/',
  'event': 'http://www.wikidata.org/entity/Q113583285',
  'eventLabel': 'AAAI 2019 Spring Symposium on Combining Machine Learning with Knowledge Engineering (AAAI-MAKE 2019)',
  'eventSeries': '',
  'eventSeriesLabel': '',
  'eventSeriesOrdinal': '',
  'dblpEventId': 'conf/aaaiss/make2019'
}, {
  'item': 'http://www.wikidata.org/entity/Q113542869',
  'itemLabel': 'STAF 2019 Co-Located Events Joint Proceedings: 1st Junior Researcher Community Event, 2nd International Workshop on Model-Driven Engineering for Design-Runtime Interaction in Complex Systems, and 1st Research Project Showcase Workshop',
  'itemDescription': 'Proceedings of STAF-CE 2019 workshop',
  'sVolume': 2405,
  'short_name': 'STAF-CE 2019',
  'dblpProceedingsId': 'conf/staf/2019ce',
  'ppnId': '1676049851',
  'title': 'STAF 2019 Co-Located Events Joint Proceedings: 1st Junior Researcher Community Event, 2nd International Workshop on Model-Driven Engineering for Design-Runtime Interaction in Complex Systems, and 1st Research Project Showcase Workshop',
  'URN_NBN': 'urn:nbn:de:0074-2402-3',
  'publication_date': datetime.datetime(2019, 7, 11, 0, 0),
  'fullWorkUrl': 'http://ceur-ws.org/Vol-2405/',
  'described_at_URL': 'http://ceur-ws.org/Vol-2405/',
  'event': 'http://www.wikidata.org/entity/Q113583013',
  'eventLabel': 'STAF 2019 Co-Located Events Joint Proceedings: 1st Junior Researcher Community Event, 2nd International Workshop on Model-Driven Engineering for Design-Runtime Interaction in Complex Systems, and 1st Research Project Showcase Workshop',
  'eventSeries': '',
  'eventSeriesLabel': '',
  'eventSeriesOrdinal': '',
  'dblpEventId': 'conf/staf/staf2019ce'
}]