Skip to content

Commit

Permalink
Active sparql query and minimal syntax highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
renatocjn committed Jul 22, 2024
1 parent 3aaed6e commit 8796603
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
13 changes: 12 additions & 1 deletion pages/sparql.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This SPARQL Endpoint is implemented using Sesame openRDF platform. SPARQL query
The source code for this can be found at <https://github.com/identifiers-org/sparql-identifiers>. Special thanks to [Jerven Bolleman](https://orcid.org/0000-0002-7449-1266) for the contributions to this service.

## SPARQL query examples
Run the examples marked with [1] directly on our endpoint via <https://yasgui.org/>.
Run the examples marked with [1] directly on our endpoint via some SPARQL client (example <https://yasgui.org/>).

Run the examples marked with [2] on the Uniprot SPARQL endpoint at <https://sparql.uniprot.org/sparql>. Beware that these may take a while to respond.

Expand All @@ -47,7 +47,18 @@ SELECT * WHERE {
}
```

#### List active rhea URLs using the `id:active` named graph [1].
{: .mt-2}

```sparql
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT *
WHERE {
GRAPH <id:active> {
<https://identifiers.org/rhea:12345> owl:sameAs ?obj .
}
} LIMIT 10
```



Expand Down
14 changes: 13 additions & 1 deletion static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -401,4 +401,16 @@ hr {
width: 80%;
margin: .5rem auto;
}
}
}

.language-sparql .k {
color: #639c43;
}

.language-sparql .nn {
color: #0086b4;
}

.language-sparql .ss {
color: rgb(160, 0, 160);
}

0 comments on commit 8796603

Please sign in to comment.