This is the mediawiki to describe the QPTDat ontology and gather community feedback.
- Comment LocalSetting.php file in
docker-compose.yml
file. - Start infrastructure
docker-compose up -d
- Set up Mediawiki by going to http://qptdat-wiki.plasma-mds.org and following the wizard.
- Database must be
ontology_wiki_database_1
- Make sure to install SemanticMediaWiki
- Database must be
- Put
LocalSetting.php
file in root directory of this project. - Change
$wgServer
variable inLocalSetting.php
to$wgServer = "http://qptdat-wiki.plasma-mds.org/wiki";
- Insert
enableSemantics();
$smwgDefaultStore = 'SMWSparqlStore';
$smwgSparqlRepositoryConnector = 'virtuoso';
$smwgSparqlEndpoint["query"] = 'triplestore:8890/sparql/';
$smwgSparqlEndpoint["update"] = 'triplestore:8890/sparql/';
$smwgSparqlEndpoint["data"] = '';
$smwgSparqlDefaultGraph = 'http://qptdat-wiki.plasma-mds.org';
$smwgDVFeatures = ( $smwgDVFeatures | SMW_DV_MLTV_LCODE );
at the end of the LocalSetting.php
file.
7. Uncomment LocalSetting.php
8. Restart mediawiki
9. Run interactive bash to update mediawiki
docker exec -it ontology_wiki_mediawiki_1 bash
* In container run
```
maintenance/update.php
```
- Look up where the pywikibot scripts are stored (
pip show pywikibot
) and change the both of the following commands to your path. - Run the set up script with the following script:
python ${pywikibotLocation}/scripts/generate_family_file.py
- Follow the configuration wizard.
- Create on
http://qptdat-wiki.plasma-mds.org/index.php/Special:BotPasswords
a bot by giving a name and saving the password.
- Generate the required pywikibot configuration
python ${pywikibotLocation}/scripts/generate_user_files.py
- Optional: Decrease the sleep time for save action by adding
put_throttle = 1
to theuser-config.py
file.
./createWiki.py -p "resource/*.ttl"
Run the python script on a pattern matching all files that should be documented.
./createHTML.py -p "resource/*.ttl"
Add 127.0.0.1 qptdat-wiki.plasma-mds.org
to /etc/hosts
.
Note: This does not work in combination with the QPTDat KG infrastrucutre on the same machine since both bind on port 80. For a production setting the exposed MediaWiki port could be changed and set in the DNS entry.