andrecastro0o / ontology2smw

automating an RDF ontology import into Semantic Mediawiki
GNU General Public License v3.0
16 stars 5 forks source link

Inculde results report instead of the prints #48

Closed andrecastro0o closed 3 years ago

andrecastro0o commented 3 years ago

options:

Report format/result include

short version, written used with --write option

Terms imported:
AEON: 85 terms (written to page Mediaki:Smw_import_aeon)
BFO: 5terms (written to page Mediaki:Smw_import_bfo)
...

Verbose

andrecastro0o commented 3 years ago

Results in https://github.com/TIBHannover/ontology2smw/commit/3865664cf9b06a39a0454c15fb28fb00d309b323

*********** Import Report: ********
obo creates Mediawiki:Smw_import_obo with 28 terms
skos creates Mediawiki:Smw_import_skos with 1 terms
aeon creates Mediawiki:Smw_import_aeon with 154 terms
bfo creates Mediawiki:Smw_import_bfo with 39 terms
andrecastro0o commented 3 years ago

When writing to wiki (-w) the report includes links to the SMW_import pages

*********** Import Report: ***********
obo creates http://192.168.100.100/w/index.php?title=Mediawiki:Smw_import_obo with 28 terms
skos creates http://192.168.100.100/w/index.php?title=Mediawiki:Smw_import_skos with 1 terms
aeon creates http://192.168.100.100/w/index.php?title=Mediawiki:Smw_import_aeon with 154 terms
bfo creates http://192.168.100.100/w/index.php?title=Mediawiki:Smw_import_bfo with 39 terms

in https://github.com/TIBHannover/ontology2smw/commit/131b9b579cde3bfc402bdca223c82a9bc0d00d85

andrecastro0o commented 3 years ago

closed with #51