VladimirAlexiev created this task.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION

Using an IRI to search a WD entity by WP IRI finds nothing:

<https://en.wikipedia.org/wiki/University_of_Tromsø> schema:about ?x

One has to search by the encoded URL:

select * {
  <https://en.wikipedia.org/wiki/University_of_Troms%C3%B8> schema:about ?x
}

Other "special" chars in URLs (eg parentheses) are not encoded.
Can you confirm whether only non-ASCII chars are encoded?

This makes it hard to integrate WD data to other datasets by WP URL: one has to encode some chars before querying WD.

The percent-encoded URL is equivalent to the IRI, so why WD query finds nothing for the first query?

If I take the str() form of the URL, it must return the decoded URL, but it does not:

select * {
 ?x schema:about wd:Q279724; schema:isPartOf <https://en.wikipedia.org/>.
 bind(str(?x) as ?y)
}

returns the string https://en.wikipedia.org/wiki/University_of_Troms%C3%B8.


TASK DETAIL
https://phabricator.wikimedia.org/T210738

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: VladimirAlexiev
Cc: Wikidata, Aklapper, VladimirAlexiev
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to