EntitySchema:E1: Difference between revisions

Updated Schema text: add extra
(Updated Schema English label: schema for food composition table)
(Updated Schema text: add extra)
 
(6 intermediate revisions by the same user not shown)
Schema / Line 1: Schema / Line 1:
<food_composition_table> {
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wbt: <http://wikifcd.wiki.opencura.com/prop/direct/>
PREFIX wb: <http://wikifcd.wiki.opencura.com/entity/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>


wdt:P1 [wd:Q12] ;
# SELECT ?item WHERE {?item wbt:P1 wb:Q12 .} LIMIT 10
         wdt:P22 IRI . ;
 
start = @<#food_composition_table>
<#food_composition_table> EXTRA p:P1{
 
wbt:P1 [wb:Q12] ;
         wbt:P22 IRI ? ;
        wbt:P58 xsd:string ? ;
        wbt:P68 xsd:string * ;
        wbt:P65 @<#P65_country> *;
        wbt:P56 xsd:string *;
        wbt:P69 xsd:string *;
        wbt:P70 xsd:string *;
}
 
<#P65_country> {
      wbt:P31 [wb:Q127865]
}
}