Difference between revisions of "CEUR-WS 2020-07-20"

From BITPlan ceur-ws Wiki
Jump to navigation Jump to search
Line 328: Line 328:
 
$wgGroupPermissions['*']['read'] = true;
 
$wgGroupPermissions['*']['read'] = true;
 
</source>
 
</source>
 +
modify .htaccess rule
  
 
= Copy Documentation here =
 
= Copy Documentation here =

Revision as of 11:28, 20 July 2020

createsite ceur-ws.bitplan.com

use createsite script on s.bitplan.com

root@s:/var/www/mediawiki/sites# /home/wf/source/bash/mp/createsite ceur-ws
creating site ceur-ws (ceur-ws.bitplan.com) for Apache 2.4 ...
directory ceur-ws.bitplan.com ... exists
directory ceur-ws.bitplan.com/images ... exists
link ../ceur-ws.bitplan.com ... exists
Apache version 2.4 configuration check ...
apache configuration /etc/apache2/sites-available/ceur-ws.conf exists
apache configuration /etc/apache2/ceur-ws.conf exists
Site ceur-ws already enabled
htaccess configuration /srv/www/mediawiki/sites/ceur-ws.bitplan.com/images/.htaccess exists
ceur-ws.bitplan.com/BITPlanSettings.php already exist
ceur-ws.bitplan.com/FullLocalSettings.php already exist
ceur-ws.bitplan.com/LocalSettings.php already exist
pages
10
checking site availability for ceur-ws.bitplan.com ...
ping ceur-ws.bitplan.com is successful
curl access for ceur-ws.bitplan.com is successful
checking site ceur-ws.bitplan.com is included in /var/www/mediawiki/code/s.bitplan.com.sites ...
ceur-ws.bitplan.com found

Add DNS entries

public DNS at Hosteurope

entry via http://kis.hosteurope.de Clipboard20200720085747.png

local DNS entry for BITPlan intranet

add local DNS entry via capri's /root/bin/do_nameservices script

#   2020-07-20 added ceur-ws.bitplan.com
ceur-ws s

add encrypted credentials

pan:Mediawiki-Japi wf$./run -u wf 
Please Enter wiki id: ceur-ws
Please Enter url: http://ceur-ws.bitplan.com
Please Enter email: wf@bitplan.com
Please Enter password: ******
Please Enter shall i store wf's credentials encrypted in wf_ceur-ws.ini y/n?: y
created/updated properties in /Users/wf/.mediawiki-japi/wf_ceur-ws.ini

fix version info for Mediawiki API

grep version wf_ceur-ws.ini 
version=MediaWiki 1.33.2

copy MetaModel from master wiki

./run -l -s master -t ceur-ws -p MetaModel
Jul 20, 2020 9:10:09 AM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://master.bitplan.com/api.php?:Success
Jul 20, 2020 9:10:10 AM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://ceur-ws.bitplan.com//api.php?:Success
File:Actionicon.png
http://master.bitplan.com/images/master/e/eb/Actionicon.png
File:Component.png
http://master.bitplan.com/images/master/4/40/Component.png
File:Element into input.png
http://master.bitplan.com/images/master/6/6a/Element_into_input.png
File:Index.png
http://master.bitplan.com/images/master/a/ae/Index.png
File:Link.png
http://master.bitplan.com/images/master/f/fd/Link.png
File:Registry.png
http://master.bitplan.com/images/master/d/d2/Registry.png

copy CEUR-WS page from rq wiki

./run -l -s rq -t ceur-ws -p "CEUR-WS_Online_Proceedings_for_Scientific_Conferences_and_Workshops"

add wiki entry to master.bitplan.com

{{Wiki
|id=ceur-ws
|since=2020-07-20
|server=s
|siteurl=http://ceur-ws.bitplan.com
|scriptPath=/
|owner=Wolfgang Fahl
|purpose=semantified version of http://www.ceur-ws.org 
|project=ConfIDent
|language=en
|storemode=property
}}

install base templates and properties from master

transfer base templates and properties from master.bitplan.com with "TransferPages"

@include(wiki.WikiBackup.wikijava)
=== wikis ===
@import org.sidif.triple.TripleStore
@import org.sidif.triple.TripleQuery
@import org.sidif.triple.Triple
@import org.sidif.wiki.SMW_Triples
@import com.bitplan.mediawiki.japi.api.Edit
@{
  Throwable error=null;
  TripleQuery transferPages=null;
  Wiki wiki=null;
  String wikiId=null;
  String params=null;
  String sourcewiki="Master";
  try {
    params=wikiTask.getParams();
    String[] parts = params.split(",");
    wikiId = parts[0];     
    if (parts.length>1) {
      sourcewiki = parts[1];
    }
    tripleStore=SMW_Triples.fromWikiId(wikiTask.getWikiId());
    query=tripleStore.query();
    wikiManager=new WikiManager(query);
    transferPageManager=new TransferPageManager(query);
    wiki=wikiManager.byId(wikiId);
  } catch (Throwable th) {
    error=th;
  }
}
@if(error) {
The error @(error.getClass().getName()) with msg @(error.getMessage()) occured
}
* @(wikiManager.mWikis.size()) wikis found
@("{|") class='wikitable sortable'
!id
!siteurl
|-
@for (Wiki lWiki:wikiManager.mWikis) {
|@(lWiki.id)
|@(lWiki.siteurl)
|-
}
@("|}")
==== json ====
<pre>
@(wikiManager.toJson())
</pre>
@if (wiki==null) {
Wiki with id '@wikiId' not found or [[Template:Wikitask]] params '@params' not ok.
} else {
* @(wiki.id) wiki is at  @(wiki.siteurl)
@{
  String errMessage=null;
  Map<String,String> transfers=new HashMap<String,String>();
  try {
    wiki.init();
    wiki.wiki.login();
  } catch (Throwable th) {
    errMessage=wiki.getErrMessage(th);
  }
}
@if(errMessage) {
  @errMessage
} else {
=== pages transfered ===
@for (TransferPage transferPage:transferPageManager.mTransferPages) {
@{
  String targetPage=transferPage.page;
  try {
    String summary="transfered by WikiBackup wikiTask at "+wiki.wiki.getIsoTimeStamp();
    if (sourcewiki.equals(transferPage.wiki)) {
      Edit copiedPage=wikiTask.getWiki().copyToWiki(wiki.wiki,targetPage,summary);
      transfers.put(transferPage.page,copiedPage.getTitle());
    }
  } catch (Throwable th) {
    errMessage=wiki.getErrMessage(th);
  }
}
@if(errMessage) {
  <span style="color:red">
  Error for @(targetPage): 
  @(errMessage)@{ errMessage=null; }
  </span>
} else {
@if (transfers.containsKey(transferPage.page)) {
* [[@(transferPage.page)]] @(transferPage.wiki) @(wiki.siteurl)@(wiki.scriptPath)index.php/@(wikiTask.getEncodedPagename(transfers.get(transferPage.page)))
}
}
}
}
}

regenerate MetaModel pages

ScreenshotEmptyMetaModel2020-07-20.png ScreenshotGeneratedMetaModel2020-07-20.png

setup initial main page

ScreenShotMainPage2020-07-20.png

copy ConfIdentMetaDataSchema from rq

./run -l -s rq -t ceur-ws -p "ConfIDentMetadataSchema"
Jul 20, 2020 9:50:18 AM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://rq.bitplan.com/api.php?:Success
Jul 20, 2020 9:50:19 AM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://ceur-ws.bitplan.com//api.php?:Success
File:CiteSchema.png
http://rq.bitplan.com/images/rq/9/90/CiteSchema.png
File:GlossaryEntry.png
http://rq.bitplan.com/images/rq/4/49/GlossaryEntry.png
File:Platform.png
http://rq.bitplan.com/images/rq/7/7d/Platform.png
File:ReferenceIcon.png
http://rq.bitplan.com/images/rq/8/8d/ReferenceIcon.png
File:SchemaProperty.png
http://rq.bitplan.com/images/rq/c/c8/SchemaProperty.png

