neXtProt SPARQL endpoint

The neXtProt SPARQL endpoint is accessible at: via HTTP GET or POST (see below).
We recommend our new users to start looking at our examples queries together with our data model.

You can start with simple queries, such as the ones presented below and modify some CV terms: We also provide a more advanced interface (SNORQL based) accessible at that allows user to search all aspects of the data. For example:
  • NXQ_00124 - What are the 10 most frequent families with member count
  • NXQ_00126 - Peptides that are potential neo N-termini from undescribed isoforms
  • NXQ_00148 - Variants with normal "ubiquitin-protein transferase activity" and decreased or increased binding to UBE2D1 (example: BRCA1-p.Ile89Thr)
We are aware that those queries may be difficult to create, therefore don't hesitate to contact us if you need help and don't forget to save them in your profile (Saving queries).
Note that your saved queries can also be retrieved in the SNORQL environment if you are logged in.
Further links: You may want to have a look also at the presentation Practical Introduction to SPARQL and play with the The SPARQL playground.

SPARQL query with HTTP POST and CURL

The following example, shows how to query the SPARQL endpoint using your UNIX terminal and saving your query in a file. Create a file called query.sparql and paste the following content:
PREFIX cv: <>

select distinct ?entry where {
  ?entry :isoform ?iso.
  ?iso :keyword / :term cv:KW-0597.
  ?iso :cellularComponent /:term /:childOf cv:SL-0086.
Save and close the file, then execute the query as follows:
QUERY=$(<query.sparql) && curl -X POST -H "Accept:application/sparql-results+json" --data-urlencode "query=$QUERY" 

You will find the complete list of prefixes in (click on PREFIX....)