Thanks for your replies!

I like the idea of a resolver service on labs, but I think it cannot solve the issue. e.g. for ChEMBL and IUPHAR (international union of pharmacology), there is no way to guess from the identifier onto the sub-domain this identifier belongs to. For ChEMBL, the pattern is: 'CHEMBL' prefix, followed by several digits, for IUPHAR IDs: digits only. For a resolver service to work in this case, it would either need to hold all ChEMBL IDs or would need to guess all ~5 URLs in order to find the correct one. Both approaches do not seem sustainable at this point.

So a temporary workaround could be to add the correct url as a qualifier, which I think would be doable, as most external ids will not have additional qualifiers anyway.

Cheers,
Sebastian

On Thu, Apr 28, 2016 at 3:59 AM, Lydia Pintscher <Lydia.Pintscher@wikimedia.de> wrote:
On Wed, Apr 27, 2016 at 9:54 PM Markus Kroetzsch <markus.kroetzsch@tu-dresden.de> wrote:
Doing this in Wikidata is tricky and takes time. I don't even see how to
do it well (note that external tools like Reasonator or SQID would also
need to implement the same smart resolution mechanism). Having several
properties for the same thing just because of different ID types used
does not seem very compelling either.

How about building a little external referrer service that redirects IDs
to the correct resource based on their structure? This could be a simple
PHP-based web service hosted on Labs. In the end, the formatter URL is
just for users to click on, so as long as you end up at the right place,
this little indirection is maybe no problem.

Yeah I also don't have a good solution for this case so far. IMDB is also causing issues. I think creating a service on labs is at least a good solution until we have something better built into Wikibase.

Cheers
Lydia 
--
Product Manager for Wikidata

Wikimedia Deutschland e.V.
Tempelhofer Ufer 23-24
10963 Berlin

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.

Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207.

_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata