Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
789b422
Updated BridgeDb Datasources from https://github.com/bridgedb/datasou…
egonw Aug 26, 2023
e9665b7
Match the new BridgeDb Datasources
egonw Oct 8, 2023
d78f7e6
Implemented the expectations as tests
egonw Oct 8, 2023
3d602da
Added the backwards compatability
egonw Oct 8, 2023
729f5e6
Removed needless initialization
egonw Oct 8, 2023
2253321
Use the global variable
egonw Nov 5, 2023
8feed63
Bumped the release version
egonw Nov 5, 2023
3e7aab4
Release 3.1.0
egonw Nov 5, 2023
f98a0f2
Guava minimal version update
egonw Nov 5, 2023
d4681cd
Merge branch 'dev/uniprotkb'
egonw Nov 5, 2023
f2d2165
Compile the main branch
egonw Nov 5, 2023
107dd90
https and 443 for bridgedb webservice
AlexanderPico Nov 15, 2023
3dde020
Use HTTPS by default
egonw Nov 21, 2023
b4b53e3
Compile the series/3.1.0 branch
egonw Nov 21, 2023
aaab562
Newer Maven War plugin
egonw Nov 21, 2023
b031932
Open for development
egonw Dec 2, 2023
4ac23f9
slf4j 2.0.9
egonw Dec 2, 2023
665f89f
Updated RDF4J to 4.0.0
egonw Dec 2, 2023
32b6d33
Updated RDF4J to 4.3.8
egonw Dec 2, 2023
6cd348e
BridgeDb Datasources 20231202
egonw Dec 2, 2023
2ab0822
Updated to match the new BridgeDb Datasources
egonw Dec 2, 2023
13a62d7
Two further updates for JUnit
egonw Dec 2, 2023
58f42e0
Log4j 2.22
egonw Dec 18, 2023
8af1e79
Release 3.1.1
egonw Dec 18, 2023
91b9a9e
Open for development
egonw Jul 26, 2024
88e5bbc
Added a line on how to compile with Java 8 (e.g. for PathVisio)
egonw Jul 25, 2024
3414c19
Added some syntax highlighting
egonw Jul 25, 2024
4bea7ea
BridgeDb Datasources 202407252
egonw Jul 25, 2024
f330b5c
Use https for ChemSpider
egonw Jul 25, 2024
eef9526
Only initialize if not done already
egonw Jul 25, 2024
96bdb86
Fixed a minor typo
egonw Jul 25, 2024
d05ee7f
Mock new datasources, to not cause URL overwrite errors
egonw Jul 25, 2024
194aba6
Updated to match the new BridgeDb Datasources version
egonw Jul 25, 2024
e876e3d
Added the missing regexp
egonw Jul 25, 2024
0c68c33
Added another test
egonw Jul 25, 2024
da202ed
Tests may have registered things, so do a more realistic check
egonw Jul 25, 2024
5386289
More precise status message
egonw Jul 25, 2024
c8b657e
Support also https
egonw Jul 25, 2024
8819468
More testing
egonw Jul 25, 2024
b3cdc2a
More updates for the new BridgeDb Datasources release
egonw Jul 25, 2024
af89100
Different server id, to address a local ID conflict
egonw Jul 26, 2024
f6d831f
Release 3.1.2
egonw Jul 30, 2024
64287d2
Added Java8 build step
egonw Jul 25, 2024
1bab9d7
Only do the second step if compiling with Java8 worked
egonw Jul 25, 2024
4f36020
Do not run when not having Java 11 or higher
egonw Jul 25, 2024
f833874
Bumped the PathVisio bundle too
egonw Jul 30, 2024
1b6f47e
Open for development
egonw Sep 21, 2024
a76888f
Newer MySQL driver
egonw Sep 21, 2024
3c1f57a
Removed an unused dependency
egonw Sep 22, 2024
b78a5a5
Newer Apache CFX version
egonw Sep 22, 2024
1ae2751
Maven style
egonw Sep 22, 2024
d250241
Added a simple test
egonw Sep 22, 2024
07d37b0
Restructured and added a mapping test
egonw Sep 22, 2024
e86b179
Updated Maven Jar plugin
egonw Sep 22, 2024
3a054e3
Central, updated Felix maven plugin
egonw Sep 22, 2024
b8184a0
Updated more dependencies: Hamcrest 3.0, JUnit 5.11, and WSDL4J 1.6.3
egonw Sep 22, 2024
5b2a6d8
BridgeDb Datasources 20240925
egonw Sep 26, 2024
fc5c436
Release 3.1.3
egonw Oct 1, 2024
dddd78f
Use Derby 10.4
egonw Oct 1, 2024
336dab4
Make sure we have data sources defined
egonw Oct 1, 2024
73e1115
Make sure we don't define data source twice
egonw Oct 1, 2024
90bf947
Synched the versions with the main pom.xml
egonw Oct 1, 2024
f797159
Open for development
egonw Oct 3, 2024
684513f
A dual world: Derby 10.4 and 10.14+
egonw Oct 3, 2024
a8f0264
Release 3.1.4
egonw Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,27 @@ name: build