regenerate ConfIDentMetaDataSchema pages

ScreenshotEmptyConfiDentMetaDataSchema2020-07-20.png ScreenshotGeneratedConfiDentMetaDataSchema2020-07-20.png

Mainpage shows 11 Topics now

ScreenShotMainPageWith11Topics-2020-07-20.png

Add Schema for CEUR-WS and generate

SIDIF encoding for CEUR-WS schema

#
# Context:CeurwsSchema
#
CeurwsSchema isA Context
"CeurwsSchema" is name of it
"http://ceur-ws.bitplan.com" is master of it
"2020-07-20" is since of it
#
# Volume
#
Volume isA Topic
"Volume" is name of it
"Volumes" is pluralName of it
"A Volume is a a collection of papers mostly documenting the results of an academic event" is documentation of it
"A Volume is a a collection of papers mostly documenting the results of an academic event" is wikiDocumentation of it
"File:Volume.png" is icon of it
"/images/rq/9/90/Volume.png" is iconUrl of it
"property" is defaultstoremode of it
"CeurwsSchema" is context of it
Volume_number addsTo it
# properties of Volume
# property number
Volume_number isA Property
"number" is name of it
"number" is label of it
"Number" is type of it
1 is index of it
1 is sortPos of it
true is primaryKey of it
true is mandatory of it
50 is size of it
false is uploadable of it
"The number Volume" is documentation of it
false is isLink of it
"Volume" is topic of it

initial generate of pages for CEUR-WS schema

ScreenShotEmptyCeurwsSchema2020-07-20.png ScreenShotGeneratedCeurwsSchema2020-07-20.png

Add Logos

Volume.pngVolume-64px.png

Modify Sidebar

ScreenShotSideBar2020-07-20.png

copy ConfIDent pages for sidebar

./run -l -s rq -t ceur-ws -p HowTo "List_of_Schema_Elements" "List_of_Platforms" List_of_Fixrequests
Jul 20, 2020 11:33:15 AM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://rq.bitplan.com/api.php?:Success
Jul 20, 2020 11:33:15 AM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://ceur-ws.bitplan.com//api.php?:Success
File:FixmeIcon.png
http://rq.bitplan.com/images/rq/e/e3/FixmeIcon.png
Jul 20, 2020 11:33:17 AM com.bitplan.mediawiki.japi.MediaWikiApiImpl handleError
SCHWERWIEGEND: error code=fileexists-no-change info:'The upload is an exact duplicate of the current version of [[:File:FixmeIcon.png]].'
Jul 20, 2020 10:40:34 AM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://rq.bitplan.com/api.php?:Success
Jul 20, 2020 10:40:34 AM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://ceur-ws.bitplan.com//api.php?:Success
File:SchemaProperty.png
http://rq.bitplan.com/images/rq/c/c8/SchemaProperty.png
Jul 20, 2020 10:40:37 AM com.bitplan.mediawiki.japi.MediaWikiApiImpl handleError
SCHWERWIEGEND: error code=fileexists-no-change info:'The upload is an exact duplicate of the current version of [[:File:SchemaProperty.png]].'
File:Platform.png
http://rq.bitplan.com/images/rq/7/7d/Platform.png
Jul 20, 2020 10:40:38 AM com.bitplan.mediawiki.japi.MediaWikiApiImpl handleError
SCHWERWIEGEND: error code=fileexists-no-change info:'The upload is an exact duplicate of the current version of [[:File:Platform.png]].'

Continue with Logos

ScreenShotGeneratedCeurwsSchemaWithLogo2020-07-20.png

## The relative URL path to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
#$wgLogo = "/images/master/thumb/5/53/Masterlogo.png/135px-Masterlogo.png";
$wgLogo="/images/ceur-ws/thumb/2/20/CEUR-WS-logo-blue.png/132px-CEUR-WS-logo-blue.png";

Create Properties with Action

Alternatively

MainPage with CEUR-WS Schema and logos

ScreenShotMainPageWithLogos2020-07-20.png

SSL

