EntitySchema:E1: Difference between revisions
Jump to navigation
Jump to search
(Updated Schema text) |
(Updated Schema text: inspired by E1 from Qichwabase) |
||
Schema / Line 6: | Schema / Line 6: | ||
PREFIX ppsr: <https://ppsdb.wikibase.cloud/prop/reference/> | PREFIX ppsr: <https://ppsdb.wikibase.cloud/prop/reference/> | ||
<taxon> { | start = @<#taxon> | ||
ppt:P18 pp:Q2 | <#taxon> EXTRA ppt:P19 { | ||
# instance of | |||
ppt:P18 [pp:Q2] + ; | |||
# interacts with - TODO: how to link recursively to other taxon objects? | |||
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 | |||
} | |||
Schema / Line 19: | Schema / Line 60: | ||
PREFIX ppsr: <https://ppsdb.wikibase.cloud/prop/reference/> | PREFIX ppsr: <https://ppsdb.wikibase.cloud/prop/reference/> | ||
SELECT ? | SELECT ?host | ||
WHERE | WHERE | ||
{ | { | ||
? | ?host ppt:P19 ?symbiont . | ||
} | } | ||
Revision as of 08:34, 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/>
start = @<#taxon>
<#taxon> EXTRA ppt:P19 {
# instance of
ppt:P18 [pp:Q2] + ;
# interacts with - TODO: how to link recursively to other taxon objects?
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
*/