EntitySchema:E1: Difference between revisions

From Minecraft JE Data
Jump to navigation Jump to search
(Updated Schema text)
(Updated Schema text)
 
(2 intermediate revisions by the same user not shown)
Schema / Line 1: Schema / Line 1:
PREFIX wd: <https://mcje-data.wikibase.cloud/entity/>
PREFIX wd: <https://mcje-data.wikibase.cloud/entity/>
PREFIX wdt: <https://mcje-data.wikibase.cloud/prop/direct/>
PREFIX wdt: <https://mcje-data.wikibase.cloud/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>


start = @<item>
start = @<item>
Schema / Line 8: Schema / Line 10:
   wdt:P20 [wd:Q1298]; #part of item registry
   wdt:P20 [wd:Q1298]; #part of item registry
   wdt:P24 @<version>; #added in
   wdt:P24 @<version>; #added in
   wdt:P4 . +; # one or more resource location
   wdt:P4 xsd:string +; # one or more resource location
  wdt:P45 [wd:Q1677 wd:Q1678 wd:Q1679 wd:Q1680] ?;
  wdt:P46 @<item-tag> *;
}
}


<version> {
<version> {
   wdt:P1 [wd:Q1336 wd:Q1445 wd:Q1492 wd:Q1488 wd:Q1489 wd:Q1491]; # instance of
   wdt:P1 [wd:Q1336 wd:Q1445 wd:Q1492 wd:Q1488 wd:Q1489 wd:Q1491];
}
 
<item-tag> {
  wdt:P1 [wd:Q1683];
}
}

Latest revision as of 14:09, 20 July 2022

language codelabeldescriptionaliasesedit
enitem registry entryA vanilla registered itemedit
PREFIX wd: <https://mcje-data.wikibase.cloud/entity/>
PREFIX wdt: <https://mcje-data.wikibase.cloud/prop/direct/>

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 

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 xsd:string +; # 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];
}