EntitySchema:E1: Difference between revisions
Jump to navigation
Jump to search
GreenReaper (talk | contribs) (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.) |
GreenReaper (talk | contribs) (Updated Schema text: Update URL) Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
Schema / Line 1: | Schema / Line 1: | ||
PREFIX wfd: <http://furry. | PREFIX wfd: <http://furry.wikibase.cloud/entity/> | ||
PREFIX wfdt: <http://furry. | PREFIX wfdt: <http://furry.wikibase.cloud/prop/direct/> | ||
PREFIX wfp: <http://furry. | PREFIX wfp: <http://furry.wikibase.cloud/prop/> | ||
PREFIX wfps: <http://furry. | PREFIX wfps: <http://furry.wikibase.cloud/prop/statement/> | ||
PREFIX wfpq: <http://furry. | PREFIX wfpq: <http://furry.wikibase.cloud/prop/qualifier/> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
Schema / Line 9: | Schema / Line 9: | ||
/* validates with CORS Everywhere extension enabled with whitelist: /^https?...shex-simple.toolforge.org\// | /* 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. | 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 | ||
* query for all instances of ConFuzzled: | * query for all instances of ConFuzzled: | ||
PREFIX wfd: <http://furry. | PREFIX wfd: <http://furry.wikibase.cloud/entity/> | ||
PREFIX wfdt: <http://furry. | PREFIX wfdt: <http://furry.wikibase.cloud/prop/direct/> | ||
SELECT ?eventInstance { ?eventSeries wfdt:P2 wfd:Q2. ?eventInstance wfdt:P1 ?eventSeries.} | SELECT ?eventInstance { ?eventSeries wfdt:P2 wfd:Q2. ?eventInstance wfdt:P1 ?eventSeries.} | ||
* alt direct query map: wfd:Q4@START | * alt direct query map: wfd:Q4@START | ||
* selects: https://furry. | * selects: https://furry.wikibase.cloud/wiki/Special:EntityData/Q4.ttl | ||
*/ | */ | ||
Revision as of 18:07, 28 April 2022
language code | label | description | aliases | edit |
---|---|---|---|---|
en | Convention | (usually annual) instance of a organized gathering of furries | furcon | furry con | edit |
PREFIX wfd: <http://furry.wikibase.cloud/entity/>
PREFIX wfdt: <http://furry.wikibase.cloud/prop/direct/>
PREFIX wfp: <http://furry.wikibase.cloud/prop/>
PREFIX wfps: <http://furry.wikibase.cloud/prop/statement/>
PREFIX wfpq: <http://furry.wikibase.cloud/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.wikibase.cloud/query/sparql&hideData&manifest=[]&textMapIsSparqlQuery&schemaURL=//furry.wikibase.cloud%2Fwiki%2FSpecial%3AEntitySchemaText%2FE1
* query for all instances of ConFuzzled:
PREFIX wfd: <http://furry.wikibase.cloud/entity/>
PREFIX wfdt: <http://furry.wikibase.cloud/prop/direct/>
SELECT ?eventInstance { ?eventSeries wfdt:P2 wfd:Q2. ?eventInstance wfdt:P1 ?eventSeries.}
* 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 +;
# 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] ;
}