Convention (Cradle-compatible) (E2)

Revision as of 23:56, 12 April 2021 by GreenReaper (talk | contribs) (Created a new Schema: Convention (Cradle-compatible))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
language codelabeldescriptionaliasesedit
enConvention (Cradle-compatible)edit
PREFIX wd: <http://furry.wiki.opencura.com/entity/>
PREFIX wdt: <http://furry.wiki.opencura.com/prop/direct/>

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
PREFIX geo: <http://www.opengis.net/ont/geosparql#>

/* validates with CORS Everywhere extension enabled with whitelist: /^https?...shex-simple.toolforge.org\// 
   using ShEx2 Validator: https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html?data=Endpoint:%20https://furry.wiki.opencura.com/query/sparql&hideData&manifest=[]&textMapIsSparqlQuery&schemaURL=//furry.wiki.opencura.com%2Fwiki%2FSpecial%3AEntitySchemaText%2FE1

* query for all instances of ConFuzzled:
PREFIX wd: <http://furry.wiki.opencura.com/entity/>
PREFIX wdt: <http://furry.wiki.opencura.com/prop/direct/>
SELECT ?eventInstance { ?eventSeries wfdt:P2 wfd:Q2. ?eventInstance wfdt:P1 ?eventSeries.}

* alt direct query map: wfd:Q4@START
* selects: https://furry.wiki.opencura.com/wiki/Special:EntityData/Q4.ttl
*/

start = @<Convention>

<Convention> EXTRA wdt:P1 {
  # instance of
  wdt:P1 @<ConventionSeries> ;

  # start time
  wdt:P6 xsd:dateTime +;

  # attendance
  wdt:P5 xsd:decimal ?;

  # official website
  wdt:P4 IRI ?;

  # coordinate location
  wdt:P3 geo:wktLiteral ?;
}

<ConventionSeries> EXTRA wdt:P2 {
  # subclass of furry convention
  wdt:P2 [wd:Q2] ;
}