Skip to content

Commit 8796603

Browse files
committed
Active sparql query and minimal syntax highlight
1 parent 3aaed6e commit 8796603

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

pages/sparql.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This SPARQL Endpoint is implemented using Sesame openRDF platform. SPARQL query
2121
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.
2222

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

2626
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.
2727

@@ -47,7 +47,18 @@ SELECT * WHERE {
4747
}
4848
```
4949

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

53+
```sparql
54+
PREFIX owl: <http://www.w3.org/2002/07/owl#>
55+
SELECT *
56+
WHERE {
57+
GRAPH <id:active> {
58+
<https://identifiers.org/rhea:12345> owl:sameAs ?obj .
59+
}
60+
} LIMIT 10
61+
```
5162

5263

5364

static/css/styles.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,4 +401,16 @@ hr {
401401
width: 80%;
402402
margin: .5rem auto;
403403
}
404-
}
404+
}
405+
406+
.language-sparql .k {
407+
color: #639c43;
408+
}
409+
410+
.language-sparql .nn {
411+
color: #0086b4;
412+
}
413+
414+
.language-sparql .ss {
415+
color: rgb(160, 0, 160);
416+
}

0 commit comments

Comments
 (0)