on:
push:
branches: [ master ]
branches: [ series/3.1.0 ]
pull_request:
branches: [ master ]
branches: [ series/3.1.0 ]

jobs:
build:
java8:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
cache: maven
- name: Build with Maven
run: mvn -f pom-java8.xml clean install -Dgpg.skip -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=true -Dproject.build.sourceEncoding=UTF-8 -Djunit5.excludeGroups=webservice,mysql

build:
needs: java8
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cff-version: 1.2.0
title: BridgeDb
message: 'If you use this software, please cite it as below.'
type: software
version: 3.0.23
date-released: '2023-08-07'
version: 3.1.4
date-released: '2024-12-19'
authors:
- given-names: Manas
family-names: Awasthi
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using BridgeDb dependencies
The [BridgeDb releases](https://github.com/bridgedb/BridgeDb/releases) are published to
[Maven Central](http://central.maven.org/maven2/org/bridgedb/), which means you can use the BridgeDb JARs without needing to compile BridgeDb.

Usage depends on which module you require. The examples below assumes artifact `org.bridgedb.bio` and version `3.0.23`:
Usage depends on which module you require. The examples below assumes artifact `org.bridgedb.bio` and version `3.1.4`:

For [Maven](https://maven.apache.org/):

Expand All @@ -24,27 +24,27 @@ For [Maven](https://maven.apache.org/):
<dependency>
<groupId>org.bridgedb</groupId>
<artifactId>org.bridgedb.bio</artifactId>
<version>3.0.23</version>
<version>3.1.4</version>
</dependency>
</dependencies>
```

For [Gradle](https://gradle.org/):

```gradle
compile group: 'org.bridgedb', name: 'org.bridgedb.bio', version: '3.0.23'
compile group: 'org.bridgedb', name: 'org.bridgedb.bio', version: '3.1.4'
```

For [Ivy](http://ant.apache.org/ivy/):

```xml
<dependency org="org.bridgedb" name="org.bridgedb.bio" rev="3.0.23"/>
<dependency org="org.bridgedb" name="org.bridgedb.bio" rev="3.1.4"/>
```

For [Buildr](https://buildr.apache.org/):

```buildr
'org.bridgedb:org.bridgedb.bio:jar:3.0.23'
'org.bridgedb:org.bridgedb.bio:jar:3.1.4'
```


Expand All @@ -58,6 +58,8 @@ able to compile with a simple:
mvn clean install -Dgpg.skip
```

When compiling the Java8-compatible components, use the `pom-java8.xml` file instead, with `mvn -f pom-java8.xml`.

You can find the libraries in the folder called "target", in each sublibrary folder (used to be called "dist" in ant).

If you want to ignore failing tests, e.g. because you are not online,
Expand Down Expand Up @@ -127,13 +129,13 @@ Making releases
---------------

If it is time for a release, first, update `org.bridgedb/src/main/resources/version.props` (for BridgeDb),
this `README.md` and `CITATION.cff` (for Zenodo).
this `README.md` and `CITATION.cff` (for Zenodo), as well as the `pom-java8.xml`.

To make the release, run the following commands. Mind you, this requires you
to have an approved Sonatype (http://oss.sonatype.org/) account with push rights:

```shell
mvn versions:set -DnewVersion=3.0.23
mvn versions:set -DnewVersion=3.1.4
mvn clean deploy
```

Expand All @@ -143,7 +145,7 @@ and everything.
To make a development (SNAPSHOT) release, use:

```shell
mvn versions:set -DnewVersion=3.0.23-SNAPSHOT
mvn versions:set -DnewVersion=3.1.5-SNAPSHOT
mvn clean deploy
```

Expand Down
22 changes: 18 additions & 4 deletions UPGRADE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,49 @@
Upgrade notes to BridgeDb 2.0
# Upgrade notes to BridgeDb 2.0

1. Initialing data sources
## 1. Initialing data sources

Replace

```java
BioDataSource.init();
```

with

```java
DataSourceTxt.init();
```

2. Getting DataSource's
## 2. Getting DataSource's

Replace

```java
DataSource ds = DataSource.getBySystemCode("Ck");
```

with

```java
DataSource ds = DataSource.getExistingBySystemCode("Ck");
```

Similarly, and more important:

```java
DataSource ds = DataSource.getByFullName("PubChem-compound");
```

with

```java
DataSource ds = DataSource.getExistingByFullName("PubChem-compound");
```

The latter two new methods throw an IllegalArgumentException if the DataSource does not exist.
The latter two new methods throw an `IllegalArgumentException` if the `DataSource` does not exist.
Use one of the following two methods to check first:

```java
DataSource.systemCodeExists("Ck");
DataSource.fullNameExists("PubChem-compound");
```
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ enum Connector
PICR ("picr", "idmapper-picr:"),

SYNERGIZER_ENSEMBL ("synergizer(ensembl)", "idmapper-synergizer:authority=ensembl&species=Homo sapiens"),
BRIDGEWEBSERVICE ("BridgeWebservice", "idmapper-bridgerest:http://webservice.bridgedb.org/Human"),
BRIDGEWEBSERVICE ("BridgeWebservice", "idmapper-bridgerest:https://webservice.bridgedb.org/Human"),
BRIDGEWEBSERVICE_LOCAL ("BridgeWebservice(local)", "idmapper-bridgerest:http://localhost:8183/Human"),
BIOMART ("biomart", "idmapper-biomart:http://www.biomart.org/biomart/martservice?mart=ensembl&dataset=hsapiens_gene_ensembl"),
CRONOS ("cronos", "idmapper-cronos:hsa"),
Expand Down
2 changes: 1 addition & 1 deletion benchmarking/test/org/bridgedb/benchmarking/TestAll.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void testBridgeWebservice() throws IDMapperException, ClassNotFoundExcept
Class.forName("org.bridgedb.webservice.bridgerest.BridgeRest");
Xref insr1 = new Xref ("ENSG00000171105", DataSource.getBySystemCode("EnHs"));
Xref insr2 = new Xref ("3643", DataSource.getBySystemCode("L"));
basicMapperTest (measure, "bridgerest", "idmapper-bridgerest:http://webservice.bridgedb.org/Human", insr1, insr2);
basicMapperTest (measure, "bridgerest", "idmapper-bridgerest:https://webservice.bridgedb.org/Human", insr1, insr2);
}

public void testFile() throws IDMapperException, ClassNotFoundException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@
%{$GeneTables{CCDS}} = ('NAME' => ['CCDS', 'Cc'],
'SYSTEM' => ["\'Consensus CDS Protein Set (NCBI)\'", "\'$dateArg\'",
"\'ID\|\'", "\'\|$species\|\'", "\'\'",
"\'http://www.ncbi.nlm.nih.gov/CCDS/CcdsBrowse.cgi?REQUEST=ALLFIELDS&DATA=~&ORGANISM=".$genus_species."\'", "\'\'",
"\'https://www.ncbi.nlm.nih.gov/CCDS/CcdsBrowse.cgi?REQUEST=ALLFIELDS&DATA=~&ORGANISM=".$genus_species."\'", "\'\'",
"\'ftp://ftp.ncbi.nlm.nih.gov/pub/CCDS/\'"],
'HEADER' => ['ID VARCHAR(128) NOT NULL DEFAULT \'\'',
'PRIMARY KEY (ID)'
Expand Down Expand Up @@ -863,7 +863,7 @@
%{$GeneTables{RGD}} = ('NAME' => ['RGD', 'R'],
'SYSTEM' => ["\'Rat Genome Database\'", "\'$dateArg\'",
"\'ID|Symbol\\\\sBF|Description\\\\BF|Synonyms\\\\BF\|\'", "\'\|$species\|\'", "\'\'",
"\'http://rgd.mcw.edu/query/query.cgi?id=~\'", "\'\'",
"\'https://rgd.mcw.edu/query/query.cgi?id=~\'", "\'\'",
"\'ftp://rgd.mcw.edu/pub/\'"],
'HEADER' => ['ID VARCHAR(128) NOT NULL DEFAULT \'\'',
'Symbol VARCHAR(128) NOT NULL DEFAULT \'\'',
Expand Down Expand Up @@ -916,8 +916,8 @@
%{$GeneTables{GrameneGenes}} = ('NAME' => ['GrameneGenes', 'Gg'],
'SYSTEM' => ["\'Gramene Genes Database\'", "\'$dateArg\'",
"\'ID|Symbol\\\\sBF|Description\\\\BF\|\'", "\'\|$species\|\'", "\'\'",
"\'http://www.gramene.org/db/genes/search_gene?acc=~\'", "\'\'",
"\'http://www.gramene.org\'"],
"\'https://www.gramene.org/db/genes/search_gene?acc=~\'", "\'\'",
"\'https://www.gramene.org\'"],
'HEADER' => ['ID VARCHAR(128) NOT NULL DEFAULT \'\'',
'Symbol VARCHAR(128) NOT NULL DEFAULT \'\'',
'Description VARCHAR(255) DEFAULT NULL',
Expand All @@ -926,8 +926,8 @@
%{$GeneTables{GramenePathway}} = ('NAME' => ['GramenePathway', 'Gm'],
'SYSTEM' => ["\'Gramene Pathway\'", "\'$dateArg\'",
"\'ID|Description\\\\BF\|\'", "\'\|$species\|\'", "\'\'",
"\'http://www.gramene.org/pathway\'", "\'\'",
"\'http://www.gramene.org/pathway\'"],
"\'https://www.gramene.org/pathway\'", "\'\'",
"\'https://www.gramene.org/pathway\'"],
'HEADER' => ['ID VARCHAR(128) NOT NULL DEFAULT \'\'',
'Description VARCHAR(255) DEFAULT NULL',
'PRIMARY KEY (ID)'
Expand Down
16 changes: 2 additions & 14 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>bridgedb-bundle</artifactId>
<groupId>org.bridgedb</groupId>
<version>3.0.23</version>
<version>3.1.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.bridgedb.examples</groupId>
Expand Down Expand Up @@ -65,22 +65,10 @@
<dependency>
<groupId>wsdl4j</groupId>
<artifactId>wsdl4j</artifactId>
<version>1.6.2</version>
<version>1.6.3</version>
<type>jar</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.4</version>
<type>jar</type>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void main (String[] args) throws ClassNotFoundException, IDMapperE
// We'll use the BridgeRest webservice in this case, as it does compound mapping fairly well.
// We'll use the human database, but it doesn't really matter which species we pick.
Class.forName ("org.bridgedb.webservice.bridgerest.BridgeRest");
IDMapper mapper = BridgeDb.connect("idmapper-bridgerest:http://webservice.bridgedb.org/Human");
IDMapper mapper = BridgeDb.connect("idmapper-bridgerest:https://webservice.bridgedb.org/Human");
DataSourceTxt.init();

// Start with defining the Chebi identifier for
Expand Down
2 changes: 1 addition & 1 deletion examples/src/org/bridgedb/examples/ExHello.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void main(String args[]) throws ClassNotFoundException, IDMapperEx
DataSourceTxt.init();

// now we connect to the driver and create a IDMapper instance.
IDMapper mapper = BridgeDb.connect ("idmapper-bridgerest:http://webservice.bridgedb.org/Human");
IDMapper mapper = BridgeDb.connect ("idmapper-bridgerest:https://webservice.bridgedb.org/Human");

// We create an Xref instance for the identifier that we want to look up.
// In this case we want to look up Entrez gene 3643.
Expand Down
2 changes: 1 addition & 1 deletion examples/src/org/bridgedb/examples/ExIDSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void main(String args[]) throws ClassNotFoundException, IDMapperEx
DataSourceTxt.init();

// now we connect to the driver and create a IDMapper instance.
IDMapper mapper = BridgeDb.connect ("idmapper-bridgerest:http://webservice.bridgedb.org/Human");
IDMapper mapper = BridgeDb.connect ("idmapper-bridgerest:https://webservice.bridgedb.org/Human");

String query = "3643";

Expand Down
4 changes: 2 additions & 2 deletions org.bridgedb.bio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>bridgedb-bundle</artifactId>
<groupId>org.bridgedb</groupId>
<version>3.0.23</version>
<version>3.1.4</version>
</parent>

<build>
Expand All @@ -32,7 +32,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.2</version>
<version>${felix.version}</version>
<extensions>true</extensions>
<configuration>
<instructions>
Expand Down
Loading
Loading