Edit Event: Event:168
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
The action you have requested is limited to users in the group: member.
You do not have permission to edit pages in the
Event
namespace.
Save
Cancel
MWstake Meeting?
Yes
No
Title:
MWstake meeting
Start Date:
Start Time (UTC):
16
:
30
End Date:
End Time (UTC):
17
:
30
URL:
Tags:
Attendees:
Ad Strack van Schijndel
Bernhard Krabina
Brian Wolff
Bryan Hildebrand
Charlot Cobben
Cindy Cicalese
Gergő Tisza
Greg Rundlett
Jared Olson
Mark Hershberger
Thomas Topway
==Meeting agenda== # '''Wait for attendees & chat''' {{Agenda time|5 min}} # '''Wiki Quickie''' {{Agenda time|5 min}} {{Agenda presenter|TBD}} # '''MediaWiki News''' {{Agenda time|20 min}} {{Agenda presenter|Mark}} # '''Editing JSON with FlexForm''' {{Agenda time|15 min}} {{Agenda presenter|[[User:Ccobben|Charly]]}} #* Especially when dealing with scientific data stored as json in a wiki, it can be very useful to be able to edit that data or perhaps enrich it. But also a simpler jsons for e.g. a menu structure would be great to edit. I'd like to demonstrate how to identify the data you are using inside a variant of a json schema and how you can then edit all this data very easily with FlexForm. # '''Wiki Watercooler''' {{Agenda time|remaining}} {{Agenda presenter|Open Mic}} ==Notes== The meeting voice transcription is available on the [[Event_talk:{{PAGENAME}}|talk page]]. # {{Agenda presenter|Gergo}} '''MediaWiki News''' #* See notes in [https://etherpad.wikimedia.org/p/mwstake-2023-03 Etherpad] # {{Agenda presenter|Charly}} '''Editing JSON with FlexForm''' #* Charly gave a demonstration on how [https://www.mediawiki.org/wiki/Extension:FlexForm FlexForm] can store/edit JSON # {{Agenda presenter|Bernhard}} & {{Agenda presenter|Thomas}} '''SMW Data Tables Functionality''' #* Bernhard & Thomas shared new Semantic Results Format using data tables #* https://www.semantic-mediawiki.org/wiki/Help:Datatables_format_(v2) ===Chat transcript=== # '''Gergo Tisza:''' https://etherpad.wikimedia.org/p/mwstake-2023-03 # '''Brian Wolff:''' JsonP is the name of a different technology. That was popular about 10 years ago # '''Greg Rundlett:''' ahh, that was my confusion # '''Bernhard Krabina:''' https://www.semantic-mediawiki.org/wiki/Help:Datatables_format_(v2) # '''Greg Rundlett:''' This jQuery plugin right? https://datatables.net/ # '''Greg Rundlett:''' ^ yes # '''Greg Rundlett:''' As seen here: https://www.semantic-mediawiki.org/wiki/Help:Plug-ins # '''Greg Rundlett:''' I'm wondering about a Q I entered in Element.... How would you best access SMW properties from PHP / export to JS? # '''Bernhard Krabina:''' maybe this helps? https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/architecture/querying.data.md # '''Charlot Cobben:''' Get a SMW property: #: <syntaxhighlight lang="JS" style="max-width:850px"> public static function getSemanticProperty( $title, string $propertyLabel ) { if ( $title === null ) { return null; } if ( is_string( $title ) ) { $title = Title::newFromText( $title ); } // Use Semantic MediaWiki code to properly retrieve the value $page = SMWDIWikiPage::newFromTitle( $title ); $store = StoreFactory::getStore(); $data = $store->getSemanticData( $page ); $property = SMWDIProperty::newFromUserLabel( $propertyLabel ); $values = $data->getPropertyValues( $property ); if ( count( $values ) > 0 ) { $value = array_shift( $values ); if ( method_exists( $value, 'getTitle' ) ) { return $value->getTitle(); } return $value->getString(); } else { return null; } }</syntaxhighlight> # '''Thomas-topway-it:''' yes, I recognize it # '''Greg Rundlett:''' Posted above into Element for 'saving' outside this meeting # '''Brian Wolff:''' FREEDOM is the issue 🇺🇸 🇺🇸 🦅🦅 # '''Bryan:''' @Charly, did Google cut off some of your code? # '''Charlot Cobben:''' Google? I copied it from some code I have... I'll put in in Element # '''Bernhard Krabina:''' just read about Elastic vs. OpenSearch here: https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/5451 # '''Bryan:''' Google Meet chat, I think it cut off the end? # '''Charlot Cobben:''' I mean etherpad # '''Gergo Tisza:''' https://phabricator.wikimedia.org/T280482 ==Action board== {{Actionable board |Open |{{PAGENAME}} |MWStake |True |View |{{PAGENAME}} }}
Save
Cancel
Navigation menu
Personal tools
Log in
Namespaces
Event
Discussion
English
Views
Read
View form
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help
This-is-the-bylaws
Tools
What links here
Related changes
Special pages
Page information