Skip to content

ISE-FIZKarlsruhe/QPTDat_ontology_wiki

Repository files navigation

This is the mediawiki to describe the QPTDat ontology and gather community feedback.

MediaWiki Installation

  1. Comment LocalSetting.php file in docker-compose.yml file.
  2. Start infrastructure
docker-compose up -d
  1. 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
  2. Put LocalSetting.php file in root directory of this project.
  3. Change $wgServer variable in LocalSetting.php to $wgServer = "http://qptdat-wiki.plasma-mds.org/wiki";
  4. 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
```

Create a pywikibot configuration file for the new wiki

  1. Look up where the pywikibot scripts are stored (pip show pywikibot) and change the both of the following commands to your path.
  2. Run the set up script with the following script:
python ${pywikibotLocation}/scripts/generate_family_file.py
  1. Follow the configuration wizard.

Create a bot account on the new wiki

  1. Create on http://qptdat-wiki.plasma-mds.org/index.php/Special:BotPasswords a bot by giving a name and saving the password.

Add bot configuration

  1. Generate the required pywikibot configuration
python ${pywikibotLocation}/scripts/generate_user_files.py
  1. Optional: Decrease the sleep time for save action by adding put_throttle = 1 to the user-config.py file.

Load pyLODE results into SMW

./createWiki.py -p "resource/*.ttl"

Create plain HTML Documentation

Run the python script on a pattern matching all files that should be documented.

./createHTML.py -p "resource/*.ttl"

Lokal Test

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages