taxon (E1)

From Protist-Prokaryote Symbiosis Database
Jump to navigation Jump to search
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?
  pps:P19 {
    ppss:P19 . ;
    ppsq:P20 @<#P20_bodypart> * ; # localization
    ppsq:P22 @<#analytical_technique> * ;   # method to identify object
    ppsq:P42 @<#analytical_technique> * ;   # method to identify subject
  } + ; 

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


<#P20_bodypart> {
  ppt:P18 [pp:Q5] + ;
}

<#analytical_technique> {
  ppt:P18 [pp:Q6] + ;
}

<#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

*/