<VirtualHost *:443>
  ServerAlias secure.ceur-ws.bitplan.com
  ServerName ceur-ws.bitplan.com
  #Header add "Access-Control-Allow-Origin" "*"
  Include ssl.conf
  include ceur-ws.conf
</VirtualHost>
sudo service apache2 restart

https://ceur-ws.bitplan.com

make publicly visible

wf@s:/srv/www/mediawiki/sites/ceur-ws.bitplan.com$ cat BITPlanSettings.php 
<?php
#
# These settings were generated 2020-07-20 08:45:05 by createsite script
# these settings will be included after LocalSettings and general
# BITPlan settings
#  add specific settings as you see fit
#
$wgGroupPermissions['*']['read'] = true;

modify .htaccess rule

Copy Documentation here

./run -l -s media -t  ceur-ws -p CEUR-WS_2020-07-20  
Jul 20, 2020 12:00:51 PM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://media.bitplan.com/api.php?:Success
Jul 20, 2020 12:00:52 PM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://ceur-ws.bitplan.com//api.php?:Success
File:Clipboard20200720085747.png
http://media.bitplan.com/images/media/9/9a/Clipboard20200720085747.png
File:ScreenShotEmptyCeurwsSchema2020-07-20.png
http://media.bitplan.com/images/media/e/e9/ScreenShotEmptyCeurwsSchema2020-07-20.png
File:ScreenShotGeneratedCeurwsSchema2020-07-20.png
http://media.bitplan.com/images/media/f/fa/ScreenShotGeneratedCeurwsSchema2020-07-20.png
File:ScreenShotGeneratedCeurwsSchemaWithLogo2020-07-20.png
http://media.bitplan.com/images/media/3/3c/ScreenShotGeneratedCeurwsSchemaWithLogo2020-07-20.png
File:ScreenShotMainPage2020-07-20.png
http://media.bitplan.com/images/media/0/0a/ScreenShotMainPage2020-07-20.png
File:ScreenShotMainPageWith11Topics-2020-07-20.png
http://media.bitplan.com/images/media/4/4c/ScreenShotMainPageWith11Topics-2020-07-20.png
File:ScreenShotMainPageWithLogos2020-07-20.png
http://media.bitplan.com/images/media/9/91/ScreenShotMainPageWithLogos2020-07-20.png
File:ScreenShotSideBar2020-07-20.png
http://media.bitplan.com/images/media/2/24/ScreenShotSideBar2020-07-20.png
File:ScreenshotEmptyConfiDentMetaDataSchema2020-07-20.png
http://media.bitplan.com/images/media/9/9a/ScreenshotEmptyConfiDentMetaDataSchema2020-07-20.png
File:ScreenshotEmptyMetaModel2020-07-20.png
http://media.bitplan.com/images/media/d/d3/ScreenshotEmptyMetaModel2020-07-20.png
File:ScreenshotGeneratedConfiDentMetaDataSchema2020-07-20.png
http://media.bitplan.com/images/media/d/d7/ScreenshotGeneratedConfiDentMetaDataSchema2020-07-20.png
File:ScreenshotGeneratedMetaModel2020-07-20.png
http://media.bitplan.com/images/media/4/44/ScreenshotGeneratedMetaModel2020-07-20.png
File:Volume-64px.png
http://media.bitplan.com/images/media/5/53/Volume-64px.png
Jul 20, 2020 12:01:21 PM com.bitplan.mediawiki.japi.MediaWikiApiImpl handleError
SCHWERWIEGEND: error code=fileexists-no-change info:'The upload is an exact duplicate of the current version of [[:File:Volume-64px.png]].'
File:Volume.png
http://media.bitplan.com/images/media/1/11/Volume.png

Copy scite infrastructure here

./run -l -s rq -t ceur-ws -p MediaWiki:Sci-template-definition Template:ArticleCitation List_of_Scite_References
Jul 20, 2020 12:19:33 PM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://rq.bitplan.com/api.php?:Success
Jul 20, 2020 12:19:34 PM com.bitplan.mediawiki.japi.SSLWiki login
INFORMATION: http://ceur-ws.bitplan.com//api.php?:Success