Property talk:P854

From Wikidata
Jump to navigation Jump to search

Documentation

reference URL
should be used for internet URLs as references. Use P4656 for interwiki links
DescriptionShould be used for internet urls as references.
RepresentsUniform Resource Locator (Q42253)
Data typeURL
Domainreferences (note: this should be moved to the property statements)
Allowed valueshttps?://.+
ExampleJames Barry (Q1294046) → http://www.newscientist.com/article/mg19726462.000-histories-the-male-military-surgeon-who-wasnt.html
Robot and gadget jobsDeltaBot does the following jobs:
See alsoofficial website (P856), stated in (P248), archive URL (P1065), Wikimedia import URL (P4656)
Lists
  • Count of items by number of statements (chart)
  • Count of items by number of sitelinks (chart)
  • Items with the most identifier properties
  • Items with no other statements
  • Items with novalue claims
  • Items with unknown value claims
  • Usage history
  • Database reports/Constraint violations/P854
  • Proposal discussionProperty proposal/Archive/14#P854
    Current uses12,371,121
    [create] Create a translatable help page (preferably in English) for this property to be included here
    Scope is as references (Q54828450): the property must be used by specified way only (Help)
    Exceptions are possible as rare values may exist.
    List of this constraint violations: Database reports/Constraint violations/P854#scope
    Format “https?://.+”: value must be formatted using this pattern (PCRE syntax). (Help)
    List of this constraint violations: Database reports/Constraint violations/P854#Format, hourly updated report, SPARQL
    Format “^((?!wikipedia.org).)*$”: value must be formatted using this pattern (PCRE syntax). (Help)
    Exceptions are possible as rare values may exist. Known exceptions: Doteli Wikipedia (Q29048035)
    List of this constraint violations: Database reports/Constraint violations/P854#Format, SPARQL
    Format “^((?!wikidata.org).)*$”: value must be formatted using this pattern (PCRE syntax). (Help)
    Exceptions are possible as rare values may exist. Known exceptions: external identifier (Q21754218), Wikibase item (Q29934200), Quantity (Q29934271), String (Q29934246)
    List of this constraint violations: Database reports/Constraint violations/P854#Format, SPARQL
    Format “^((?!wikivoyage.org).)*$”: value must be formatted using this pattern (PCRE syntax). (Help)
    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 ID (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)

    How can any Wikipedia be set as a reference?[edit]

    Wikipedia doesn't allow any references to Wikipedia. So how can wikidata have any references to Wikipedia? (en Wikipedia, fr, it, ru, zh, Malay, Cebuano etc.) They are not proper references, any of them, and I think a bot could get rid of them all. Only proper references allowed. 49.145.128.113 00:54, 25 January 2018 (UTC)

    Wikidata:Notability, if: "1. It contains at least one valid sitelink to a page on Wikipedia, Wikivoyage, Wikisource, Wikiquote, Wikinews, Wikibooks, Wikidata, Wikispecies, Wikiversity, or Wikimedia Commons" --Fractaler (talk) 07:58, 26 January 2018 (UTC)
    For one thing, it is very useful to reference an old Wikipedia article revision that was wrong on a particular fact.
    That said, I think the format constraint here is a bit odd -- on eg Q6766578#P569 it's telling me "The value for reference URL (https://en.wikipedia.org/w/index.php?title=Mark_Antony_Lower&oldid=747006856) should match the regex ^((?!wikipedia.org).)*$." -- presumably, what is intended is "The value for reference URL should not match the regex" -- ie forbidding references purely to ??.wikipedia.org (but allowing more detailed URLs ?) Jheald (talk) 13:32, 7 April 2018 (UTC)
    OK, so in fact that is what this is saying, albeit in a rather obscure way. The regex ^((?!wikipedia.org).)*$." forbids "wikipedia.org" after some text -- though I'm still not sure I completely parse exactly what it's doing, and the significance of the regex being tied to the start and the end of the string, when "wikipedia.org" appears in neither of those places in my URL. Jheald (talk) 13:58, 7 April 2018 (UTC)
    Apparently Wikimedia import URL (P4656) is now available for this purpose. Jheald (talk) 14:48, 7 April 2018 (UTC)

    Uses of this property as qualifier[edit]

    Actually, this property is listed as an allowed qualifiers of described by source (P1343). I think it is wrong and all the instances of this property as qualifier of described by source (P1343) should be substituted by URL (P2699). What do you think?--Malore (talk) 14:32, 29 May 2018 (UTC)

    No issue. - PKM (talk) 20:22, 1 June 2018 (UTC)
    @PKM: No issue with the current use or no issue with my proposal?--Malore (talk) 12:07, 7 June 2018 (UTC)
    @Malore: No issue with your proposal. (Actually, happy with whatever the consensus is.) - PKM (talk) 20:00, 7 June 2018 (UTC)

    accept wikidata pages as values in property pages[edit]

    I think it should be allowed to use Wikidata discussions or proposals as references of property statements.--Malore (talk) 12:18, 7 June 2018 (UTC)