weso / wikishape

Web client for RDFShape API with customized for Wikidata.
http://wikishape.weso.es
MIT License
5 stars 4 forks source link

Support to extract a schema from an entity from Wikibase instances #16

Closed labra closed 2 years ago

labra commented 4 years ago

The option to extract a schema from data works only for Wikidata. When trying with a wikibase instance it complains with this error:

http://cursoslabra.wiki.opencura.com/entity/Q1 doesn't match regular expression: http://www.wikidata.org/entity/(.*)

So it seems that the extraction of the Q1 from the URI is hardcoded to wikidata. Check how to generalize it.

ulitol97 commented 2 years ago

Issue solved by implementing support for custom Wikibase instances. See #12 for additional details.

Check this example too, https://wikishape.weso.es/link/16475127673, where a schema is extracted from https://cursoslabra.wiki.opencura.com/wiki/Item:Q2.