v2.5.0+
Status: | effective |
Progress: | 100% |
Version: | 2.5.0+ |
Help:Datatype "External identifier"
From semantic-mediawiki.org
(Redirected from Help:Datatype "External identifier")
External identifier | |
---|---|
Holds a value that associates it with with a external URI for formatting | |
Further information | |
Provided by: | Semantic MediaWiki |
Since version: | 2.5.0 |
Until version: | still in use |
Datatype ID: | _eid
|
In this wiki: | External identifier |
Table of Contents | |
External identifier 1 is a datatype that associates a text value to an external URL. It was introduced with Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..
Usage[edit]
For example, a value annotation like [[NDL ID::00564222]]
is going to be represented as:
https://id.ndl.go.jp/auth/ndlna/00564222
in case the required[[External formatter uri::https://id.ndl.go.jp/auth/ndlna/$1]]
is denoted on the relevant property page that specifies the NDL ID property.
Features and limitations[edit]
- This datatype is a text type that requires special property "External formatter URI"Declares an external URL with placeholders
$1
,$2
to be denoted on the property page that uses this this type - The annotated URI in the
External formatter URI
property is expected to define a place holder$1
to mark the position of the value - This datatype can easily be combined with special property "Has uniqueness constraint"Allows to restrict value annotation to be unique or special property "Allows pattern"Pattern to match a permissible value to build restricted constraints as to what value inputs are expected or allowed
- This datatype also supports the
#nowiki
display formatter starting with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..2 - This datatype will always result in an skos:exactMatch[1] in the RDF output. If you want to use closeMatch, relatedMatch, broadMatch or narrowMatch, use datatype Annotation URI
Examples[edit]
- https://sandbox.semantic-mediawiki.org/wiki/Property:NDL_ID
- https://sandbox.semantic-mediawiki.org/wiki/Property:EC_number
- https://sandbox.semantic-mediawiki.org/wiki/Triacylglycerol_lipase
- https://sandbox.semantic-mediawiki.org/wiki/Attribut:Has_GND
- Property:Has_Wikidata_item_ID
Query Example[edit]
{{#ask: [[Category:City]][[Has_Wikidata_item_ID::+]] |format=table |?Has_Wikidata_item_ID=wikidata |limit=5 }}
wikidata | |
---|---|
Amsterdam | Q727 |
Berlin | Q64 |
New York City | Q60 |
- API example
References
- ^ Semantic MediaWiki: GitHub issue gh:smw:1708
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2815