Property talk:P679

From Wikidata
Jump to navigation Jump to search

Documentation

ZVG number
identifier of GESTIS database of the Institute for Occupational Safety and Health
DescriptionID in the GESTIS database of the Institute for Occupational Safety and Health; see Wikidata:Chemistry task force/Properties
Applicable "stated in" valueGESTIS database (Q15811170)
Data typeExternal identifier
Allowed values[1-9]\d{3,5}
Examplebenzene (Q2270)10060
water (Q283)1140
Sourcehttps://gestis-en.itrust.de
https://gestis.itrust.de
https://gestis.dguv.de/
Formatter URLhttps://wikidata-externalid-url.toolforge.org/?p=679&url_prefix=https%3A%2F%2Fgestis.dguv.de%2Fdata%3Flang%3Den%26name%3D&id=$1
https://wikidata-externalid-url.toolforge.org/?p=679&url_prefix=https%3A%2F%2Fgestis.dguv.de%2Fdata%3Flang%3Dde%26name%3D&id=$1
Tracking: usageCategory:Pages using Wikidata property P679 (Q28753659)
Lists
Proposal discussionProposal discussion
Current uses
Total8,186
Main statement7,80895.4% of uses
Qualifier2<0.1% of uses
Reference3764.6% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “[1-9]\d{3,5}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P679#Format, hourly updated report, SPARQL
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). Known exceptions: DL-glutamic acid (Q181136), L-glutamic acid (Q26995161), nickel ammonium sulfate (Q15726054), nickel ammonium sulfate hexahydrate (Q18212121)
List of violations of this constraint: Database reports/Constraint violations/P679#Unique value, SPARQL (every item), SPARQL (by value)
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/P679#Single value, SPARQL
Allowed entity types are Wikibase item (Q29934200), Wikibase property (Q29934218): 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/P679#Entity types
Scope is as main value (Q54828448), as reference (Q54828450): 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/P679#Scope, SPARQL
This property is being used by:

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

Pattern ^0+([1-9]\d{3,5})$ will be automatically replaced to \1.
Testing: TODO list

URL[edit]

@Almondega, Pasleim: The new formatter URL does not work, see e.g. benzene (Q2270). Ideally, it should be taken from

http://gestis-en.itrust.de/nxt/gateway.dll?f=id$t=default.htm$vid=gestiseng:sdbeng$id={{padleft:{{{ZVG}}}|6|0}}

that is used in en.wikipedia. Like this, the leading zeros may be removed. --Leyo 15:33, 19 August 2015 (UTC)[reply]

For me it's working. benzene (Q2270) with 010060 directs me to http://gestis-en.itrust.de/nxt/gateway.dll/gestis_en/010060.xml --Pasleim (talk) 15:39, 19 August 2015 (UTC)[reply]
For me it's not working too. The format URL would be:
http://gestis-en.itrust.de/nxt/gateway.dll/gestis_en/$1.xml
where $1 is the ZVG, but I can't edit properties. Almondega (talk) 16:26, 19 August 2015 (UTC)[reply]
It's ok now Almondega (talk) 16:32, 19 August 2015 (UTC)[reply]
I keep getting The page cannot be displayed because an internal server error has occurred.
Would it be possible to remove the leading zeros in the items and to add them in the link (if needed) as it is done in en.wikipedia? The ZVG number of benzene is 10060, not 010060. --Leyo 23:35, 20 August 2015 (UTC)[reply]
This URL seems indeed to be a bit unstable. I changed it now to the version of enwiki. Before removing the leading zeros, MediaWiki:Gadget-AuthorityControl.js needs to be adjusted, but I don't know how. --Pasleim (talk) 23:45, 20 August 2015 (UTC)[reply]
@Pasleim: What's the status now? --Leyo 13:03, 12 October 2016 (UTC)[reply]
The links are working. If we want to remove the leading zeros, we could use https://tools.wmflabs.org/wikidata-externalid-url/ (@ArthurPSmith:) to add the zeros again in the links. --Pasleim (talk) 13:57, 12 October 2016 (UTC)[reply]
@Pasleim, ArthurPSmith: The leading zeros need to get stripped in order to obtain the correct ZVG number. Could you implement your suggestion? --Leyo 23:14, 18 November 2016 (UTC)[reply]
@Leyo: I've added support to the wikidata-externalid-url but the formatter URL for this property would need to be updated - the URL that should work is http://tools.wmflabs.org/wikidata-externalid-url/?p=679&url_prefix=http://gestis-en.itrust.de/nxt/gateway.dll?f=id$t=default.htm$vid=gestiseng:sdbeng$id=&id=$1 - that takes 10060 to the right place for example. Please confirm it works for you and we can make the switch. ArthurPSmith (talk) 20:22, 22 November 2016 (UTC)[reply]
Thank you. It seems to work. The leading zeros now need to be removed from all items. --Leyo 22:07, 22 November 2016 (UTC)[reply]