Property talk:P4801

From Wikidata
Jump to navigation Jump to search

Documentation

LoC and MARC vocabularies ID
identifier for an item in one of the controlled vocabularies maintained by the Library of Congress
RepresentsMARC standards (Q722609)
Associated itemLibrary of Congress (Q131454)
Applicable "stated in" valueLibrary of Congress Linked Data Service (Q17109002)
Data typeExternal identifier
Allowed values[a-z][a-zA-Z0-9-]+(/[a-zA-Z0-9][a-zA-Z0-9-]*){1,2}.{3,100}
Exampleglobe (Q133792)resourceTypes/glo (RDF)
Geographic Names Server (Q1194038)subjectSchemes/geonet (RDF)
costume designer (Q1323191)relators/cst (RDF)
Newfoundland and Labrador (Q2003)geographicAreas/n-cn-nf (RDF)
encyclopedia (Q5292)marcgt/enc (RDF)
Finnish (Q1412)languages/fin (RDF)
JPEG File Interchange Format (JFIF) (Q26329975)mencformat/jpeg (RDF)
NTSC (Q185796)mbroadstd/ntsc (RDF)
black-and-white (Q838368)mcolor/blw (RDF)
surround sound (Q569874)mplayback/mul (RDF)
table-book (Q7673115)mmusicformat/tablebk (RDF)
Formatter URLhttps://id.loc.gov/vocabulary/$1.html
https://id.loc.gov/vocabulary/$1.nt
https://id.loc.gov/vocabulary/$1.rdf
https://id.loc.gov/vocabulary/$1.json
See alsoLibrary of Congress authority ID (P244), Code List for Cultural Heritage Organizations (P3234), Thesaurus for Graphic Materials ID (P5160), BARTOC ID (P2689)
Lists
Proposal discussionProposal discussion
Current uses
Total2,753
Main statement2,73699.4% of uses
Qualifier110.4% of uses
Reference60.2% 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/P4801#Unique value, SPARQL (every item), SPARQL (by value)
Format “[a-z][a-zA-Z0-9-]+(/[a-zA-Z0-9][a-zA-Z0-9-]*){1,2}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P4801#Format, hourly updated report, SPARQL
Format “.{3,100}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P4801#Format, hourly updated report, 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/P4801#Entity types
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/P4801#Scope, SPARQL
Check prefix 'languages'
(Help)
Violations query: SELECT ?item ?value ?marc { ?item wdt:P220 ?value. ?item wdt:P4801 ?marc. BIND (SUBSTR(?marc, 1, 9) AS ?prefix). FILTER (?prefix NOT IN ("languages")) }
List of this constraint violations: Database reports/Complex constraint violations/P4801#Check prefix 'languages'
Check prefixes
(Help)
Violations query: SELECT ?item ?marc ?prefix { ?item wdt:P4801 ?marc. BIND (STRBEFORE(?marc, "/") AS ?prefix). FILTER (?prefix NOT IN ("countries", "languages", "relators", "geographicAreas", "subjectSchemes", "marcgt", "ethnographicTerms", "resourceTypes", "identifiers", "organizations")) }
List of this constraint violations: Database reports/Complex constraint violations/P4801#Check prefixes
Check prefix 'ethnographicTerms'
(Help)
Violations query: SELECT ?item ?marc ?prefix { ?item wdt:P4801 ?marc. BIND (STRBEFORE(?marc, "/") AS ?prefix). FILTER (?prefix IN ("ethnographicTerms")) FILTER (REGEX(?marc, "^(ethnographicTerms\\/afset\\d{6})$") = false) }
List of this constraint violations: Database reports/Complex constraint violations/P4801#Check prefix 'ethnographicTerms'

Other LoC authority and vocabulary properties[edit]

Query: https://w.wiki/bRT

Specific specialised properties exist for the following vocabularies

Jheald (talk) 14:07, 6 September 2020 (UTC)[reply]

Yes, for example the first one P3234 is a bit of a duplication Back ache (talk) 10:29, 18 August 2022 (UTC)[reply]

Single value constraint is problematic on this property[edit]

There is no separate property for the LC-maintained MARC List for Countries available at https://id.loc.gov/vocabulary/countries.html. There are 5 separate properties for different forms of ISO 3166 codes, but this vocabulary states about itself: "The MARC country codes are not the same as the ISO 3166 country codes, although the lists are entity-compatible so that a simple translation could relate codes for the same entity. The records for the codes contain references to the equivalent ISO 3166 codes."

The vocabularies accessible at https://id.loc.gov include MARC List for Countries and MARC List for Geographic Areas (https://id.loc.gov/vocabulary/geographicAreas.html) and most countries and provinces/states in the US, Canada, and Australia are represented by different codes in both. Example: https://www.wikidata.org/wiki/Q824

https://id.loc.gov/vocabulary/countries/oru.html

https://id.loc.gov/vocabulary/geographicAreas/n-us-or.html

There are probably other concepts that are represented by more than one vocabulary at an https://id.loc.gov/vocabulary URI, but the Countries/Geographic Areas example is the most obvious example of why lumping "LoC and MARC vocabularies ID" into one property is a shortcut we can't make if we want to enforce a single value constraint on it.

As some library bibliographic data records country codes and other library bibliographic data records geographic area codes, it is valuable for Wikidata in its role as an ID-linking hub to capture both.

--Infomuse (talk) 16:22, 14 July 2021 (UTC)[reply]

Agree. There were other exceptions, eg "notated music", "spoken text". So I removed the constraint. Vladimir Alexiev (talk) 22:08, 15 August 2022 (UTC)[reply]

Work ID?[edit]

Is this property also applicable to a work id from id.loc.gov? E.g., North American Wild Flowers (works/9671638). Thank you. jshieh (talk) 14:19, 23 September 2021 (UTC)[reply]

Problematic for identifier properties[edit]

The LoC "identifiers" namespace corresponds to Wikidata's "external-id" properties. Eg "gettytgn", "gettyulan", "viaf".

But this prop applies to items not properties. So I've been using "Equivalent property" instead. Vladimir Alexiev (talk) 22:12, 15 August 2022 (UTC)[reply]

‎Examples:

Vladimir Alexiev (talk) 22:18, 15 August 2022 (UTC)[reply]