Multichill added a comment.

  In T257938#6313111 <https://phabricator.wikimedia.org/T257938#6313111>, 
@EBernhardson wrote:
  
  > I wonder, would the liceneses extracted from CommonsMetadata be consistent 
enough to map directly to wikidata properties? It would be a  lie, but it seems 
it would be a cleaner way into the future if we could translate the 
CommonsMetadata license information into an equivalent wikidata statement, and 
then add that to the statements indexed.
  >
  > For adding a new field, ContentHandler::getDataForSearchIndex() calls 
HookRunner::onSearchDataForIndex().  For whatever reason its SearchEngine that 
calls HookRunner::onSearchIndexFields() after all content models have had their 
fields from ContentHandler::getFieldsForSearchIndex() merged.
  
  Another approach would be that I use the output of that extension as input 
for by robot that adds statements to the structured data. 
  Mass adding licenses in structured data is extremely easy. Just pick your 
favorite category (https://commons.wikimedia.org/wiki/Category:CC-BY-SA-3.0-NL) 
and have a robot add the relevant statement.
  Mass adding licenses correctly and all in one edit is much harder. Say that 
the file has two licenses. I generally want to add the two licenses to the 
structured data and not just one of them. We also have to deal with fun edge 
cases like fallback licenses on public domain art. I doubt the extension 
handles all of these cases correctly so I rather stick to bulk importing the 
easy cases based on Wikitext.

TASK DETAIL
  https://phabricator.wikimedia.org/T257938

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Multichill
Cc: Multichill, EBernhardson, matthiasmullie, mwilliams, Aklapper, CBogen, 
Akuckartz, darthmon_wmde, Nandana, JKSTNK, Lahi, PDrouin-WMF, Gq86, 
E1presidente, Ramsey-WMF, Cparle, Anooprao, SandraF_WMF, GoranSMilovanovic, 
QZanden, Tramullas, Acer, LawExplorer, Salgo60, Silverfish, Poyekhali, _jensen, 
rosalieper, Taiwania_Justo, Scott_WUaS, Susannaanas, Ixocactus, Wong128hk, 
Jane023, Wikidata-bugs, Base, aude, El_Grafo, Dinoguy1000, Ricordisamoa, 
Wesalius, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Mbch331, 
Keegan
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to