Page MenuHomePhabricator

wrong/missing formatted URL when 2 props given in Property Example
Open, Needs TriagePublicBUG REPORT

Description

I wanted to contrast NSZL (VIAF) ID vs NSZL name authority ID, so I gave 2 examples at https://www.wikidata.org/wiki/Property:P951#P1855

The Turtle https://www.wikidata.org/wiki/Special:EntityData/P951.ttl is missing a URL for the first value (pq:P951) and has the same wrong formatted URL for the second value (pqn:P3133)

s:P951-4b4415b2-4ddd-72dc-3c7b-a41a14c4161b a wikibase:Statement,
		wikibase:BestRank ;
	wikibase:rank wikibase:NormalRank ;
	ps:P1855 wd:Q763890 ;
	pq:P951 "000000004602" ;
	pq:P3133 "37277‏" ;
	pqn:P3133 <http://nektar.oszk.hu/data/auth/37277%E2%80%8F> .

Event Timeline

Turns out that VIAF pages (from which I copied the values) do have such weird invisible Unicode chars. Printed in hex:

3337 3237 37e2 808f e280 8f

But the second problem remains: only pqn:P3133 is generated, but not pqn:P951

s:P951-4b4415b2-4ddd-72dc-3c7b-a41a14c4161b a wikibase:Statement,
		wikibase:BestRank ;
	wikibase:rank wikibase:NormalRank ;
	ps:P1855 wd:Q763890 ;
	pq:P951 "000000004602" ;
	pq:P3133 "37277" ;
	pqn:P3133 <http://nektar.oszk.hu/data/auth/37277> .

Thanks. I removed the resolved parts of the description.

@Lucas_Werkmeister_WMDE Do you have an idea what's happening here?

I’m assuming the %E2%80%8F that’s still in the task description is outdated. I see the following:

wd:P951 p:P1855 s:P951-4b4415b2-4ddd-72dc-3c7b-a41a14c4161b .

s:P951-4b4415b2-4ddd-72dc-3c7b-a41a14c4161b a wikibase:Statement,
                wikibase:BestRank ;
        wikibase:rank wikibase:NormalRank ;
        ps:P1855 wd:Q763890 ;
        pq:P951 "000000004602" ;
        pq:P3133 "37277" ;
        pqn:P3133 <http://nektar.oszk.hu/data/auth/37277> .

wd:P951 p:P1855 s:P951-c786f9cb-42ab-d66b-bfce-5e41d2758096 .

s:P951-c786f9cb-42ab-d66b-bfce-5e41d2758096 a wikibase:Statement,
                wikibase:BestRank ;
        wikibase:rank wikibase:NormalRank ;
        ps:P1855 wd:Q20479300 ;
        pq:P951 "000000027686" ;
        pq:P3133 "684085" ;
        pqn:P3133 <http://nektar.oszk.hu/data/auth/684085> .

To me this looks correct. I assume by “missing a URL for the first value (pq:P951)”, you mean that it should also have a pqn:P951 triple? But P951 has no formatter URI for RDF resource, and that’s what controls normalized external identifier URLs (formatter URL isn’t used for RDF).