EntitySchema:E1: Difference between revisions
Jump to navigation
Jump to search
(Updated Schema text) |
(Updated Schema text) |
||
(3 intermediate revisions by the same user not shown) | |||
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? | |||
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 | |||
} | |||
Schema / Line 19: | Schema / Line 73: | ||
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 . | ||
} | } | ||
Latest revision as of 11: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/>
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
*/