EntitySchema:E1: Difference between revisions

From Protist-Prokaryote Symbiosis Database
Jump to navigation Jump to search
(Updated Schema text)
(Updated Schema text)
Schema / Line 20: Schema / Line 20:
   ppt:P18 [pp:Q5] + ;
   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
*/

Revision as of 07:46, 4 April 2024

language codelabeldescriptionaliasesedit
entaxontaxon whose members interact with other organismsedit
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> ; 
    ppsq:P20 @<#localization> * ;
  } * ;
}

<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

*/