SemanticMediaWiki / SemanticResultFormats

Provides additional visualizations (result formats) for Semantic MediaWiki
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats
Other
45 stars 75 forks source link

Prolog and R dataframe formats #697

Closed mfalda closed 4 months ago

mfalda commented 2 years ago

This PR is made in reference to: #9914a7628e9b74cfd35d8a7d07fbffaad9d21241

This PR addresses or contains:

This PR includes:

Fixes #

krabina commented 2 years ago

@gesinn-it-gea or @JeroenDeDauw is this ready for being accepted?

krabina commented 1 year ago

Can we accept this? @JeroenDeDauw @gesinn-it-gea It is a great idea to have an R result format!

JeroenDeDauw commented 1 year ago

This PR was marked as draft by OP, so IDK if it is even finished

krabina commented 1 year ago

Ah I see. @mfalda is this working well for you?

mfalda commented 1 year ago

I developed these SRFs for a scientific paper just submitted for review. At the end I used only the Prolog predicates idea for the repository smw SWI- Prolog pack, since a colleague told me that data scientists usually create dataframes form plain data formats (that is CSV files). In fact, also Prolog predicates could be created from CSV in Prolog, but I like them more as predicates to be asserte directly. Hopefully, it will be all clearer if the paper will be published ...

I left the pull request in draft since tests are still missing. I do not think that I will develop further the R dataframe format, but in my opinion the possibility to connect from Prolog would be nice.

mfalda commented 1 year ago

In any case, I can remove the "draft" status in the case someone wants to integrate the code.

krabina commented 1 year ago

Great, thank you for the info, good luck for your paper and we hope you stay on board. Please submit a short presentation at SMWCon: https://www.semantic-mediawiki.org/wiki/SMWCon_Fall_2022 As it is not an academic conference, you cannot talk about your paper before it is published, but you could certainly give a short talk about the two new formats in your PR.

mfalda commented 1 year ago

Thank you. I will try to work on a simple example in Prolog and/or R and, if worth, I will propose a brief talk.

Il mar 20 set 2022, 10:36 Bernhard Krabina @.***> ha scritto:

Great, thank you for the info, good luck for your paper and we hope you stay on board. Please submit a short presentation at SMWCon: https://www.semantic-mediawiki.org/wiki/SMWCon_Fall_2022 As it is not an academic conference, you cannot talk about your paper before it is published, but you could certainly give a short talk about the two new formats in your PR.

— Reply to this email directly, view it on GitHub https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/697#issuecomment-1252024441, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYIK3TDY3T7NY6XZVW5QM3V7FZR7ANCNFSM5K3Z27JA . You are receiving this because you were mentioned.Message ID: @.***>

krabina commented 1 year ago

@mfalda sorry your brief talk did not happen. Anyway, can you provide us with a simple example so we can test this. I would like to see this integrated.

mfalda commented 1 year ago

Hello, it is just an export format, but you can try the Export data page at my demo site: https://dbnsdemo.neuroscienze.unipd.it/wiki/index.php?title=Export_data. I developed the R format for using it in Shiny even if then I found that the CSV format could be simpler. The Prolog format however seems to me more useful and I also have developed a pack for SWI Prolog: https://github.com/mfalda/smw/.

By the way, do you know other semantics-capable systems, apart from MediaWIki, that use Shiny for presenting the data? Thank you very much.

krabina commented 1 year ago

The link points to a closed wiki.

mfalda commented 1 year ago

I am sorry, I forgot to specify the credentials! You can login with Username = Test and password = eest .

krabina commented 1 year ago

Can you update your branch? Then I guess there are no conflicts anymore.

krabina commented 1 year ago

@oetterer can you maybe look into this? I'd like to see this merged. Maybe you have a usecase for R or dataframe format?

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 0% with 129 lines in your changes are missing coverage. Please review.

Project coverage is 41.36%. Comparing base (c0dd4bb) to head (7a13bd2). Report is 12 commits behind head on master.

Files Patch % Lines
formats/dataframe/DataframePrinter.php 0.00% 76 Missing :warning:
formats/Prolog/PrologPrinter.php 0.00% 53 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #697 +/- ## ============================================ + Coverage 40.12% 41.36% +1.23% - Complexity 2332 2405 +73 ============================================ Files 78 81 +3 Lines 8247 7848 -399 ============================================ - Hits 3309 3246 -63 + Misses 4938 4602 -336 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.