Property talk:P1482

From Wikidata
Jump to navigation Jump to search

Documentation

Stack Exchange tag
tag on the Stack Exchange websites
DescriptionLink to tag for the concept on a Stack Exchange (Q3495447) website like Stack Overflow (Q549037)
RepresentsStack Exchange Folksonomy (Q30337063), Stack Exchange (Q3495447)
Data typeURL
DomainVery general, since Stack Exchange sites cover a wide variety of domains, although each site is usually rather well scoped. (note: this should be moved to the property statements)
Allowed values
According to this template: URLs on any of Stack Exchange sites (full list) of the form "http://site/tags/tag"
According to statements in the property:
.+/tags/.+https?.+
When possible, data should only be stored as statements
ExamplePHP (Q59) → https://stackoverflow.com/tags/php
https://webmasters.stackexchange.com/tags/php
https://unix.stackexchange.com/tags/php
https://superuser.com/tags/php
algorithm (Q8366) → https://stackoverflow.com/tags/algorithm
https://cs.stackexchange.com/tags/algorithms
GNU Emacs (Q1252773) → https://stackoverflow.com/tags/emacs
Source
According to this template: external reference
According to statements in the property:
https://stackoverflow.com/tags/
When possible, data should only be stored as statements
Robot and gadget jobsBots could look for new tags, look for tag aliases, etc.
See alsoStack Exchange site URL (P6541), hashtag (P2572)
Lists
Proposal discussionProposal discussion
Current uses
Total5,774
Main statement5,76799.9% of uses
Qualifier70.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/P1482#Unique value, SPARQL (every item), SPARQL (by value)
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P1482#Scope, hourly updated report, SPARQL
Format “.+/tags/.+: 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/P1482#Format, SPARQL
Format “https?.+: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P1482#Format, hourly updated report, 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/P1482#Entity types
Qualifiers “number of records (P4876), start time (P580): this property should be used only with the listed qualifiers. (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/P1482#allowed qualifiers, SPARQL
Format: value must be formatted using this pattern (PCRE syntax).
https://((academia|android|anime|apple|arduino|astronomy|aviation|beer|bicycles|biology|bitcoin|blender|boardgames|bricks|buddhism|chemistry|chess|chinese|christianity|codegolf|codereview|cogsci|cooking|craftcms|crypto|cs|cstheory|datascience|dba|diy|drupal|dsp|earthscience|ebooks|electronics|ell|emacs|english|expatriates|expressionengine|fitness|freelancing|french|gamedev|gaming|gardening|genealogy|german|gis|graphicdesign|ham|hermeneutics|hinduism|history|homebrew|islam|italian|japanese|joomla|judaism|linguistics|magento|martialarts|math|matheducators|mathematica|mechanics|meta|moderators|money|movies|music|networkengineering|opendata|outdoors|parenting|patents|pets|philosophy|photo|physics|pm|poker|politics|productivity|programmers|puzzling|quant|raspberrypi|reverseengineering|robotics|rpg|russian|salesforce|scicomp|scifi|security|sharepoint|skeptics|softwarerecs|sound|space|spanish|sports|sqa|startups|stats|sustainability|tex|tor|travel|tridion|unix|ux|video|webapps|webmasters|windowsphone|wordpress|workplace|writers)\.stackexchange\.com|askubuntu\.com|mathoverflow\.net|pt\.stackoverflow\.com|serverfault\.com|stackapps\.com|stackoverflow\.com|superuser\.com)/(tags|questions/tagged)/.*
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/P1482#Format, SPARQL
Pattern ^http://(.+)$ will be automatically replaced to https://\1.
Testing: TODO list

Format[edit]

I'd propose to use only tag as a value and to generate full path by gadget Authority control. Infovarius (talk) 19:15, 22 September 2014 (UTC)[reply]

Anything that reduces duplication makes sense. I'm new getting data into WikiData, so perhaps you can help. A complicating feature is that there may be tags on multiple stack exchange sites for an item. For example: Java (Q251) should have at least http://serverfault.com/tags/java and http://stackoverflow.com/tags/java as values. I can provide a list of valid sites, but it will be constantly updating. Bskaggs (talk) 16:21, 23 September 2014 (UTC)[reply]
I wrote a ruby script to produce a validating regular expression for acceptable links based on the Stack Exchange RSS feed of new sites. I'm not sure if (or how) this filter should be put into the abuse filter. If you run the script today, you get this regex --Bskaggs (talk) 16:21, 24 September 2014 (UTC)[reply]
Hm, different beginnings make things harder. I've forgotten about them. Now I doubt that only tag is enough. --Infovarius (talk) 13:34, 27 September 2014 (UTC)[reply]

Doesn't get grouped as an identifier?[edit]

For example on One Piece (Q673), the Stack Exchange tag is listed with the statements instead of the identifiers at the bottom, such as Quora topic ID (P3417) or subreddit (P3984). Opencooper (talk) 07:29, 18 November 2018 (UTC)[reply]

@Opencooper: the reason is that it's a URL not an external-id. And it's a url because there are many StackExchange sites, not one --Vladimir Alexiev (talk) 10:27, 20 April 2019 (UTC)[reply]
Ahh okay, that makes sense. Thanks! Opencooper (talk) 12:30, 20 April 2019 (UTC)[reply]

Each Stack Exchange site manages its own tags[edit]

Compare the meaning of the tag "children" on these two Stack Exchange sites:

To fix this, I suggest either renaming this property to "Stack Overflow", or adding an indication of what Stack Exhchange site (for instance Travel) it comes from. Thanks! Syced (talk) 15:04, 12 May 2019 (UTC)[reply]

Ah, nevermind, I just noticed that the property includes the site URL, so it is all good, sorry for the noise :-) Syced (talk) 15:07, 12 May 2019 (UTC)[reply]