EntitySchema:E1: Difference between revisions
Jump to navigation
Jump to search
(Updated Schema text) |
(Updated Schema text) |
||
Schema / Line 12: | Schema / Line 12: | ||
pps:P19 { | pps:P19 { | ||
ppss:P19 @<#taxon> ; | ppss:P19 @<#taxon> ; | ||
} * ; | } * ; | ||
} | } |
Revision as of 07:50, 4 April 2024
language code | label | description | aliases | edit |
---|---|---|---|---|
en | taxon | taxon whose members interact with other organisms | edit |
PREFIX pp: <https://ppsdb.wikibase.cloud/entity/>
PREFIX ppt: <https://ppsdb.wikibase.cloud/prop/direct/>
PREFIX pps: <https://ppsdb.wikibase.cloud/prop/>
PREFIX ppss: <https://ppsdb.wikibase.cloud/prop/statement/>
PREFIX ppsq: <https://ppsdb.wikibase.cloud/prop/qualifier/>
PREFIX ppsr: <https://ppsdb.wikibase.cloud/prop/reference/>
<taxon> {
# instance of
ppt:P18 [pp:Q2] + ;
# interacts with
pps:P19 {
ppss:P19 @<#taxon> ;
} * ;
}
<localization> {
# instance of
ppt:P18 [pp:Q5] + ;
}
/*******************
PREFIX pp: <https://ppsdb.wikibase.cloud/entity/>
PREFIX ppt: <https://ppsdb.wikibase.cloud/prop/direct/>
PREFIX pps: <https://ppsdb.wikibase.cloud/prop/>
PREFIX ppss: <https://ppsdb.wikibase.cloud/prop/statement/>
PREFIX ppsq: <https://ppsdb.wikibase.cloud/prop/qualifier/>
PREFIX ppsr: <https://ppsdb.wikibase.cloud/prop/reference/>
SELECT ?taxon
WHERE
{
?taxon ppt:P18 pp:Q2.
}
# Validating the EntitySchema with ShEX:
https://shex-simple.toolforge.org/wikidata/packages/shex-webapp/doc/shex-simple.html?data=Endpoint:%20https://ppsdb.wikibase.cloud/query/sparql&hideData&manifest=[]&textMapIsSparqlQuery&schemaURL=//ppsdb.wikibase.cloud%2Fwiki%2FSpecial%3AEntitySchemaText%2FE1
*/