A set of SPARQL examples that are used in different SIB resources
Check there are no entries with a ptm info annotation referring to S-nitrosylation that do not have the keyword S-nitrosylation (KW-0702)
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct ?entry where { # Include ?text if result is not 0 to identify problem site
?entry :isoform ?iso.
?iso :ptmInfo /rdfs:comment ?text.
filter(contains(?text,"S-nitrosylat")). # Finds S-nitrosylated and S-nitrosylatation
filter not exists {?iso :ptmInfo /:negativeEvidence ?negev} # No negative annotations from neXtProt
filter not exists {?entry :isoform /:keyword /:term cv:KW-0702.}
}