Property talk:P854

From Wikidata
Jump to: navigation, search

Documentation

reference URL
should be used for internet URLs as references
Description Should be used for internet urls as references.
Represents Uniform Resource Locator (Q42253)
Data type URL
Domain references (note: this should be moved to the property statements)
Allowed values https?://.+
Example James Barry (Q1294046)http://www.newscientist.com/article/mg19726462.000-histories-the-male-military-surgeon-who-wasnt.html
Robot and gadget jobs DeltaBot does the following jobs:
See also official website (P856), stated in (P248), archive URL (P1065)
Lists
Proposal discussion Property proposal/Archive/14#P854
Current uses 2,811,327
[create] Create a translatable help page (preferably in English) for this property to be included here
Source only: this property can only be used in source.
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P854#Source, SPARQL
Format “https?://.+”: value must be formatted using this pattern (PCRE syntax).
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P854#Format, SPARQL

Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)


The property should not be used as mainsnak at all. These rules resolve some issues of this type automatically:

Pattern ^https?://(www\.)?plus\.google\.com/(\d{21}|\+[-\w_À-ÿА-я]+|communities/\d{21})(/(about(\?hl=en)?)?)?$ will be automatically replaced to \2 and moved to Google+ ID (P2847) property.
Testing: TODO list
Pattern ^https?://(www\.)?twitter\.com/([A-Za-z0-9_]{1,15})/?$ will be automatically replaced to \2 and moved to Twitter username (P2002) property.
Testing: TODO list
Pattern ^https?://(www\.)?instagram\.com/([a-z0-9_\.]+)/?$ will be automatically replaced to \2 and moved to Instagram username (P2003) property.
Testing: TODO list
Pattern ^https?://(www\.)?youtube\.com/channel/(UC([A-Za-z0-9_\-]){22})/?$ will be automatically replaced to \2 and moved to YouTube channel ID (P2397) property.
Testing: TODO list
Pattern ^https?://(www\.)?vk\.com/([A-Za-z0-9_\.]{2,32})/?$ will be automatically replaced to \2 and moved to VKontakte username (P3185) property.
Testing: TODO list
Pattern ^https?://(www\.)?linkedin\.com/in/([\-\&%A-Z0-9a-záâãåäăąćčçéèêěëğîıíłńñøóòôöõřśşșšțúůüýž]+)/?$ will be automatically replaced to https://www.linkedin.com/in/\2 and moved to LinkedIn personal profile URL (P2035) property.
Testing: TODO list
Pattern ^https?://(www\.)?enciclopedia-aragonesa\.com/voz\.asp\?voz_id=(\d+)/?$ will be automatically replaced to \2 and moved to Great Aragonese Encyclopedia ID (P1807) property.
Testing: TODO list

Discussion[edit]

https?[edit]

If a website can be accessed over both http and https, which one is preferred? --DSGalaktos (talk) 17:05, 3 October 2013 (UTC)

Maybe it would be better if protocol-relative URLs were allowed. I don't know whether there has already been discussion about that... SPQRobin (talk) 12:20, 4 October 2013 (UTC)
How do you separate http(s) from ftp et al then? -- Lavallen (talk) 13:37, 4 October 2013 (UTC)

official website[edit]

When the web page being used for referencing claims is the same as the 'official website' of the object, which property should be used for those claim references: this one or official website (P856)? See for example Nativity of St. John the Baptist (Q18602467). Bever (talk) 12:31, 12 June 2015 (UTC)

Still this one, I think. official website (P856) has a very different meaning, which doesn’t apply to references. —DSGalaktos (talk) 17:22, 12 June 2015 (UTC)

Ending slash[edit]

Hi,

The property must accept an ending slash, like Property:P856 (official website).

Regards,

Cantons-de-l'Est (talk) 13:42, 9 August 2015 (UTC)

Searching[edit]

One of the purposes of reference URL (P854) it that it should make it easy to identify which statements on which items are referenced to a particular website.

However, this has now become beyond the capability of the WDQS SPARQL service -- general queries to search the whole set of reference URLs all time out.

It's possible that the WDQS developers may be able to find some tweak to fix this. Otherwise, to make such reference searches possible, for the present it may be necessessary to limit the domain of items to be searched over in some way. Jheald (talk) 11:36, 11 February 2017 (UTC)

Danish[edit]

Jeg har nu ændret mærkatet på dette emne til "reference-URL" istedet for blot "URL" og også ændret navnet på den mere generelle egenskab URL (P2699) (før "ressource-URL"). Jeg håber det bringer mere klarhed? — Finn Årup Nielsen (fnielsen) (talk) 14:13, 10 March 2017 (UTC)