Page MenuHomePhabricator

[Story] Update shex-simple/wikidata to read schema from URL parameter
Closed, ResolvedPublic

Description

Options for https://rawgit.com/shexSpec/shex.js/wikidata/doc/shex-simple.html:

  1. GET shex-simple?schema=O123
  2. GET shex-simple?schema=https://www.wikidata.org/wiki/Special:SchemaText/O123
  3. POST shex-simple, schema=<foo> { … } …

@Lucas_Werkmeister_WMDE would prefer option 2, it’s the most generic from the point of view of the tool. (The Special:SchemaText is a placeholder for whatever the solution for T214383 turns out to be.)

Event Timeline

Lucas_Werkmeister_WMDE renamed this task from Update shex-simple/wikidata to read schema from URL parameter to [Story] Update shex-simple/wikidata to read schema from URL parameter.Feb 28 2019, 2:18 PM

@ericP would you be okay with implementing something like this? If you don’t want to do it, we can also send a pull request.

Lucas_Werkmeister_WMDE closed this task as Resolved.Mar 7 2019, 3:05 PM
Lucas_Werkmeister_WMDE claimed this task.

This is actually already implemented as a schemaURL parameter (or schema for the URL-encoded schema), e. g. https://wikidata-shex.wmflabs.org/wiki/Special:SchemaText/O2

shape-map and shape-mapURL also exist, apparently, though I’m not sure if we’ll need/use them.