A set of SPARQL examples that are used in different SIB resources
Proteins with at least one 3D structure of resolution less than 3 Angstroms
PREFIX : <http://nextprot.org/rdf/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?entry WHERE {
?entry :isoform ?iso.
?iso :pdbMapping ?map.
?map :resolution ?res_and_unit.
bind (xsd:float(substr(?res_and_unit,0,strlen(?res_and_unit)-2)) as ?res)
filter (?res <= 3.0)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v3("?iso")
v4("?map")
v6("?res")
v5("?res_and_unit")
f0[["?res <= '3.0^^xsd:decimal'"]]
f0 --> v6
v2 --":isoform"--> v3
v3 --":pdbMapping"--> v4
v4 --":resolution"--> v5
bind1[/"http://www.w3.org/2001/XMLSchema#float(substring(?res_and_unit,'0^^xsd:integer',string-length(?res_and_unit) + '-2^^xsd:integer'))"/]
v5 --o bind1
bind1 --as--o v6