• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 21824698525

09 Feb 2026 12:15PM UTC coverage: 14.334% (+0.4%) from 13.904%
21824698525

push

github

tkuhn
fix: Fix broken connector configs

596 of 5272 branches covered (11.31%)

Branch coverage included in aggregate %.

1541 of 9637 relevant lines covered (15.99%)

2.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/nanodash/connector/ios/DsConfig.java
1
package com.knowledgepixels.nanodash.connector.ios;
2

3
import com.knowledgepixels.nanodash.QueryApiAccess;
4
import com.knowledgepixels.nanodash.Utils;
5
import com.knowledgepixels.nanodash.connector.ConnectorConfig;
6
import com.knowledgepixels.nanodash.connector.ConnectorOption;
7
import com.knowledgepixels.nanodash.connector.ConnectorOptionGroup;
8
import org.eclipse.rdf4j.model.IRI;
9

10
import java.util.ArrayList;
11
import java.util.HashSet;
12
import java.util.List;
13
import java.util.Set;
14

15
/**
16
 * Configuration class for the Data Science (DS) connector.
17
 */
18
public class DsConfig extends ConnectorConfig {
×
19

20
    private static DsConfig instance;
21

22
    /**
23
     * Gets the singleton instance of the DsConfig class.
24
     *
25
     * @return the singleton instance of DsConfig
26
     */
27
    public static DsConfig get() {
28
        if (instance == null) instance = new DsConfig();
×
29
        return instance;
×
30
    }
31

32
    /**
33
     * {@inheritDoc}
34
     */
35
    @Override
36
    public String getLogoFileName() {
37
        return "DsLogo.png";
×
38
    }
39

40
    /**
41
     * {@inheritDoc}
42
     */
43
    @Override
44
    public String getSubmitImageFileName() {
45
        return "DsFormSubmit.png";
×
46
    }
47

48
    /**
49
     * {@inheritDoc}
50
     */
51
    @Override
52
    public String getJournalName() {
53
        return "Data Science";
×
54
    }
55

56
    /**
57
     * {@inheritDoc}
58
     */
59
    @Override
60
    public String getJournalAbbrev() {
61
        return "DS";
×
62
    }
63

64
    /**
65
     * {@inheritDoc}
66
     */
67
    @Override
68
    public String getJournalUrl() {
69
        return "https://datasciencehub.net/";
×
70
    }
71

72
    /**
73
     * {@inheritDoc}
74
     */
75
    @Override
76
    public String getJournalIssn() {
77
        return "2451-8492";
×
78
    }
79

80
    /**
81
     * {@inheritDoc}
82
     */
83
    @Override
84
    public String getReviewUrlPrefix() {
85
        return "http://ds.kpxl.org/";
×
86
        //return "https://w3id.org/kpxl/ios/ds/np/reviewer/";
87
    }
88

89
    /**
90
     * {@inheritDoc}
91
     */
92
    @Override
93
    public String getCandidateNanopubsApiCall() {
94
        return QueryApiAccess.GET_LATEST_DS_CANDIDATES;
×
95
    }
96

97
    /**
98
     * {@inheritDoc}
99
     */
100
    @Override
101
    public String getGeneralReactionsApiCall() {
102
        return QueryApiAccess.GET_DS_REACTIONS;
×
103
    }
104

105
    /**
106
     * {@inheritDoc}
107
     */
108
    @Override
109
    public String getAcceptedNanopubsApiCall() {
110
        return QueryApiAccess.GET_LATEST_ACCEPTED_DS;
×
111
    }
112

113
    private Set<IRI> technicalEditorIds;
114

115
    /**
116
     * {@inheritDoc}
117
     */
118
    @Override
119
    public Set<IRI> getTechnicalEditorIds() {
120
        if (technicalEditorIds == null) {
×
121
            technicalEditorIds = new HashSet<IRI>();
×
122
            technicalEditorIds.add(Utils.vf.createIRI("https://orcid.org/0000-0002-1267-0234"));
×
123
        }
124
        return technicalEditorIds;
×
125
    }
126

127
    /**
128
     * {@inheritDoc}
129
     */
130
    @Override
131
    public IRI getNanopubType() {
132
        return Utils.vf.createIRI("https://w3id.org/kpxl/ios/ds/terms/DataScienceNanopub");
×
133
    }
134

135
    /**
136
     * {@inheritDoc}
137
     */
138
    @Override
139
    public String getTargetNamespace() {
140
        return "https://w3id.org/kpxl/ios/ds/np/";
×
141
    }
142

143
    /**
144
     * {@inheritDoc}
145
     */
146
    @Override
147
    public String getConnectInstruction() {
148
        return "Paste it in one of the textfields under \"Nanopublication URLs\":";
×
149
    }
150

151
    private static final List<ConnectorOptionGroup> options;
152

153
    static {
154
        options = new ArrayList<>();
×
155
        options.add(new ConnectorOptionGroup("Simple Scientific Statements",
×
156
                ConnectorOption.LINKFLOWSREL,
157
                ConnectorOption.CREL
158
        ));
159
        options.add(new ConnectorOptionGroup("Complex Scientific Statements",
×
160
                ConnectorOption.SUPERPATTERN,
161
                ConnectorOption.AIDA
162
        ));
163
        options.add(new ConnectorOptionGroup("Specific Types of Statements",
×
164
                ConnectorOption.BIOREL,
165
                ConnectorOption.ML
166
        ));
167
    }
×
168

169
    /**
170
     * {@inheritDoc}
171
     */
172
    @Override
173
    public List<ConnectorOptionGroup> getOptions() {
174
        return options;
×
175
    }
176

177
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc