Skip to content

Commit a7630b2

Browse files
committed
Add CITATION.cff
1 parent 6d7aba8 commit a7630b2

File tree

2 files changed

+95
-12
lines changed

2 files changed

+95
-12
lines changed

CITATION.cff

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
cff-version: 1.2.0
2+
message: "If you use this software, please cite it as below."
3+
title: "A large collection of bioinformatics question-query pairs over federated knowledge graphs: methodology and applications"
4+
repository-code: https://github.com/sib-swiss/sparql-examples-utils
5+
date-released: 2024-10-08
6+
doi: 10.48550/arXiv.2410.06010
7+
license: MIT
8+
authors:
9+
- given-names: Jerven
10+
family-names: Bolleman
11+
orcid: https://orcid.org/0000-0002-7449-1266,
12+
13+
affiliation: SIB Swiss Institute of Bioinformatics
14+
- given-names: Vincent
15+
family-names: Emonet
16+
orcid: https://orcid.org/0000-0002-1501-1082
17+
affiliation: SIB Swiss Institute of Bioinformatics
18+
- given-names: Adrian
19+
family-names: Altenhoff
20+
affiliation: SIB Swiss Institute of Bioinformatics
21+
- given-names: Amos
22+
family-names: Bairoch
23+
affiliation: SIB Swiss Institute of Bioinformatics
24+
- given-names: Marie-Claude
25+
family-names: Blatter
26+
affiliation: SIB Swiss Institute of Bioinformatics
27+
- given-names: Alan
28+
family-names: Bridge
29+
affiliation: SIB Swiss Institute of Bioinformatics
30+
- given-names: Severine
31+
family-names: Duvaud
32+
orcid: https://orcid.org/0000-0001-7892-9678
33+
affiliation: SIB Swiss Institute of Bioinformatics
34+
- given-names: Elisabeth
35+
family-names: Gasteiger
36+
affiliation: SIB Swiss Institute of Bioinformatics
37+
- given-names: Dmitry
38+
family-names: Kuznetsov
39+
affiliation: SIB Swiss Institute of Bioinformatics
40+
- given-names: Sebastien
41+
family-names: Moretti
42+
affiliation: SIB Swiss Institute of Bioinformatics
43+
- given-names: Pierre-Andre
44+
family-names: Michel
45+
affiliation: SIB Swiss Institute of Bioinformatics
46+
- given-names: Anne
47+
family-names: Morgat
48+
affiliation: SIB Swiss Institute of Bioinformatics
49+
- given-names: Marco
50+
family-names: Pagni
51+
affiliation: SIB Swiss Institute of Bioinformatics
52+
- given-names: Nicole
53+
family-names: Redaschi
54+
affiliation: SIB Swiss Institute of Bioinformatics
55+
- given-names: Monique
56+
family-names: Zahn-Zabal
57+
affiliation: SIB Swiss Institute of Bioinformatics
58+
- given-names: Tarcisio
59+
family-names: Mendes de Farias
60+
orcid: https://orcid.org/0000-0002-3175-5372
61+
affiliation: SIB Swiss Institute of Bioinformatics
62+
- given-names: Ana Claudia
63+
family-names: Sima
64+
orcid: https://orcid.org/0000-0003-3213-4495
65+
affiliation: SIB Swiss Institute of Bioinformatics

README.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This is a set of tools to convert, test and help maintain SPARQL query examples.
44

55

6-
The code comes from the [SIB SPARQL Examples](https://github.com/sib-swiss/sparql-examples/) project.
6+
The code comes from the [SIB SPARQL Examples](https://github.com/sib-swiss/sparql-examples/) project.
77

88
For this code to work each query should be in a turtle file.
99

@@ -18,9 +18,9 @@ The following illustrates an example to retrieve all taxa from the UniProt SPARQ
1818

1919
```sparql
2020
prefix ex: <https://sparql.uniprot.org/.well-known/sparql-examples/> # <!-- change per dataset
21-
prefix sh: <http://www.w3.org/ns/shacl#>
21+
prefix sh: <http://www.w3.org/ns/shacl#>
2222
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
23-
prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
23+
prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
2424
ex:1 # <!-- UniProt, Rhea and Swiss-Lipids are numbered but this can be anything.
2525
a sh:SPARQLSelectExecutable, sh:SPARQLExecutable ;
2626
sh:prefixes _:sparql_examples_prefixes ; # <!-- required for the import of the prefix declarations. Note the blank node
@@ -39,24 +39,27 @@ WHERE
3939

4040
If you want to add a label to a query please use the [schema.org keywords](https://schema.org/keywords).
4141

42-
# Running the code
42+
## Running the code
4343

4444
If using a release:
45+
4546
```bash
4647
mkdir target
47-
wget "https://github.com/sib-swiss/sparql-examples-utils/releases/download/v2.0.0/sparql-examples-utils-2.0.0-uber.jar"
48-
mv sparql-examples-utils-2.0.0-uber.jar target
48+
wget "https://github.com/sib-swiss/sparql-examples-utils/releases/download/v2.0.10/sparql-examples-utils-2.0.10-uber.jar"
49+
mv sparql-examples-utils-2.0.10-uber.jar target
4950

5051
# This target directory is only so that the commands in the examples match as if the code was build locally.
5152
# basically target/ can be remove from all examples below
5253
```
54+
5355
If building locally in this git repository:
56+
5457
```bash
5558
mvn package
5659
```
5760

5861

59-
# Quality Assurance (QA).
62+
## Quality Assurance (QA)
6063

6164
To test your examples pass the folder/directory containing your examples as an argument (`--input-directory` to the `test` subcommand, e.g.:
6265

@@ -74,7 +77,7 @@ java -jar target/sparql-examples-utils-*-uber.jar test --input-directory=../spar
7477
>
7578
> All CLI commands provided in this readme expects you have the [`sparql-examples`](https://github.com/sib-swiss/sparql-examples) folder cloned in the same directory alongside this `sparql-examples-utils` project folder. Feel free to change them for your own example folder and path.
7679
77-
# Conversion for upload in SPARQL endpoint
80+
## Conversion for upload in SPARQL endpoint
7881

7982
Before loading the examples into a SPARQL endpoint they should be concatenated into one file, including the prefixes/namespaces definitions.
8083

@@ -105,17 +108,18 @@ Generate markdown files with the query and a mermaid diagram of the queries, to
105108
java -jar target/sparql-examples-utils-*-uber.jar convert -i ../sparql-examples/examples -m
106109
```
107110

108-
# Querying for queries
111+
## Querying for queries
109112

110113
As the SPARQL examples are themselves RDF, they can be queried for as soon as they are loaded in a SPARQL endpoint.
111114
```sparql
112115
PREFIX sh: <http://www.w3.org/ns/shacl#>
113116
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
117+
PREFIX spex: <https://purl.expasy.org/sparql-examples/ontology#>
114118
SELECT DISTINCT ?sq ?comment ?query
115119
WHERE {
116120
?sq a sh:SPARQLExecutable ;
117121
rdfs:comment ?comment ;
118-
sh:select|sh:ask|sh:construct|sh:describe ?query .
122+
sh:select|sh:ask|sh:construct|spex:describe ?query .
119123
} ORDER BY ?sq
120124
```
121125

@@ -127,9 +131,9 @@ java -jar target/sparql-examples-utils-*-uber.jar convert --input-directory ../s
127131
sparql --data examples_all.ttl "SELECT ?query (GROUP_CONCAT(?target ; separator=', ') AS ?targets) WHERE { ?query <https://schema.org/target> ?target } GROUP BY ?query HAVING (COUNT(DISTINCT ?target) > 1) "
128132
```
129133

130-
# Native executable
134+
## Native executable
131135

132-
The project is ready to be compiled by the native-image tool of the [GraalVM](https://www.graalvm.org/) project.
136+
The project is ready to be compiled by the native-image tool of the [GraalVM](https://www.graalvm.org/) project.
133137

134138
To do so set your `JAVA_HOME` to the graalvm location and user maven package -Pnative
135139

@@ -142,5 +146,19 @@ mvn package -Pnative
142146
./target/sparql-examples-utils converter -i ${DIRECTORY_WITH_EXAMPLES}
143147
```
144148

149+
## How to cite this work
145150

151+
If you reuse any part of this work, please cite [the arXiv paper](http://arxiv.org/abs/2410.06010):
146152

153+
```
154+
@misc{largecollectionsparqlquestionquery,
155+
title={A large collection of bioinformatics question-query pairs over federated knowledge graphs: methodology and applications},
156+
author={Jerven Bolleman and Vincent Emonet and Adrian Altenhoff and Amos Bairoch and Marie-Claude Blatter and Alan Bridge and Severine Duvaud and Elisabeth Gasteiger and Dmitry Kuznetsov and Sebastien Moretti and Pierre-Andre Michel and Anne Morgat and Marco Pagni and Nicole Redaschi and Monique Zahn-Zabal and Tarcisio Mendes de Farias and Ana Claudia Sima},
157+
year={2024},
158+
doi={10.48550/arXiv.2410.06010},
159+
eprint={2410.06010},
160+
archivePrefix={arXiv},
161+
primaryClass={cs.DB},
162+
url={https://arxiv.org/abs/2410.06010},
163+
}
164+
```

0 commit comments

Comments
 (0)