EntitySchema talk:E1: Difference between revisions

From Minecraft JE Data
Jump to navigation Jump to search
No edit summary
No edit summary
 
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 27: Line 28:
**1 {{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}}
}}
}}

Latest revision as of 23:08, 19 July 2022

Documentation

Schema Text Translation
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 [wd:Q1677 wd:Q1678 wd:Q1679 wd:Q1680] ?;
  wdt:P46 @<item-tag> *;
}

<version> {
  wdt:P1 [wd:Q1336 wd:Q1445 wd:Q1492 wd:Q1488 wd:Q1489 wd:Q1491];
}

<item-tag> {
  wdt:P1 [wd:Q1683];
} 
start at <item>
Please note that this documentation is manually updated. The information may not be correct if the schema has been changed since this talk page was last updated