Property talk:P8672

From Wikidata
Jump to navigation Jump to search

Documentation

RepresentsTwitter topic (Q99767403)
Associated itemX (Q918), Twitter, Inc. (Q1390577)
Data typeExternal identifier
Allowed values[1-9]\d{10,18}
Usage notesTo archive the JSON containing the list of topics, visit https://web.archive.org/save/https://twitter.com/i/flow/topics_selector (the JSON is retrieved with a POST request). The number of records is the number of unique topic IDs listed (some entries are duplicates)
ExampleBTS (Q13580495)844438182523383808
Taylor Swift (Q26876)806225270591995904
Sourcehttps://twitter.com/i/topics/picker/home
Formatter URLhttps://twitter.com/i/topics/$1
Related to country United States of America (Q30) (See 762 others)
See alsoQuora topic ID (P3417), Google News topics ID (P5337), Reddit topic ID (P11137)
Lists
Proposal discussionProposal discussion
Current uses
Total3,026
Main statement3,022 out of 3,469 (87% complete)99.9% of uses
Qualifier2<0.1% of uses
Reference2<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P8672#Unique value, SPARQL (every item), SPARQL (by value)
Format “[1-9]\d{10,18}: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P8672#Format, SPARQL
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P8672#Single value, SPARQL
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P8672#Scope, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P8672#Entity types

Zero[edit]

@Pamputt: It looks like the regex doesn't work for IDs with 0 in them. I'm not sure if I can edit this directly and I also don't know regex. Can you help with this so the warnings go away? Thanks! AntisocialRyan (talk) 19:00, 30 September 2020 (UTC)[reply]

@AntisocialRyan: can you give here one item where the warning appears? Pamputt (talk) 19:27, 30 September 2020 (UTC)[reply]
@Pamputt: Minecraft (Q49740) is one, I'm adding many others though, and almost all of them have the warning. Also, the formatter URL can be https://twitter.com/i/topics/$1. Does editing the property page actually change the property? I could try. AntisocialRyan (talk) 19:29, 30 September 2020 (UTC)[reply]
@AntisocialRyan: actually, the problem with the regex comes from the length of the ID. I changed it so that, it matches number with 11 to 18 figures. Pamputt (talk) 19:33, 30 September 2020 (UTC)[reply]
@Pamputt: Oh I see, thank you! Do you know the answer to that question though? AntisocialRyan (talk) 19:35, 30 September 2020 (UTC)[reply]
@AntisocialRyan: Do you mean "Does editing the property page actually change the property?"? If so, the answer is yes. I've changed the regex and warnings already disappeared. Pamputt (talk) 19:37, 30 September 2020 (UTC)[reply]
@Pamputt: Alright thank you! I didn't know if this was a property creator exclusive thing. AntisocialRyan (talk) 19:59, 30 September 2020 (UTC)[reply]