Skip to content

Commit 11ed5ab

Browse files
committed
add missing @id annotation in data models
1 parent 56ec687 commit 11ed5ab

File tree

11 files changed

+74
-46
lines changed

11 files changed

+74
-46
lines changed

context-extraction/src/main/java/de/atb/context/extraction/ContextContainerWrapper.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
* @(#)ContextContainerWrapper.java
33
*
44
* $Id: ContextContainerWrapper.java 647 2016-10-20 15:13:20Z scholze $
5-
*
5+
*
66
* $Rev:: 647 $ last change revision
77
* $Date:: 2016-10-20 17:13:20#$ last change date
88
* $Author:: scholze $ last change author
9-
*
9+
*
1010
* Copyright 2011-15 Sebastian Scholze (ATB). All rights reserved.
1111
*
1212
*/
@@ -43,16 +43,17 @@
4343

4444
/**
4545
* ContextContainerWrapper
46-
*
46+
*
4747
* @author scholze
4848
* @version $LastChangedRevision: 647 $
49-
*
49+
*
5050
*/
5151
@Setter
5252
@Getter
5353
public class ContextContainerWrapper {
5454

55-
protected ApplicationScenario applicationScenario = ApplicationScenario.getInstance(BusinessCase.getInstance("dummy",BusinessCase.NS_DUMMY_URL));
55+
protected ApplicationScenario applicationScenario =
56+
ApplicationScenario.getInstance(BusinessCase.getInstance(BusinessCase.NS_DUMMY_ID, BusinessCase.NS_DUMMY_URL));
5657
protected Boolean useReasoner = Boolean.FALSE;
5758
protected String identifier;
5859
protected String monitoringDataId;

context-monitoring/src/main/java/de/atb/context/monitoring/monitors/AbstractMonitor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This program and the accompanying materials are made
1010
* available under the terms of the Eclipse Public License 2.0
1111
* which is available at https://www.eclipse.org/legal/epl-2.0/
12-
*
12+
*
1313
* SPDX-License-Identifier: EPL-2.0
1414
* #L%
1515
*/

context-monitoring/src/test/java/de/atb/context/monitoring/models/DummyMonitoringDataModel.java

+17-15
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
* @(#)DummyMonitoringDataModel.java
33
*
44
* $Id: DummyMonitoringDataModel.java 686 2016-12-02 15:53:40Z scholze $
5-
*
5+
*
66
* $Rev:: 692 $ last change revision
77
* $Date:: 2012-07-09 09:58:45#$ last change date
88
* $Author:: scholze $ last change author
9-
*
9+
*
1010
* Copyright 2011-15 Sebastian Scholze (ATB). All rights reserved.
1111
*
1212
*/
@@ -21,9 +21,9 @@
2121
* Licensed under the Apache License, Version 2.0 (the "License");
2222
* you may not use this file except in compliance with the License.
2323
* You may obtain a copy of the License at
24-
*
24+
*
2525
* http://www.apache.org/licenses/LICENSE-2.0
26-
*
26+
*
2727
* Unless required by applicable law or agreed to in writing, software
2828
* distributed under the License is distributed on an "AS IS" BASIS,
2929
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -42,6 +42,7 @@
4242
import de.atb.context.persistence.ModelOutputLanguage;
4343
import lombok.Getter;
4444
import lombok.Setter;
45+
import thewebsemantic.Id;
4546
import thewebsemantic.Namespace;
4647
import thewebsemantic.RdfType;
4748

@@ -51,10 +52,10 @@
5152

5253
/**
5354
* DummyMonitoringDataModel
54-
*
55+
*
5556
* @author scholze
5657
* @version $LastChangedRevision: 692 $
57-
*
58+
*
5859
*/
5960
@RdfType("DummyMonitoringDataModel")
6061
@Namespace("http://www.atb-bremen.de/")
@@ -74,6 +75,7 @@ public class DummyMonitoringDataModel implements IMonitoringDataModel<DummyMonit
7475

7576
private String dummyName = "myDummyName";
7677
private String dummyValue = "myDummyVaLuE!";
78+
@Id
7779
private String identifier;
7880

7981
public DummyMonitoringDataModel() {
@@ -82,7 +84,7 @@ public DummyMonitoringDataModel() {
8284

8385
/*
8486
* (non-Javadoc)
85-
*
87+
*
8688
* @see
8789
* IMonitoringData#fromRdfModel(java.lang
8890
* .String)
@@ -94,7 +96,7 @@ public final DummyMonitoringDataModel fromRdfModel(final String rdfModel) {
9496

9597
/*
9698
* (non-Javadoc)
97-
*
99+
*
98100
* @see
99101
* IMonitoringData#fromRdfModel(com.hp.hpl
100102
* .jena.rdf.model.Model)
@@ -106,7 +108,7 @@ public final DummyMonitoringDataModel fromRdfModel(final Model model) {
106108

107109
/*
108110
* (non-Javadoc)
109-
*
111+
*
110112
* @see IMonitoringData#toRdfString()
111113
*/
112114
@Override
@@ -116,7 +118,7 @@ public final String toRdfString() {
116118

117119
/*
118120
* (non-Javadoc)
119-
*
121+
*
120122
* @see IMonitoringData#toRdfModel()
121123
*/
122124
@Override
@@ -126,7 +128,7 @@ public final Model toRdfModel() {
126128

127129
/*
128130
* (non-Javadoc)
129-
*
131+
*
130132
* @see
131133
* IMonitoringDataModel#getBusinessCase
132134
* ()
@@ -138,7 +140,7 @@ public final BusinessCase getBusinessCase() {
138140

139141
/*
140142
* (non-Javadoc)
141-
*
143+
*
142144
* @see IMonitoringDataModel#
143145
* triggersContextChange()
144146
*/
@@ -149,7 +151,7 @@ public final boolean triggersContextChange() {
149151

150152
/*
151153
* (non-Javadoc)
152-
*
154+
*
153155
* @see IMonitoringDataModel#
154156
* getApplicationScenario()
155157
*/
@@ -160,7 +162,7 @@ public final ApplicationScenario getApplicationScenario() {
160162

161163
/*
162164
* (non-Javadoc)
163-
*
165+
*
164166
* @see IMonitoringDataModel#
165167
* getContextIdentifierClassName()
166168
*/
@@ -171,7 +173,7 @@ public final String getContextIdentifierClassName() {
171173

172174
/*
173175
* (non-Javadoc)
174-
*
176+
*
175177
* @see
176178
* IMonitoringDataModel#initialize()
177179
*/

context-monitoring/src/test/java/de/atb/context/monitoring/models/TankRefillingMonitoringData.java

+16-14
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This program and the accompanying materials are made
1010
* available under the terms of the Eclipse Public License 2.0
1111
* which is available at https://www.eclipse.org/legal/epl-2.0/
12-
*
12+
*
1313
* SPDX-License-Identifier: EPL-2.0
1414
* #L%
1515
*/
@@ -27,6 +27,7 @@
2727
import lombok.Setter;
2828
import org.simpleframework.xml.Root;
2929

30+
import thewebsemantic.Id;
3031
import thewebsemantic.Namespace;
3132
import thewebsemantic.RdfType;
3233
import thewebsemantic.Transient;
@@ -35,10 +36,10 @@
3536

3637
/**
3738
* A TankRefillingMonitoringData describes
38-
*
39+
*
3940
* @author scholze
4041
* @version $LastChangedRevision: 881 $
41-
*
42+
*
4243
*/
4344
@RdfType("TankRefilling")
4445
@Namespace(BusinessCase.NS_DUMMY_URL)
@@ -56,6 +57,7 @@ public class TankRefillingMonitoringData implements IMonitoringDataModel<TankRef
5657
private Date monitoredAt;
5758
private FileSystemDataSource dataSource;
5859
private String monitoringDataVersion = Version.MONITORING_DATA.getVersionString();
60+
@Id
5961
private String identifier;
6062

6163
@Transient
@@ -76,7 +78,7 @@ public TankRefillingMonitoringData() {
7678

7779
/**
7880
* Adds another monitored Tank to the list of monitored tanks.
79-
*
81+
*
8082
* @param tank
8183
* The monitored Tank to be added to the list of monitored tanks.
8284
*/
@@ -86,7 +88,7 @@ public void addTank(Tank tank) {
8688

8789
/*
8890
* (non-Javadoc)
89-
*
91+
*
9092
* @see
9193
* de.atb.proseco.monitoring.IMonitoringData#fromRDFModel(com.hp.hpl
9294
* .jena.rdf.model.Model)
@@ -98,7 +100,7 @@ public TankRefillingMonitoringData fromRdfModel(Model model) {
98100

99101
/*
100102
* (non-Javadoc)
101-
*
103+
*
102104
* @see
103105
* de.atb.proseco.monitoring.IMonitoringData#fromXMPString(java.lang
104106
* .String)
@@ -110,7 +112,7 @@ public TankRefillingMonitoringData fromRdfModel(String rdfString) {
110112

111113
/*
112114
* (non-Javadoc)
113-
*
115+
*
114116
* @see
115117
* de.atb.proseco.monitoring.models.IMonitoringDataModel#getBusinessCase
116118
* ()
@@ -122,7 +124,7 @@ public BusinessCase getBusinessCase() {
122124

123125
/*
124126
* (non-Javadoc)
125-
*
127+
*
126128
* @see de.atb.proseco.monitoring.IMonitoringData#toRDFModel()
127129
*/
128130
@Override
@@ -132,7 +134,7 @@ public Model toRdfModel() {
132134

133135
/*
134136
* (non-Javadoc)
135-
*
137+
*
136138
* @see de.atb.proseco.monitoring.IMonitoringData#toXMPString()
137139
*/
138140
@Override
@@ -142,7 +144,7 @@ public String toRdfString() {
142144

143145
/*
144146
* (non-Javadoc)
145-
*
147+
*
146148
* @see java.lang.Object#toString()
147149
*/
148150
@Override
@@ -155,7 +157,7 @@ public String toString() {
155157

156158
/*
157159
* (non-Javadoc)
158-
*
160+
*
159161
* @see de.atb.proseco.monitoring.models.IMonitoringDataModel#
160162
* triggersContextChange()
161163
*/
@@ -166,7 +168,7 @@ public boolean triggersContextChange() {
166168

167169
/*
168170
* (non-Javadoc)
169-
*
171+
*
170172
* @see de.atb.proseco.monitoring.models.IMonitoringDataModel#
171173
* getApplicationScenario()
172174
*/
@@ -177,7 +179,7 @@ public ApplicationScenario getApplicationScenario() {
177179

178180
/*
179181
* (non-Javadoc)
180-
*
182+
*
181183
* @see de.atb.proseco.monitoring.models.IMonitoringDataModel#
182184
* getContextIdentifierClassName()
183185
*/
@@ -188,7 +190,7 @@ public String getContextIdentifierClassName() {
188190

189191
/*
190192
* (non-Javadoc)
191-
*
193+
*
192194
* @see
193195
* de.atb.proseco.monitoring.models.IMonitoringDataModel#initialize()
194196
*/

smartclide-monitoring/src/main/java/de/atb/context/monitoring/analyser/GitAnalyser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This program and the accompanying materials are made
1010
* available under the terms of the Eclipse Public License 2.0
1111
* which is available at https://www.eclipse.org/legal/epl-2.0/
12-
*
12+
*
1313
* SPDX-License-Identifier: EPL-2.0
1414
* #L%
1515
*/

smartclide-monitoring/src/main/java/de/atb/context/monitoring/models/CustomFileBasedDataModel.java

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import lombok.Getter;
2828
import lombok.Setter;
2929
import org.simpleframework.xml.Root;
30+
import thewebsemantic.Id;
3031
import thewebsemantic.Namespace;
3132
import thewebsemantic.RdfType;
3233

@@ -40,6 +41,7 @@ public class CustomFileBasedDataModel implements IMonitoringDataModel<CustomFile
4041
private Date monitoredAt;
4142
private String documentIndexId = "index/file";
4243
private String documentUri;
44+
@Id
4345
private String identifier;
4446
private FileSystemDataSource dataSource;
4547
private String implementingClassName = CustomFileBasedDataModel.class.getName();

smartclide-monitoring/src/main/java/de/atb/context/monitoring/models/GitDataModel.java

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import lombok.Getter;
3030
import lombok.Setter;
3131
import org.simpleframework.xml.Root;
32+
import thewebsemantic.Id;
3233
import thewebsemantic.Namespace;
3334
import thewebsemantic.RdfType;
3435

@@ -41,6 +42,7 @@ public class GitDataModel implements IMonitoringDataModel<GitDataModel, MessageB
4142
private Date monitoredAt;
4243
private String documentIndexId = "index/broker";
4344
private String documentUri;
45+
@Id
4446
private String identifier;
4547
private MessageBrokerDataSource dataSource;
4648
private String implementingClassName = GitDataModel.class.getName();

smartclide-monitoring/src/main/java/de/atb/context/monitoring/models/GitMessage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This program and the accompanying materials are made
1010
* available under the terms of the Eclipse Public License 2.0
1111
* which is available at https://www.eclipse.org/legal/epl-2.0/
12-
*
12+
*
1313
* SPDX-License-Identifier: EPL-2.0
1414
* #L%
1515
*/

smartclide-monitoring/src/main/java/eu/smartclide/contexthandling/dle/model/CommitMessage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This program and the accompanying materials are made
1010
* available under the terms of the Eclipse Public License 2.0
1111
* which is available at https://www.eclipse.org/legal/epl-2.0/
12-
*
12+
*
1313
* SPDX-License-Identifier: EPL-2.0
1414
* #L%
1515
*/

smartclide-monitoring/src/main/java/eu/smartclide/contexthandling/dle/model/DleMessage.java

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
package eu.smartclide.contexthandling.dle.model;
22

3+
/*-
4+
* #%L
5+
* SmartCLIDE Monitoring
6+
* %%
7+
* Copyright (C) 2015 - 2021 ATB – Institut für angewandte Systemtechnik Bremen GmbH
8+
* %%
9+
* This program and the accompanying materials are made
10+
* available under the terms of the Eclipse Public License 2.0
11+
* which is available at https://www.eclipse.org/legal/epl-2.0/
12+
*
13+
* SPDX-License-Identifier: EPL-2.0
14+
* #L%
15+
*/
16+
317
import lombok.AllArgsConstructor;
418
import lombok.Builder;
519
import lombok.Getter;

0 commit comments

Comments
 (0)