daniel added a comment. Sorry for the initial misunderstanding. I was thinking of concept URIs, which are controlled by the conceptBaseUri setting.
So, after some digging around and talking to @Smalyshev, I think he's right: the canonical document URI should use the http schema, even though the canonical document URL should be a https URL. The reason is: we want documents to be retrieved via HTTPS if possible, so our canonical documenr URLs should be https URLs, and the plain http urls should redirect to the https url, as per section 2.11 of W3C's Linked Data recommendation <https://dvcs.w3.org/hg/ldpwg/raw-file/default/ldp-bp/ldp-bp.html#respond-with-primary-urls-and-use-them-for-identity-comparison>. However, be the same recommendations, URIs should always use the HTTP schema, see https://dvcs.w3.org/hg/ldpwg/raw-file/default/ldp-bp/ldp-bp.html#predicate-uris-should-be-http-urls section 2.1. This seems a bit arbitrary and annoying, but it's backed by other documents, such as section 4.1 of the Study on persistent URIs <https://joinup.ec.europa.eu/sites/default/files/c0/7d/10/D7.1.3%20-%20Study%20on%20persistent%20URIs.pdf> by the ISA. We currently construct the base URI for documents in two places, SpecialEntityData.php and dumpRdf.php. Both rely on the canonical URL of Special:EntityData. Note that the notion of canonical page URLs in core has recently been discussed, and the implementation improved, see https://gerrit.wikimedia.org/r/#/c/219782/2 So, currently, our canonical URIs are based on canonical URLs. Considering the protocol conundrum above, we probably need to change this. @Smalyshev's original patch <https://gerrit.wikimedia.org/r/#/c/218994/> will fix this for RDF output - do we need a more generic solution? In particular, how should URLs for rel="alternate" be constructed? See https://phabricator.wikimedia.org/T96298 and https://gerrit.wikimedia.org/r/#/c/219001/ for that. TASK DETAIL https://phabricator.wikimedia.org/T102717 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Smalyshev, daniel Cc: gerritbot, daniel, Aklapper, Smalyshev, jkroll, Wikidata-bugs, Jdouglas, aude, Manybubbles, JanZerebecki _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs