Specific event in figure skating (E150)

From Wikidata
Jump to navigation Jump to search
language codelabeldescriptionaliasesedit
enSpecific event in figure skatingSchema to check for specific figure skating eventsedit
frévènements spécifique en patinage artistiqueschema pour vérifier des évènements spécifiques en patinage artistiqueedit
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
 PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
 PREFIX dct: <http://purl.org/dc/terms/>
 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 PREFIX owl: <http://www.w3.org/2002/07/owl#>
 PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
 PREFIX schema: <http://schema.org/>
 PREFIX cc: <http://creativecommons.org/ns#>
 PREFIX geo: <http://www.opengis.net/ont/geosparql#>
 PREFIX prov: <http://www.w3.org/ns/prov#>
 PREFIX wikibase: <http://wikiba.se/ontology#>
 PREFIX wdata: <http://www.wikidata.org/wiki/Special:EntityData/>
 PREFIX bd: <http://www.bigdata.com/rdf#>
 
 PREFIX wd: <http://www.wikidata.org/entity/>
 PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
 
 PREFIX wds: <http://www.wikidata.org/entity/statement/>
 PREFIX p: <http://www.wikidata.org/prop/>
 PREFIX wdref: <http://www.wikidata.org/reference/>
 PREFIX wdv: <http://www.wikidata.org/value/>
 PREFIX ps: <http://www.wikidata.org/prop/statement/>
 PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
 PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
 PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
 PREFIX pqv: <http://www.wikidata.org/prop/qualifier/value/>
 PREFIX pqn: <http://www.wikidata.org/prop/qualifier/value-normalized/>
 PREFIX pr: <http://www.wikidata.org/prop/reference/>
 PREFIX prv: <http://www.wikidata.org/prop/reference/value/>
 PREFIX prn: <http://www.wikidata.org/prop/reference/value-normalized/>
 PREFIX wdno: <http://www.wikidata.org/prop/novalue/>

start=@<figureskatingSpecificEvents> # racine du schema

<figureskatingSpecificEvents> ({
       # l'accolade ouvre une liste des proprietes obligatoires
	wdt:P641 @<sport> ; # d'abord la propriete puis un pointeur (entre chevrons) vers la description de la valeur
	wdt:P31 @<competition> ;
        wdt:P3450 @<genericEvents> ;
        wdt:P585 . ; # le point signifie "n'importe quelle valeur"
        wdt:P859 .* ; # on peut avoir autant de sponsor qu'on veut
        wdt:P1110  .? # on a au plus un nombre de spectateur
} AND ({
      p:P585 { psv:P585 { wikibase:timePrecision [11] } } # la date a pour precision jour dans ce cas la c'est ok
  AND NOT { wdt:P580 . } 
  AND NOT { wdt:P582 . }
} OR ({
  wdt:P580 . ;
  wdt:P582 . ;
} AND NOT { p:P585 { psv:P585 { wikibase:timePrecision [11] } } } # la date ne doit pas etre en jour
)))

<sport> [ # les crochets ouvrent une liste de valeurs possibles
	wd:Q1682809 # patinage en couple
	wd:Q926191 #
	wd:Q4179462
	wd:Q4305887
	wd:Q1482312
	wd:Q38108
  ]

<competition> [
    wd:Q57305027 #
    wd:Q2990963 #
]

<genericEvents> EXTRA wdt:P279 { # pas de crochets, on a une liste de propriete comme pour <figureskatingSpecificEvents>
  wdt:P31 [ # on peut aussi mettre une liste d'elements sans la nommer
       wd:Q18608583 
       wd:Q15259995
  ];
  wdt:P279 [
     wd:Q57305027
     wd:Q2990963
  ]
 }