I have been trying to use this to map Disease Ontology (DO) Identifiers to
their respective URIs. .
external-ids can be mapped to URIs using a URI pattern
defined on the
respective
property. Similarly, external-ids can be mapped to URLs for linking. URL
and URI
would often, but not always, be the same.
There is a particular pattern of identifiers where this does not work. We
have been trying to use this mechanism to map Disease Ontology (DO)
Identifiers to their respective URIs. A DO identifier contains the prefix
DOID, which is considered an intrinsic part of the identifier (e.g. DOID:2841).
However the related URI is
http://purl.obolibrary.org/obo/DOID_2841, where
the colon changes for an underscore. On other identifiers in WIkidata
mappings, this is solved by removing the prefix from the identifier and
have the uri pattern as
http://purl.obolibrary.org/obo/DOID_$. This is
however problematic since in most contexts where the identifiers are used,
the prefix is considered an intrinsic part of the identifier. This also
applies to Gene Ontology identifiers and MGI identifiers. Are there maybe
more ways to format a URI pattern with its related identifier, the the $
only?
If a property commonly contains URIs, I would suggest
to use the url
datatype
instead of the new external-id datatype. Technically, this is incorrect
since
not all URIs are URLs, but I think in practice that should not pose a
problem.
Yes makes sense.
--
Daniel Kinzler
Senior Software Developer
Wikimedia Deutschland
Gesellschaft zur Förderung Freien Wissens e.V.
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata