EntitySchema:E1: Difference between revisions

From WikiFur Data
Jump to navigation Jump to search
(Updated Schema text: Fixup after testing with https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html)
(Updated Schema text: fix prefix on period)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(10 intermediate revisions by the same user not shown)
Schema / Line 1: Schema / Line 1:
PREFIX wfd: <https://furry.wiki.opencura.com/entity/>
PREFIX wfd: <https://furry.wikibase.cloud/entity/>
PREFIX wfdt: <https://furry.wiki.opencura.com/prop/direct/>
PREFIX wfdt: <https://furry.wikibase.cloud/prop/direct/>
PREFIX wfp: <https://furry.wiki.opencura.com/prop/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>  
PREFIX wfps: <https://furry.wiki.opencura.com/prop/statement/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX wfpq: <https://furry.wiki.opencura.com/prop/qualifier/>
PREFIX edtf: <http://id.loc.gov/datatypes/edtf/>


PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
/* query for all instances of ConFuzzled:
PREFIX wfd: <https://furry.wikibase.cloud/entity/>
PREFIX wfdt: <https://furry.wikibase.cloud/prop/direct/>
SELECT ?eventInstance { ?eventSeries wfdt:P2 wfd:Q2. ?eventInstance wfdt:P1 ?eventSeries.}
 
* validates using ShEx2 Validator: https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html?data=Endpoint:%20https://furry.wikibase.cloud/query/sparql&hideData&manifest=[]&textMapIsSparqlQuery&schemaURL=//furry.wikibase.cloud%2Fwiki%2FSpecial%3AEntitySchemaText%2FE1


# potential query for confuzzled: select ?convention where { ?eventSeries wfdt:P2 wfd:Q2. ?convention wfd:P1 ?eventSeries }
Previously needed CORS Everywhere extension enabled with whitelist: /^https?...shex-simple.toolforge.org\//


# validates on https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html
* alt direct query map: wfd:Q4@START
# query map : wd:Q4@START
* selects: https://furry.wikibase.cloud/wiki/Special:EntityData/Q4.ttl
# 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
*/


start = @<Convention>
start = @<Convention>


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


   # start time
   # start time
   wfdt:P6 xsd:dateTime +;
   wfdt:P6 xsd:dateTime +;
  # period
  wfdt:P16 edtf:EDTF ?;


   # 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 18:32, 7 October 2022

language codelabeldescriptionaliasesedit
enConvention(usually annual) instance of a organized gathering of furriesfurcon | furry conedit
PREFIX wfd: <https://furry.wikibase.cloud/entity/>
PREFIX wfdt: <https://furry.wikibase.cloud/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX edtf: <http://id.loc.gov/datatypes/edtf/>

/* query for all instances of ConFuzzled:
PREFIX wfd: <https://furry.wikibase.cloud/entity/>
PREFIX wfdt: <https://furry.wikibase.cloud/prop/direct/>
SELECT ?eventInstance { ?eventSeries wfdt:P2 wfd:Q2. ?eventInstance wfdt:P1 ?eventSeries.}

* validates using ShEx2 Validator: https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html?data=Endpoint:%20https://furry.wikibase.cloud/query/sparql&hideData&manifest=[]&textMapIsSparqlQuery&schemaURL=//furry.wikibase.cloud%2Fwiki%2FSpecial%3AEntitySchemaText%2FE1

Previously needed CORS Everywhere extension enabled with whitelist: /^https?...shex-simple.toolforge.org\// 

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

start = @<Convention>

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

  # start time
  wfdt:P6 xsd:dateTime +;

  # period
  wfdt:P16 edtf:EDTF ?;

  # 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] ;
}