EntitySchema:E1: Difference between revisions

From Coins Wikibase
Jump to navigation Jump to search
(Created a new Schema: coin variant)
 
(Updated Schema text: added optional numistia id)
 
(One intermediate revision by the same user not shown)
Schema / Line 1: Schema / Line 1:
PREFIX p: <https://coins.wikibase.cloud/prop/>
PREFIX p: <https://coins.wikibase.cloud/prop/>
PREFIX ps: <https://coins.wikibase.cloud/prop/statement/>
PREFIX ps: <https://coins.wikibase.cloud/prop/statement/>
PREFIX wd: <https://coins.wikibase.cloud/entity/>
PREFIX pq: <https://coins.wikibase.cloud/prop/qualifier/>
PREFIX wdt: <https://coins.wikibase.cloud/prop/direct/>
PREFIX wb: <https://coins.wikibase.cloud/entity/>
PREFIX wbt: <https://coins.wikibase.cloud/prop/direct/>


start = @<coin-variant>
start = @<coin-variant>


<coin-variant> {
<coin-variant> {
   wdt:P5 [wd:Q78]; #instance of coin variant
   wbt:P5 [wb:Q78]; #instance of coin variant
  wdt:P6 [wd:Q1]*; #subclass of coin
   p:P22 {
   p:P22 {ps:P22 <coin-design>; ps:P20 [wd:Q59];}; #uses design <coin-design> (obverse)
    ps:P22 @<obverse-design>; #uses design <obverse-design>
   p:P22 {ps:P22 <coin-design>; ps:P20 [wd:Q60];}; #uses design <coin-design> (reverse)
    pq:P20 [wb:Q59]; #applies to obverse
  };
   p:P22 {
    ps:P22 @<reverse-design>; #uses design <reverse-design>
    pq:P20 [wb:Q60]; #applies to reverse
  };
  wbt:P27 @<mark>*; #has mark <mark>
  wbt:P25 /[0-9]+/?; #Numistia ID (optional)
}
}


<coin-design> {
<obverse-design> {
   wdt:P5 [wd:Q26 wd:Q61 wd:Q62];
  wbt:P5 [wb:Q61]; #instance of obverse design
  wbt:P5 [wb:Q9]?; #instance of commemorative coin design (optional)
}
 
<reverse-design> {
   wbt:P5 [wb:Q62]; #instance of reverse design
  wbt:P5 [wb:Q9]?; #instance of commemorative coin design (optional)
}
 
<mark> {
  wbt:P5 [wb:Q72 wb:68]; # instance of privy mark or mint mark
}
}

Latest revision as of 00:11, 17 March 2024

language codelabeldescriptionaliasesedit
encoin variantform of coin with specific markings, design, issued year, ect.edit
PREFIX p: <https://coins.wikibase.cloud/prop/>
PREFIX ps: <https://coins.wikibase.cloud/prop/statement/>
PREFIX pq: <https://coins.wikibase.cloud/prop/qualifier/>
PREFIX wb: <https://coins.wikibase.cloud/entity/>
PREFIX wbt: <https://coins.wikibase.cloud/prop/direct/>

start = @<coin-variant>

<coin-variant> {
  wbt:P5 [wb:Q78]; #instance of coin variant
  p:P22 {
    ps:P22 @<obverse-design>; #uses design <obverse-design>
    pq:P20 [wb:Q59]; #applies to obverse
  };
  p:P22 {
    ps:P22 @<reverse-design>; #uses design <reverse-design>
    pq:P20 [wb:Q60]; #applies to reverse
  };
  wbt:P27 @<mark>*; #has mark <mark>
  wbt:P25 /[0-9]+/?; #Numistia ID (optional)
}

<obverse-design> {
  wbt:P5 [wb:Q61]; #instance of obverse design
  wbt:P5 [wb:Q9]?; #instance of commemorative coin design (optional)
}

<reverse-design> {
  wbt:P5 [wb:Q62]; #instance of reverse design
  wbt:P5 [wb:Q9]?; #instance of commemorative coin design (optional)
}

<mark> {
  wbt:P5 [wb:Q72 wb:68]; # instance of privy mark or mint mark
}