taxon (E1)

Revision as of 08:36, 4 April 2024 by Kbseah-wikibase (talk | contribs) (Updated Schema text)
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/>

start = @<#taxon>
<#taxon> EXTRA ppt:P19 {
  # instance of
  ppt:P18 [pp:Q2] + ; 

  # interacts with
  # TODO: how to link recursively to other taxon objects?
  # TODO: How to add constraints for qualifiers?
  ppt:P19 . * ; 

  # parent taxon
  ppt:P29 @<#P29_parenttaxon> ? ;

  # NCBI taxon ID
  ppt:P11 . ? ;

  # representative SSU rRNA sequence record
  ppt:P34 . ? ;

  # environmental material of origin 
  ppt:P36 @<#P36_envmat> * ;

  # broad environmental context
  ppt:P38 @<#P38_envbroad> * ;

  # local environmental context
  ppt:P40 @<#P40_envlocal> * ;
}


<#P29_parenttaxon> {
  ppt:P18 [pp:Q1488] + ;
}

<#P36_envmat> {
  ppt:P37 . ; # EnvO identifier
}

<#P38_envbroad> {
  ppt:P37 . ; # EnvO identifier
}

<#P40_envlocal> {
  ppt:P37 . ; # EnvO identifier
}



/*******************
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 ?host
WHERE 
{
  ?host ppt:P19 ?symbiont .
}

# 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

*/