A set of SPARQL examples that are used in different SIB resources
Query for an Isoform Instance e.g isoform:NX_Q8WZ42-1
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT {
?INSTANCE :functionInfo ?object .
?object rdfs:comment ?comment.
?INSTANCE :swissprotDisplayed ?swissprotDisplayed.
} WHERE {
?INSTANCE :functionInfo ?object .
?object rdfs:comment ?comment.
optional {
?INSTANCE :swissprotDisplayed ?swissprotDisplayed.
}
FILTER(!isBlank(?object))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?INSTANCE"):::projected
v7("?_const_2e431cfd_uri"):::projected
v6("?_const_44b0da67_uri"):::projected
v5("?_const_822361ee_uri"):::projected
v3("?comment"):::projected
v1("?object"):::projected
v4("?swissprotDisplayed"):::projected
f0[["not isBlank(?object)"]]
f0 --> v1
v2 --":functionInfo"--> v1
v1 --"rdfs:comment"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -.":swissprotDisplayed".-> v4
end
bind1[/"':functionInfo'"/]
bind1 --as--o v5
bind2[/"'rdfs:comment'"/]
bind2 --as--o v6
bind3[/"':swissprotDisplayed'"/]
bind3 --as--o v7