Difference between revisions of "EntitySchema:E1"

From WikiFur Data
Jump to navigation Jump to search
(Updated Schema text)
(Updated Schema text: +EXTRA syntax, meaning that the specified predicate may be used in valid objects in a way outside that specified by the shape (i.e. it can be an instance of or subclass of something else too), which is currently required for Cradle's regex to identify it.)
 
(5 intermediate revisions by the same user not shown)
Schema / Line 1: Schema / Line 1:
PREFIX wfd: <https://furry.wiki.opencura.com/entity/>
+
PREFIX wfd: <http://furry.wiki.opencura.com/entity/>
PREFIX wfdt: <https://furry.wiki.opencura.com/prop/direct/>
+
PREFIX wfdt: <http://furry.wiki.opencura.com/prop/direct/>
PREFIX wfp: <https://furry.wiki.opencura.com/prop/>
+
PREFIX wfp: <http://furry.wiki.opencura.com/prop/>
PREFIX wfps: <https://furry.wiki.opencura.com/prop/statement/>
+
PREFIX wfps: <http://furry.wiki.opencura.com/prop/statement/>
PREFIX wfpq: <https://furry.wiki.opencura.com/prop/qualifier/>
+
PREFIX wfpq: <http://furry.wiki.opencura.com/prop/qualifier/>
  
 
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>  
 
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>  
 +
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
  
# potential query for confuzzled: select ?convention where { ?eventSeries wfdt:P2 wfd:Q2. ?convention wfd:P1 ?eventSeries }
+
/* 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
  
# validates on https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html
+
* query for all instances of ConFuzzled:
# query map : wd:Q4@START
+
PREFIX wfd: <http://furry.wiki.opencura.com/entity/>
# tested against content of https://furry.wiki.opencura.com/wiki/Special:EntityData/Q4.ttl and parts of https://furry.wiki.opencura.com/wiki/Special:EntityData/Q1.ttl
+
PREFIX wfdt: <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>
 
start = @<Convention>
  
 
+
<Convention> EXTRA wfdt:P1 {
<Convention> {
 
 
   # instance of
 
   # instance of
 
   wfdt:P1 @<ConventionSeries> ;
 
   wfdt:P1 @<ConventionSeries> ;
Schema / Line 25: Schema / Line 31:
 
   # attendance
 
   # attendance
 
   wfdt:P5 xsd:decimal ?;
 
   wfdt:P5 xsd:decimal ?;
 +
 +
  # official website
 +
  wfdt:P4 IRI ?;
 +
 +
  # coordinate location
 +
  wfdt:P3 geo:wktLiteral ?;
 
}
 
}
  
<ConventionSeries> {
+
<ConventionSeries> EXTRA wfdt:P2 {
 
   # subclass of furry convention
 
   # subclass of furry convention
 
   wfdt:P2 [wfd:Q2] ;
 
   wfdt:P2 [wfd:Q2] ;
 
}
 
}

Latest revision as of 23:27, 12 April 2021

language codelabeldescriptionaliasesedit
enConvention(usually annual) instance of a organized gathering of furriesfurcon | furry conedit
PREFIX wfd: <http://furry.wiki.opencura.com/entity/>
PREFIX wfdt: <http://furry.wiki.opencura.com/prop/direct/>
PREFIX wfp: <http://furry.wiki.opencura.com/prop/>
PREFIX wfps: <http://furry.wiki.opencura.com/prop/statement/>
PREFIX wfpq: <http://furry.wiki.opencura.com/prop/qualifier/>

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 wfd: <http://furry.wiki.opencura.com/entity/>
PREFIX wfdt: <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 wfdt:P1 {
  # instance of
  wfdt:P1 @<ConventionSeries> ;

  # start time
  wfdt:P6 xsd:dateTime +;

  # attendance
  wfdt:P5 xsd:decimal ?;

  # official website
  wfdt:P4 IRI ?;

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

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