EntitySchema talk:E1: Difference between revisions

no edit summary
(Created page with "{{SchemaDescription |schema= PREFIX wd: <https://mcje-data.wikibase.cloud/entity/> PREFIX wdt: <https://mcje-data.wikibase.cloud/prop/direct/> start = @<item> <item> { wdt:P1 [wd:Q1639]; #is a registry entry wdt:P20 [wd:Q1298]; #part of item registry wdt:P24 @<version>; #added in wdt:P4 . +; # one or more resource location wdt:P45 @<rarity> ?; } <version> { wdt:P1 [wd:Q1336 wd:Q1445 wd:Q1492 wd:Q1488 wd:Q1489 wd:Q1491]; } <rarity> { wdt:P1 [wd:Q1676]; }...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
   wdt:P24 @<version>; #added in
   wdt:P24 @<version>; #added in
   wdt:P4 . +; # one or more resource location
   wdt:P4 . +; # one or more resource location
   wdt:P45 @<rarity> ?;
   wdt:P45 [wd:Q1677 wd:Q1678 wd:Q1679 wd:Q1680] ?;
  wdt:P46 @<item-tag> *;
}
}


Line 18: Line 19:
}
}


<rarity> {
<item-tag> {
   wdt:P1 [wd:Q1676];
   wdt:P1 [wd:Q1683];
}
}
|translation=start at <item>
|translation=start at <item>
Line 25: Line 26:
**1 {{P|P1}} which is one of {{Q|Q1639}}
**1 {{P|P1}} which is one of {{Q|Q1639}}
**1 {{P|P20}} which is one of {{Q|Q1298}}
**1 {{P|P20}} which is one of {{Q|Q1298}}
**1 or more {{P|P24}} which has shape <version>
**1 {{P|P24}} which has shape <version>
**1 or more {{P|P4}} with any value
**1 or more {{P|P4}} with any value
**0 or 1 {{P|P45}} which has shape <rarity>
**0 or 1 {{P|P45}} which is one of {{Q|Q1677}} {{Q|Q1678}} {{Q|Q1679}} {{Q|Q1680}}
**0 or more {{P|P46}} which has shape <item-tag>
*<version> with:
*<version> with:
**1 {{P|P1}} which is one of {{Q|Q1336}} {{Q|Q1445}} {{Q|Q1492}} {{Q|Q1488}} {{Q|Q1489}} {{Q|Q1491}}
**1 {{P|P1}} which is one of {{Q|Q1336}} {{Q|Q1445}} {{Q|Q1492}} {{Q|Q1488}} {{Q|Q1489}} {{Q|Q1491}}
*<rarity> with:
*<item-tag> with:
**1 {{P|P1}} which is one of {{Q|Q1676}}
**1 {{P|P1}} which is one of {{Q|Q1683}}
}}
}}