EntitySchema:E3: Difference between revisions
Jump to navigation
Jump to search
(Updated Schema text) |
(Updated Schema text) |
||
Schema / Line 11: | Schema / Line 11: | ||
<version> EXTRA wdt:P1 { | <version> EXTRA wdt:P1 { | ||
wdt:P1 | wdt:P1 @<versionType>; | ||
wdt:P10 xsd:dateTime ?; | wdt:P10 xsd:dateTime ?; | ||
wdt:P18 xsd:decimal ?; | wdt:P18 xsd:decimal ?; | ||
wdt:P17 xsd:decimal ?; | wdt:P17 xsd:decimal ?; | ||
} | |||
<versionType> EXTRA wfdt:P2 { | |||
# subclass of version | |||
wfdt:P2 [wfd:Q1484] ; | |||
} | } |
Revision as of 18:32, 6 July 2022
language code | label | description | aliases | edit |
---|---|---|---|---|
en | version | structure for a version | edit |
PREFIX wd: <http://mcje-data.wikibase.cloud/entity/>
PREFIX wdt: <http://mcje-data.wikibase.cloud/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
/*
https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html?data=Endpoint:%20https://mcje-data.wikibase.cloud/query/sparql&hideData&manifest=[]&textMapIsSparqlQuery&schemaURL=//mcje-data.wikibase.cloud%2Fwiki%2FSpecial%3AEntitySchemaText%2FE3
*/
start = @<version>
<version> EXTRA wdt:P1 {
wdt:P1 @<versionType>;
wdt:P10 xsd:dateTime ?;
wdt:P18 xsd:decimal ?;
wdt:P17 xsd:decimal ?;
}
<versionType> EXTRA wfdt:P2 {
# subclass of version
wfdt:P2 [wfd:Q1484] ;
}