Labels/Descriptions (E4)

From Wikidata
Jump to navigation Jump to search
language codelabeldescriptionaliasesedit
enLabels/DescriptionsSchema of labels and descriptionsedit
arتسميات أو أوصافمخطط تسميات أو أوصافتسميات/أوصافedit
deLabels/BeschreibungenSchema für Label und Beschreibungenedit
esetiquetas/descripcionesesquema para las etiquetas y descripciones de un elementoedit
frLibellés/Descriptionsedit
itEtichetta/Descrizioneschema per etichette e descrizioni di un elementoedit
jaラベル/説明ラベル及び説明を記述するためのスキーマedit
msLabel/Keteranganskema penerangan label dan keteranganedit
pletykiety/opisyschemat dla etykiet i opisówedit
roEtichete/Descrieriedit
ruМетки/ОписанияСхема меток и описанийedit
zh-tw標籤/描述標籤與描述的架構edit
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

# Every wikidata item has zero or more label, description and alias combinations.

start = @<wikidata-header>

<wikidata-header> {
 (   
   (
       # A wikidata item has a label, description, set of zero or more aliases
       rdfs:label rdf:langLabel ;
       skos:prefLabel rdf:langLabel ;
       schema:name rdf:langLabel ; 
       schema:description rdf:langLabel ; 
       skos:altLabel rdf:langLabel* ; 
    )
    | # or
    # A wikidata item has a label, but no description and a set of zero or more aliases
    (
       rdfs:label rdf:langLabel ;
       skos:prefLabel rdf:langLabel ;
       schema:name rdf:langLabel ; 
       schema:description rdf:langLabel ? ; 
       skos:altLabel rdf:langLabel* ; 
    )
    | # or
    # A wikidata item has no label, but a description and a set of zero or more aliases
    (
       (
          rdfs:label rdf:langLabel ;
          skos:prefLabel rdf:langLabel ;
          schema:name rdf:langLabel ;
       )? ;
       schema:description rdf:langLabel ; 
       skos:altLabel rdf:langLabel* ; 
    )  ; 
  )*; 
}  # A wikidata item can have zero or more sets of labels, descriptions and aliases