loki issueshttps://gitlab.geist.re/pro/loki/-/issues2017-12-04T00:09:22Zhttps://gitlab.geist.re/pro/loki/-/issues/43Reasoning unit tests results are not saved in PROV file2017-12-04T00:09:22ZKrzysztof KuttReasoning unit tests results are not saved in PROV filehttps://gitlab.geist.re/pro/loki/-/issues/42PROV: two semicolons in generated file2017-12-04T01:39:05ZKrzysztof KuttPROV: two semicolons in generated fileTwo semicolons appeared in the generated PROV file. It was not properly parsed in visualisation tool (by V. Perepeliak)...
```
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-sch...Two semicolons appeared in the generated PROV file. It was not properly parsed in visualisation tool (by V. Perepeliak)...
```
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix loki: <http://loki.ia.agh.edu.pl/wiki/ns#> .
@prefix lokipage: <http://localhost:8800/doku.php?id=> .
@prefix lokievent: <http://localhost:8800/doku.php?id=special:lokievent#> .
@prefix lokiuser: <http://localhost:8800/doku.php?id=user:> .
lokipage:start34 a prov:Entity .
lokipage:start34_1510585137 a prov:Entity ;
prov:specializationOf lokipage:start34 ;
prov:wasGeneratedBy lokievent:created_start34_1510585137 .
lokievent:created_start34_1510585137 a prov:Activity ;
prov:wasAssociatedWith lokiuser:vapsel ;
dc:description "created" ;
loki:whatWasDone "New content added" ;
loki:whyWasDone "Knowledge database expansion" ;
; // <---- WHEN THIS LINE WAS REMOVED, THE FILE WAS PROPERLY PARSED
prov:used lokipage:test ;
loki:attributeRichness [ loki:valueBefore ""; loki:valueAfter "" ] ;
loki:averagePopulation [ loki:valueBefore ""; loki:valueAfter "" ] ;
loki:sizeOfVocabulary [ loki:valueBefore "0"; loki:valueAfter "0" ] ;
loki:edgeNodeRatio [ loki:valueBefore "0"; loki:valueAfter "0" ] .
```https://gitlab.geist.re/pro/loki/-/issues/35revisionsrater: all events are named as edited in PROV file2017-11-08T14:54:42ZKrzysztof Kuttrevisionsrater: all events are named as edited in PROV fileEvents are named in PROV files accordingly to the scheme: ``lokievent:[event]_[page]_[timestamp]``, where ``event`` is one of {``created``, ``edited``, ``deleted``}. But even if the evaluated event is ``created`` (what can be seen in the...Events are named in PROV files accordingly to the scheme: ``lokievent:[event]_[page]_[timestamp]``, where ``event`` is one of {``created``, ``edited``, ``deleted``}. But even if the evaluated event is ``created`` (what can be seen in the PROV section related to this event), the revisionsrater generates the triples, where ``event`` is ``edited``.https://gitlab.geist.re/pro/loki/-/issues/33Reasoning unit tests do not wait until the knowledge is updated2017-11-08T14:59:42ZKrzysztof KuttReasoning unit tests do not wait until the knowledge is updatedKnowledge within Loki is updated when page is opened (if you save the page, the page is then opened and knowledge is updated).
Unit tests are executed as a hook just after the page save, so before the knowledge is updated. It's a problem ;)Knowledge within Loki is updated when page is opened (if you save the page, the page is then opened and knowledge is updated).
Unit tests are executed as a hook just after the page save, so before the knowledge is updated. It's a problem ;)https://gitlab.geist.re/pro/loki/-/issues/28PROV: add xsd types to literals2017-11-08T14:59:18ZKrzysztof KuttPROV: add xsd types to literalsAdd xsd:integer, xsd:decimal, xsd:string types to literals in generated PROV files.
The types specification for literals is available @kkutt (PROV template in PhD).
Also add the xsd prefix definition to the file preamble.Add xsd:integer, xsd:decimal, xsd:string types to literals in generated PROV files.
The types specification for literals is available @kkutt (PROV template in PhD).
Also add the xsd prefix definition to the file preamble.https://gitlab.geist.re/pro/loki/-/issues/27PROV: add semantic metrics2017-11-08T14:59:09ZKrzysztof KuttPROV: add semantic metricsSemantic changes should be written down as triples:
`lokievent:{event}_{$page}_{$newRev}
loki:classesChange "{$val}"; # TODO: how many [category:] statements were added/removed (+/-)
loki:relationsChange "{$val}"; # TODO: h...Semantic changes should be written down as triples:
`lokievent:{event}_{$page}_{$newRev}
loki:classesChange "{$val}"; # TODO: how many [category:] statements were added/removed (+/-)
loki:relationsChange "{$val}"; # TODO: how many relation (to other pages)...
loki:attributesChange "{$val}"; # TODO: how many attributes (to literals)...
loki:statementsChange "{$val}"; # TODO: how many ALL statements...`
`compare_temp_semantic_data` function from commit https://gitlab.geist.re/pro/loki/commit/39e4424eda4c1d38e7ad53da761fbd338795f4f1 may be usefulhttps://gitlab.geist.re/pro/loki/-/issues/26PROV: add testsPassed information2017-11-08T15:01:51ZKrzysztof KuttPROV: add testsPassed informationFollowing triples should be created by the Loki unit tests mechanism (if the PROV plugin is available):
`lokievent:{type}_{$page}_{$newRev} loki:testsPassed
[ loki:valueBefore "{$metric_val}" ;
loki:valueAfter "{$metric_val}"...Following triples should be created by the Loki unit tests mechanism (if the PROV plugin is available):
`lokievent:{type}_{$page}_{$newRev} loki:testsPassed
[ loki:valueBefore "{$metric_val}" ;
loki:valueAfter "{$metric_val}" ] ;`
Do it the same way as revisionsrater does (triples-related code is placed in the PROV plugin and executed from the revisionsrater).https://gitlab.geist.re/pro/loki/-/issues/25PROV: change whatWasDone and whyWasDone into an ontology2017-11-08T15:01:40ZKrzysztof KuttPROV: change whatWasDone and whyWasDone into an ontologywhatWasDone and whyWasDone are currently saved as strings -> change it to ontology concepts with URIs (detailed specification has @kkutt )whatWasDone and whyWasDone are currently saved as strings -> change it to ontology concepts with URIs (detailed specification has @kkutt )https://gitlab.geist.re/pro/loki/-/issues/24PROV: scale metrics to [1,5] range and add weightedAverage2017-11-08T15:01:33ZKrzysztof KuttPROV: scale metrics to [1,5] range and add weightedAverageProbably the DokuWiki config option will be good for specifying the way how the weightedAverage metric should be calculated (e.g. as string "`-0.5*ENR+AR+CR`" or formulae will be hard-coded and user will only select from the available op...Probably the DokuWiki config option will be good for specifying the way how the weightedAverage metric should be calculated (e.g. as string "`-0.5*ENR+AR+CR`" or formulae will be hard-coded and user will only select from the available options)https://gitlab.geist.re/pro/loki/-/issues/23revisionsrater: even if user is logged, he/she is saved in prov file as a guest2017-11-08T15:02:38ZKrzysztof Kuttrevisionsrater: even if user is logged, he/she is saved in prov file as a guesthttps://gitlab.geist.re/pro/loki/-/issues/19PROV: metrics before and after change -- these are the same values?2017-12-03T23:27:31ZKrzysztof KuttPROV: metrics before and after change -- these are the same values?PROV plugin calculates some metrics before and after page change (to see what difference was made by the change). I reviewed some values in the PROV files and it seems that **values before and after change are the same**!
Two options:
1...PROV plugin calculates some metrics before and after page change (to see what difference was made by the change). I reviewed some values in the PROV files and it seems that **values before and after change are the same**!
Two options:
1. I looked only at changes that do not affect semantics (metrics are calculated based on semantics) and everything is ok;
2. metrics before or metrics after are not calculated properly -- which ones and how to fix it?
Needs some investigation.
Edit 11.08.2017: Also, there is no need to calculate the metrics twice for each change. They could be calculated once (in some "critical section" if it is possible on the PHP level), then saved somewhere and compared to the previously saved values.https://gitlab.geist.re/pro/loki/-/issues/18PROV: Does Turtle syntax allow more than one colon in name?2017-12-03T22:40:30ZKrzysztof KuttPROV: Does Turtle syntax allow more than one colon in name?PROV plugin generates Turtle files that has more than one colon in name, e.g. lokipage:wiki:welcome .
Is it allowed by the Turtle syntax?
https://provenance.ecs.soton.ac.uk/validator/view/validator.html marks it as an errorPROV plugin generates Turtle files that has more than one colon in name, e.g. lokipage:wiki:welcome .
Is it allowed by the Turtle syntax?
https://provenance.ecs.soton.ac.uk/validator/view/validator.html marks it as an errorKrzysztof KuttKrzysztof Kutthttps://gitlab.geist.re/pro/loki/-/issues/53rdfloki does not work when lokiontology plugin is active2018-09-16T15:49:59ZKrzysztof Kuttrdfloki does not work when lokiontology plugin is active"show graph" button (rdfloki) is not displayed when lokiontology plugin is installed and active"show graph" button (rdfloki) is not displayed when lokiontology plugin is installed and activehttps://gitlab.geist.re/pro/loki/-/issues/52Loki doesn't work with DokuWiki 2018-04-22a "Greebo"2018-08-31T11:43:27ZKrzysztof KuttLoki doesn't work with DokuWiki 2018-04-22a "Greebo"As in title. Pages are blank.As in title. Pages are blank.https://gitlab.geist.re/pro/loki/-/issues/51very big loki tmp files (not deleted automatically)2018-08-09T12:33:35ZKrzysztof Kuttvery big loki tmp files (not deleted automatically)Loki created very big tmp files (for SWI-Prolog?) and did not delete them even after 4 months...
The whole DokuWiki with all plugins and user-created content has 53 MB, but this tmp files took an additional 5.4 GB on the disk!
```
> ls...Loki created very big tmp files (for SWI-Prolog?) and did not delete them even after 4 months...
The whole DokuWiki with all plugins and user-created content has 53 MB, but this tmp files took an additional 5.4 GB on the disk!
```
> ls -alh WIKI/lib/plugins/loki/tmp
-rw-rw---- 1 www-data www-data 1.4K May 9 10:30 lokidokuwiki.code0b231ff21c7d73d38a525dd6f1408b37
-rw-rw---- 1 www-data www-data 1.4K May 9 10:40 lokidokuwiki.code1c32066707e047462ca823433766a51b
-rw-rw---- 1 www-data www-data 1.4K Apr 5 08:19 lokidokuwiki.code1e2daae88bd2349a110146626e1f4b0c
-rw-rw---- 1 www-data www-data 1.4K Apr 17 17:32 lokidokuwiki.code38deac0a9644d7c10e840df795687268
-rw-rw---- 1 www-data www-data 1.4K Apr 5 08:21 lokidokuwiki.code43ca8e3247df0b588bf2810e4af5201b
-rw-rw---- 1 www-data www-data 1.4K Apr 5 08:50 lokidokuwiki.code45e55f992ecc4b3c2b4037c23a48208c
-rw-rw---- 1 www-data www-data 1.4K May 9 10:35 lokidokuwiki.code46fdcb10b732fa257df157772247216d
-rw-rw---- 1 www-data www-data 1.4K May 9 11:06 lokidokuwiki.code7bb9824f8b3355ddf7d64b9ac95cb137
-rw-rw---- 1 www-data www-data 1.4K Apr 5 08:18 lokidokuwiki.codeb4ea38ac0473d5d96747ab1555beea36
-rw-rw---- 1 www-data www-data 1.4K May 9 10:49 lokidokuwiki.coded651f78ea2d29605ea62423f9bbc14d7
-rw-rw---- 1 www-data www-data 1.4K Apr 5 08:25 lokidokuwiki.codede97aa6bf0742f07acfbb7e2be10cfeb
-rw-rw---- 1 www-data www-data 1.4K May 9 10:32 lokidokuwiki.codef86bd4f9378b72e85be668af726387af
-rw-r--r-- 1 www-data www-data 485M May 9 10:58 lokidokuwiki.loki0b231ff21c7d73d38a525dd6f1408b37
-rw-r--r-- 1 www-data www-data 485M May 9 11:11 lokidokuwiki.loki1c32066707e047462ca823433766a51b
-rw-r--r-- 1 www-data www-data 485M Apr 5 08:49 lokidokuwiki.loki1e2daae88bd2349a110146626e1f4b0c
-rw-r--r-- 1 www-data www-data 485M Apr 17 17:48 lokidokuwiki.loki38deac0a9644d7c10e840df795687268
-rw-r--r-- 1 www-data www-data 485M Apr 5 08:51 lokidokuwiki.loki43ca8e3247df0b588bf2810e4af5201b
-rw-r--r-- 1 www-data www-data 485M Apr 5 09:07 lokidokuwiki.loki45e55f992ecc4b3c2b4037c23a48208c
-rw-r--r-- 1 www-data www-data 485M May 9 11:06 lokidokuwiki.loki46fdcb10b732fa257df157772247216d
-rw-r--r-- 1 www-data www-data 180M May 9 11:14 lokidokuwiki.loki7bb9824f8b3355ddf7d64b9ac95cb137
-rw-r--r-- 1 www-data www-data 485M Apr 5 08:47 lokidokuwiki.lokib4ea38ac0473d5d96747ab1555beea36
-rw-r--r-- 1 www-data www-data 439M May 9 11:14 lokidokuwiki.lokid651f78ea2d29605ea62423f9bbc14d7
-rw-r--r-- 1 www-data www-data 485M Apr 5 08:54 lokidokuwiki.lokide97aa6bf0742f07acfbb7e2be10cfeb
-rw-r--r-- 1 www-data www-data 485M May 9 11:02 lokidokuwiki.lokif86bd4f9378b72e85be668af726387af
```https://gitlab.geist.re/pro/loki/-/issues/50provviz: does not work with nice URLs2018-03-11T22:05:53ZKrzysztof Kuttprovviz: does not work with nice URLsIf nice URLs are set to `DokuWiki internal`, provviz generates not valid links for images: `WIKI/doku.php/lib/exe/fetch.php?media=provvis:start.svg` instead of `WIKI/lib/exe/fetch.php?media=provvis:start.svg`If nice URLs are set to `DokuWiki internal`, provviz generates not valid links for images: `WIKI/doku.php/lib/exe/fetch.php?media=provvis:start.svg` instead of `WIKI/lib/exe/fetch.php?media=provvis:start.svg`https://gitlab.geist.re/pro/loki/-/issues/49SPARQL: dot before the FILTER is required in Loki2017-12-04T16:10:18ZKrzysztof KuttSPARQL: dot before the FILTER is required in LokiIf the SPARQL query contains FILTER you have to put the dot right after the last triple before the FILTER. This is not compatible with the SPARQL definition.
```
<pl format="sparql">
PREFIX wiki: <>
SELECT ?page ?lang ?length
WHERE
...If the SPARQL query contains FILTER you have to put the dot right after the last triple before the FILTER. This is not compatible with the SPARQL definition.
```
<pl format="sparql">
PREFIX wiki: <>
SELECT ?page ?lang ?length
WHERE
{
?page a "querytest".
?page wiki:test_lang ?lang.
?page wiki:test_length ?length. <---- THIS DOT IS REQUIRED BY LOKI
FILTER (?lang!='polish')
}
ORDER BY INC(?length)
LIMIT 5
</pl>
```https://gitlab.geist.re/pro/loki/-/issues/48lokiontology: Preview button instead of Save while editing ontology2017-12-04T02:09:51ZKrzysztof Kuttlokiontology: Preview button instead of Save while editing ontologyThe same installation (copy-pasted `przepisy` wiki). Edition of `special:ontology:default`
- on localhost @kkutt : buttons Save and Cancel are available
- on kirk/loki.ia.agh.edu.pl : instead of Save there is a Preview button and there i...The same installation (copy-pasted `przepisy` wiki). Edition of `special:ontology:default`
- on localhost @kkutt : buttons Save and Cancel are available
- on kirk/loki.ia.agh.edu.pl : instead of Save there is a Preview button and there is no possibility to save changeshttps://gitlab.geist.re/pro/loki/-/issues/47Reasoning unit tests description in Loki Tour and Loki manual2017-12-04T01:34:36ZKrzysztof KuttReasoning unit tests description in Loki Tour and Loki manualhttps://gitlab.geist.re/pro/loki/-/issues/46provviz: does not work for dokuwiki internal nice URLs2017-12-04T01:33:18ZKrzysztof Kuttprovviz: does not work for dokuwiki internal nice URLs