This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 72fe35939e refactor(#2128): remove deprecated adapters (#2715)
72fe35939e is described below
commit 72fe35939edcbc900b73dbc464f6d01cf1a2cb18
Author: Tim <[email protected]>
AuthorDate: Mon Apr 8 13:39:30 2024 +0200
refactor(#2128): remove deprecated adapters (#2715)
---
.../GeneralAdaptersExtensionModuleExport.java | 17 +-
.../adapters/coindesk/CoindeskBitcoinAdapter.java | 156 ------------------
.../connect/adapters/coindesk/Currency.java | 27 ----
.../connect/adapters/coindesk/model/Bpi.java | 62 -------
.../adapters/coindesk/model/CoindeskRawModel.java | 71 --------
.../connect/adapters/coindesk/model/EUR.java | 82 ----------
.../connect/adapters/coindesk/model/GBP.java | 81 ----------
.../connect/adapters/coindesk/model/Time.java | 61 -------
.../connect/adapters/coindesk/model/USD.java | 81 ----------
.../connect/adapters/flic/FlicMQTTAdapter.java | 106 ------------
.../connect/adapters/flic/FlicOutput.java | 62 -------
.../connect/adapters/flic/FlicUtils.java | 74 ---------
.../connect/adapters/slack/SlackAdapter.java | 93 -----------
.../connect/adapters/slack/SlackConsumer.java | 80 ---------
.../connect/adapters/ti/TISensorTag.java | 180 ---------------------
.../adapters/wikipedia/WikipediaAdapter.java | 147 -----------------
.../wikipedia/WikipediaEditedArticlesAdapter.java | 45 ------
.../wikipedia/WikipediaModelConverter.java | 72 ---------
.../wikipedia/WikipediaNewArticlesAdapter.java | 45 ------
.../adapters/wikipedia/WikipediaSseConsumer.java | 61 -------
.../documentation.md | 38 -----
.../icon.png | Bin 17868 -> 0 bytes
.../strings.en | 23 ---
.../documentation.md | 53 ------
.../icon.png | Bin 24457 -> 0 bytes
.../strings.en | 44 -----
.../documentation.md | 33 ----
.../icon.png | Bin 13079 -> 0 bytes
.../strings.en | 24 ---
.../documentation.md | 33 ----
.../icon.png | Bin 17473 -> 0 bytes
.../strings.en | 24 ---
.../documentation.md | 51 ------
.../icon.png | Bin 12579 -> 0 bytes
.../strings.en | 45 ------
.../documentation.md | 33 ----
.../icon.png | Bin 65221 -> 0 bytes
.../strings.en | 20 ---
.../documentation.md | 33 ----
.../icon.png | Bin 65221 -> 0 bytes
.../strings.en | 21 ---
41 files changed, 1 insertion(+), 2077 deletions(-)
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/GeneralAdaptersExtensionModuleExport.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/GeneralAdaptersExtensionModuleExport.java
index ba1fcad199..4f35d27493 100644
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/GeneralAdaptersExtensionModuleExport.java
+++
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/GeneralAdaptersExtensionModuleExport.java
@@ -18,16 +18,10 @@
package org.apache.streampipes.connect;
-import org.apache.streampipes.connect.adapters.coindesk.CoindeskBitcoinAdapter;
-import org.apache.streampipes.connect.adapters.flic.FlicMQTTAdapter;
import org.apache.streampipes.connect.adapters.image.stream.ImageStreamAdapter;
import org.apache.streampipes.connect.adapters.iss.IssAdapter;
import org.apache.streampipes.connect.adapters.netio.NetioMQTTAdapter;
import org.apache.streampipes.connect.adapters.netio.NetioRestAdapter;
-import org.apache.streampipes.connect.adapters.slack.SlackAdapter;
-import org.apache.streampipes.connect.adapters.ti.TISensorTag;
-import
org.apache.streampipes.connect.adapters.wikipedia.WikipediaEditedArticlesAdapter;
-import
org.apache.streampipes.connect.adapters.wikipedia.WikipediaNewArticlesAdapter;
import org.apache.streampipes.extensions.api.connect.StreamPipesAdapter;
import org.apache.streampipes.extensions.api.declarer.IExtensionModuleExport;
import org.apache.streampipes.extensions.api.migration.IModelMigrator;
@@ -41,19 +35,10 @@ public class GeneralAdaptersExtensionModuleExport
implements IExtensionModuleExp
@Override
public List<StreamPipesAdapter> adapters() {
return List.of(
- //new GdeltAdapter(),
- new CoindeskBitcoinAdapter(),
new NetioRestAdapter(),
new NetioMQTTAdapter(),
- //new IexCloudNewsAdapter(),
- //new IexCloudStockAdapter(),
- new SlackAdapter(),
- new WikipediaEditedArticlesAdapter(),
- new WikipediaNewArticlesAdapter(),
new ImageStreamAdapter(),
- new IssAdapter(),
- new FlicMQTTAdapter(),
- new TISensorTag()
+ new IssAdapter()
);
}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/CoindeskBitcoinAdapter.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/CoindeskBitcoinAdapter.java
deleted file mode 100644
index bb222aa6c8..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/CoindeskBitcoinAdapter.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.connect.adapters.coindesk;
-
-import org.apache.streampipes.commons.exceptions.connect.AdapterException;
-import org.apache.streampipes.connect.adapters.coindesk.model.CoindeskRawModel;
-import org.apache.streampipes.extensions.api.connect.IAdapterConfiguration;
-import org.apache.streampipes.extensions.api.connect.IEventCollector;
-import org.apache.streampipes.extensions.api.connect.IPollingSettings;
-import org.apache.streampipes.extensions.api.connect.IPullAdapter;
-import org.apache.streampipes.extensions.api.connect.StreamPipesAdapter;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterGuessSchemaContext;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterRuntimeContext;
-import
org.apache.streampipes.extensions.api.extractor.IAdapterParameterExtractor;
-import
org.apache.streampipes.extensions.api.extractor.IStaticPropertyExtractor;
-import
org.apache.streampipes.extensions.management.connect.PullAdapterScheduler;
-import
org.apache.streampipes.extensions.management.connect.adapter.util.PollingSettings;
-import org.apache.streampipes.model.AdapterType;
-import org.apache.streampipes.model.connect.guess.GuessSchema;
-import org.apache.streampipes.sdk.builder.adapter.AdapterConfigurationBuilder;
-import org.apache.streampipes.sdk.builder.adapter.GuessSchemaBuilder;
-import org.apache.streampipes.sdk.helpers.EpProperties;
-import org.apache.streampipes.sdk.helpers.Labels;
-import org.apache.streampipes.sdk.helpers.Locales;
-import org.apache.streampipes.sdk.helpers.Options;
-import org.apache.streampipes.sdk.utils.Assets;
-import org.apache.streampipes.vocabulary.SO;
-
-import com.google.gson.Gson;
-import org.apache.http.client.fluent.Request;
-
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.concurrent.TimeUnit;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class CoindeskBitcoinAdapter implements StreamPipesAdapter,
IPullAdapter {
-
- public static final String ID =
"org.apache.streampipes.connect.adapters.coindesk";
-
- private static final String CURRENCY_KEY = "currency";
- private static final String CoindeskUrl =
"https://api.coindesk.com/v1/bpi/currentprice.json";
-
- private Currency currency;
-
- private IEventCollector collector;
- private PullAdapterScheduler pullAdapterScheduler;
-
- private String elementId;
-
- @Override
- public IAdapterConfiguration declareConfig() {
- return AdapterConfigurationBuilder.create(ID, CoindeskBitcoinAdapter::new)
- .withAssets(Assets.DOCUMENTATION, Assets.ICON)
- .withLocales(Locales.EN)
- .withCategory(AdapterType.Finance)
- .requiredSingleValueSelection(Labels.withId(CURRENCY_KEY),
Options.from("USD", "EUR", "GBP"))
- .buildConfiguration();
- }
-
- @Override
- public void onAdapterStarted(IAdapterParameterExtractor extractor,
- IEventCollector collector,
- IAdapterRuntimeContext adapterRuntimeContext)
throws AdapterException {
- this.applyConfiguration(extractor.getStaticPropertyExtractor());
- this.elementId = extractor.getAdapterDescription().getElementId();
- this.collector = collector;
- this.pullAdapterScheduler = new PullAdapterScheduler();
- this.pullAdapterScheduler.schedule(this,
extractor.getAdapterDescription().getElementId());
- }
-
- private void applyConfiguration(IStaticPropertyExtractor extractor) {
- this.currency = Currency.valueOf(
- extractor.selectedSingleValue(CURRENCY_KEY, String.class)
- );
- }
-
- @Override
- public void onAdapterStopped(IAdapterParameterExtractor extractor,
- IAdapterRuntimeContext adapterRuntimeContext)
throws AdapterException {
- this.pullAdapterScheduler.shutdown();
- }
-
- @Override
- public GuessSchema onSchemaRequested(IAdapterParameterExtractor extractor,
- IAdapterGuessSchemaContext
adapterGuessSchemaContext) throws AdapterException {
- var schemaBuilder = GuessSchemaBuilder.create()
- .property(EpProperties.timestampProperty("timestamp"))
- .property(EpProperties.doubleEp(Labels.from("rate-field", "Rate", "The
current "
- + "bitcoin rate"), "rate", SO.PRICE));
-
- try {
- var sampleEvent = getDataFromEndpoint();
- sampleEvent.entrySet().forEach(entry -> {
- schemaBuilder.sample(entry.getKey(), entry.getValue());
- });
- } catch (IOException e) {
- // ignore preview
- }
-
- return schemaBuilder.build();
- }
-
- @Override
- public void pullData() throws RuntimeException {
- System.out.println("Pulling " + elementId);
- try {
- var outMap = getDataFromEndpoint();
- collector.collect(outMap);
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-
- private Map<String, Object> getDataFromEndpoint() throws IOException {
- String response =
Request.Get(CoindeskUrl).execute().returnContent().asString();
- CoindeskRawModel rawModel = new Gson().fromJson(response,
CoindeskRawModel.class);
-
- long timestamp = System.currentTimeMillis();
- Double rate;
- if (currency == Currency.EUR) {
- rate = rawModel.getBpi().getEUR().getRateFloat();
- } else if (currency == Currency.GBP) {
- rate = rawModel.getBpi().getGBP().getRateFloat();
- } else {
- rate = rawModel.getBpi().getUSD().getRateFloat();
- }
-
- Map<String, Object> outMap = new HashMap<>();
- outMap.put("timestamp", timestamp);
- outMap.put("rate", rate);
-
- return outMap;
- }
-
- @Override
- public IPollingSettings getPollingInterval() {
- return PollingSettings.from(TimeUnit.SECONDS, 1);
- }
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/Currency.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/Currency.java
deleted file mode 100644
index 763b6a304e..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/Currency.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.coindesk;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public enum Currency {
- EUR,
- GBP,
- USD;
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/Bpi.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/Bpi.java
deleted file mode 100644
index b2bb23a49a..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/Bpi.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.coindesk.model;
-
-import com.google.gson.annotations.SerializedName;
-
-import jakarta.annotation.Generated;
-
-
-@Generated("net.hexar.json2pojo")
-@SuppressWarnings("unused")
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class Bpi {
-
- @SerializedName("EUR")
- private EUR mEUR;
- @SerializedName("GBP")
- private GBP mGBP;
- @SerializedName("USD")
- private USD mUSD;
-
- public EUR getEUR() {
- return mEUR;
- }
-
- public void setEUR(EUR eUR) {
- mEUR = eUR;
- }
-
- public GBP getGBP() {
- return mGBP;
- }
-
- public void setGBP(GBP gBP) {
- mGBP = gBP;
- }
-
- public USD getUSD() {
- return mUSD;
- }
-
- public void setUSD(USD uSD) {
- mUSD = uSD;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/CoindeskRawModel.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/CoindeskRawModel.java
deleted file mode 100644
index 717fe2ab08..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/CoindeskRawModel.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.coindesk.model;
-
-import com.google.gson.annotations.SerializedName;
-
-import jakarta.annotation.Generated;
-
-@Generated("net.hexar.json2pojo")
-@SuppressWarnings("unused")
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class CoindeskRawModel {
-
- @SerializedName("bpi")
- private Bpi mBpi;
- @SerializedName("chartName")
- private String mChartName;
- @SerializedName("disclaimer")
- private String mDisclaimer;
- @SerializedName("time")
- private Time mTime;
-
- public Bpi getBpi() {
- return mBpi;
- }
-
- public void setBpi(Bpi bpi) {
- mBpi = bpi;
- }
-
- public String getChartName() {
- return mChartName;
- }
-
- public void setChartName(String chartName) {
- mChartName = chartName;
- }
-
- public String getDisclaimer() {
- return mDisclaimer;
- }
-
- public void setDisclaimer(String disclaimer) {
- mDisclaimer = disclaimer;
- }
-
- public Time getTime() {
- return mTime;
- }
-
- public void setTime(Time time) {
- mTime = time;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/EUR.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/EUR.java
deleted file mode 100644
index 02742edd5f..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/EUR.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.coindesk.model;
-
-import com.google.gson.annotations.SerializedName;
-
-import jakarta.annotation.Generated;
-
-
-@Generated("net.hexar.json2pojo")
-@SuppressWarnings("unused")
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class EUR {
-
- @SerializedName("code")
- private String mCode;
- @SerializedName("description")
- private String mDescription;
- @SerializedName("rate")
- private String mRate;
- @SerializedName("rate_float")
- private Double mRateFloat;
- @SerializedName("symbol")
- private String mSymbol;
-
- public String getCode() {
- return mCode;
- }
-
- public void setCode(String code) {
- mCode = code;
- }
-
- public String getDescription() {
- return mDescription;
- }
-
- public void setDescription(String description) {
- mDescription = description;
- }
-
- public String getRate() {
- return mRate;
- }
-
- public void setRate(String rate) {
- mRate = rate;
- }
-
- public Double getRateFloat() {
- return mRateFloat;
- }
-
- public void setRateFloat(Double rateFloat) {
- mRateFloat = rateFloat;
- }
-
- public String getSymbol() {
- return mSymbol;
- }
-
- public void setSymbol(String symbol) {
- mSymbol = symbol;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/GBP.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/GBP.java
deleted file mode 100644
index dbb8ec6606..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/GBP.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.coindesk.model;
-
-import com.google.gson.annotations.SerializedName;
-
-import jakarta.annotation.Generated;
-
-@Generated("net.hexar.json2pojo")
-@SuppressWarnings("unused")
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class GBP {
-
- @SerializedName("code")
- private String mCode;
- @SerializedName("description")
- private String mDescription;
- @SerializedName("rate")
- private String mRate;
- @SerializedName("rate_float")
- private Double mRateFloat;
- @SerializedName("symbol")
- private String mSymbol;
-
- public String getCode() {
- return mCode;
- }
-
- public void setCode(String code) {
- mCode = code;
- }
-
- public String getDescription() {
- return mDescription;
- }
-
- public void setDescription(String description) {
- mDescription = description;
- }
-
- public String getRate() {
- return mRate;
- }
-
- public void setRate(String rate) {
- mRate = rate;
- }
-
- public Double getRateFloat() {
- return mRateFloat;
- }
-
- public void setRateFloat(Double rateFloat) {
- mRateFloat = rateFloat;
- }
-
- public String getSymbol() {
- return mSymbol;
- }
-
- public void setSymbol(String symbol) {
- mSymbol = symbol;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/Time.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/Time.java
deleted file mode 100644
index 41364e7818..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/Time.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.coindesk.model;
-
-import com.google.gson.annotations.SerializedName;
-
-import jakarta.annotation.Generated;
-
-@Generated("net.hexar.json2pojo")
-@SuppressWarnings("unused")
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class Time {
-
- @SerializedName("updated")
- private String mUpdated;
- @SerializedName("updatedISO")
- private String mUpdatedISO;
- @SerializedName("updateduk")
- private String mUpdateduk;
-
- public String getUpdated() {
- return mUpdated;
- }
-
- public void setUpdated(String updated) {
- mUpdated = updated;
- }
-
- public String getUpdatedISO() {
- return mUpdatedISO;
- }
-
- public void setUpdatedISO(String updatedISO) {
- mUpdatedISO = updatedISO;
- }
-
- public String getUpdateduk() {
- return mUpdateduk;
- }
-
- public void setUpdateduk(String updateduk) {
- mUpdateduk = updateduk;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/USD.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/USD.java
deleted file mode 100644
index 38f6b62ce7..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/coindesk/model/USD.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.coindesk.model;
-
-import com.google.gson.annotations.SerializedName;
-
-import jakarta.annotation.Generated;
-
-@Generated("net.hexar.json2pojo")
-@SuppressWarnings("unused")
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class USD {
-
- @SerializedName("code")
- private String mCode;
- @SerializedName("description")
- private String mDescription;
- @SerializedName("rate")
- private String mRate;
- @SerializedName("rate_float")
- private Double mRateFloat;
- @SerializedName("symbol")
- private String mSymbol;
-
- public String getCode() {
- return mCode;
- }
-
- public void setCode(String code) {
- mCode = code;
- }
-
- public String getDescription() {
- return mDescription;
- }
-
- public void setDescription(String description) {
- mDescription = description;
- }
-
- public String getRate() {
- return mRate;
- }
-
- public void setRate(String rate) {
- mRate = rate;
- }
-
- public Double getRateFloat() {
- return mRateFloat;
- }
-
- public void setRateFloat(Double rateFloat) {
- mRateFloat = rateFloat;
- }
-
- public String getSymbol() {
- return mSymbol;
- }
-
- public void setSymbol(String symbol) {
- mSymbol = symbol;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicMQTTAdapter.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicMQTTAdapter.java
deleted file mode 100644
index 56477fb6d5..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicMQTTAdapter.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.flic;
-
-import org.apache.streampipes.commons.exceptions.connect.AdapterException;
-import org.apache.streampipes.extensions.api.connect.IAdapterConfiguration;
-import org.apache.streampipes.extensions.api.connect.IEventCollector;
-import org.apache.streampipes.extensions.api.connect.StreamPipesAdapter;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterGuessSchemaContext;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterRuntimeContext;
-import
org.apache.streampipes.extensions.api.extractor.IAdapterParameterExtractor;
-import org.apache.streampipes.extensions.connectors.mqtt.shared.MqttConfig;
-import
org.apache.streampipes.extensions.connectors.mqtt.shared.MqttConnectUtils;
-import org.apache.streampipes.extensions.connectors.mqtt.shared.MqttConsumer;
-import org.apache.streampipes.messaging.InternalEventProcessor;
-import org.apache.streampipes.model.AdapterType;
-import org.apache.streampipes.model.connect.guess.GuessSchema;
-import org.apache.streampipes.sdk.builder.adapter.AdapterConfigurationBuilder;
-import org.apache.streampipes.sdk.helpers.Locales;
-import org.apache.streampipes.sdk.utils.Assets;
-
-import com.google.gson.Gson;
-
-import java.util.Map;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class FlicMQTTAdapter implements StreamPipesAdapter {
-
- private MqttConsumer mqttConsumer;
- private Thread thread;
-
- /**
- * A unique id to identify the adapter type
- */
- public static final String ID =
"org.apache.streampipes.connect.adapters.flic.mqtt";
-
- @Override
- public IAdapterConfiguration declareConfig() {
- return AdapterConfigurationBuilder.create(ID, FlicMQTTAdapter::new)
- .withLocales(Locales.EN)
- .withAssets(Assets.DOCUMENTATION, Assets.ICON)
- .withCategory(AdapterType.Energy)
- .requiredTextParameter(MqttConnectUtils.getBrokerUrlLabel())
- .requiredAlternatives(MqttConnectUtils.getAccessModeLabel(),
MqttConnectUtils.getAlternativesOne(),
- MqttConnectUtils.getAlternativesTwo())
- .requiredTextParameter(MqttConnectUtils.getTopicLabel())
- .buildConfiguration();
- }
-
- @Override
- public void onAdapterStarted(IAdapterParameterExtractor extractor,
- IEventCollector collector,
- IAdapterRuntimeContext adapterRuntimeContext)
throws AdapterException {
- MqttConfig mqttConfig =
MqttConnectUtils.getMqttConfig(extractor.getStaticPropertyExtractor());
- this.mqttConsumer = new MqttConsumer(mqttConfig, new
EventProcessor(collector));
-
- thread = new Thread(this.mqttConsumer);
- thread.start();
- }
-
- @Override
- public void onAdapterStopped(IAdapterParameterExtractor extractor,
- IAdapterRuntimeContext adapterRuntimeContext)
throws AdapterException {
- this.mqttConsumer.close();
- }
-
- @Override
- public GuessSchema onSchemaRequested(IAdapterParameterExtractor extractor,
- IAdapterGuessSchemaContext
adapterGuessSchemaContext) throws AdapterException {
- return FlicUtils.getFlicSchema();
- }
-
- private static class EventProcessor implements
InternalEventProcessor<byte[]> {
- private final Gson gson;
- private final IEventCollector collector;
-
- public EventProcessor(IEventCollector collector) {
- this.collector = collector;
- this.gson = new Gson();
- }
-
- @Override
- public void onEvent(byte[] payload) {
- String s = new String(payload);
- FlicOutput output = gson.fromJson(s, FlicOutput.class);
- Map<String, Object> event = FlicUtils.getEvent(output);
- collector.collect(event);
- }
- }
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicOutput.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicOutput.java
deleted file mode 100644
index 97c793fc07..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicOutput.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.flic;
-
-import com.google.gson.annotations.SerializedName;
-
-import jakarta.annotation.Generated;
-
-@Generated("net.hexar.json2pojo")
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class FlicOutput {
-
- @SerializedName("timestamp")
- private Long timestamp;
-
- @SerializedName("button_id")
- private String buttonID;
-
- @SerializedName("click_type")
- private String clickType;
-
- public Long getTimestamp() {
- return timestamp;
- }
-
- public void setTimestamp(Long timestamp) {
- this.timestamp = timestamp;
- }
-
- public String getButtonID() {
- return buttonID;
- }
-
- public void setButtonID(String buttonID) {
- this.buttonID = buttonID;
- }
-
- public String getClickType() {
- return clickType;
- }
-
- public void setClickType(float voltage) {
- this.clickType = clickType;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicUtils.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicUtils.java
deleted file mode 100644
index 3c10e4cd27..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/flic/FlicUtils.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.flic;
-
-import org.apache.streampipes.model.connect.guess.GuessSchema;
-import org.apache.streampipes.model.schema.EventProperty;
-import org.apache.streampipes.model.schema.EventSchema;
-import org.apache.streampipes.sdk.builder.PrimitivePropertyBuilder;
-import org.apache.streampipes.sdk.helpers.EpProperties;
-import org.apache.streampipes.sdk.utils.Datatypes;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class FlicUtils {
- public static final String TIMESTAMP_KEY = "timestamp";
- public static final String BUTTON_ID_KEY = "button_id";
- public static final String CLICK_TYPE_KEY = "click_type";
-
- public static GuessSchema getFlicSchema() {
-
- GuessSchema guessSchema = new GuessSchema();
-
- EventSchema eventSchema = new EventSchema();
- List<EventProperty> allProperties = new ArrayList<>();
-
- allProperties.add(EpProperties.timestampProperty(TIMESTAMP_KEY));
- allProperties.add(
- PrimitivePropertyBuilder
- .create(Datatypes.String, BUTTON_ID_KEY)
- .label("Button ID")
- .description("The ID of the button")
- .build());
- allProperties.add(
- PrimitivePropertyBuilder
- .create(Datatypes.String, CLICK_TYPE_KEY)
- .label("Click Type")
- .description("Type of the click")
- .build());
-
- eventSchema.setEventProperties(allProperties);
- guessSchema.setEventSchema(eventSchema);
- return guessSchema;
- }
-
- public static Map<String, Object> getEvent(FlicOutput output) {
- Map<String, Object> event = new HashMap<>();
-
- event.put(TIMESTAMP_KEY, output.getTimestamp());
- event.put(BUTTON_ID_KEY, output.getButtonID());
- event.put(CLICK_TYPE_KEY, output.getClickType());
- return event;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/slack/SlackAdapter.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/slack/SlackAdapter.java
deleted file mode 100644
index f88e562e52..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/slack/SlackAdapter.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.connect.adapters.slack;
-
-import org.apache.streampipes.extensions.api.connect.IAdapterConfiguration;
-import org.apache.streampipes.extensions.api.connect.IEventCollector;
-import org.apache.streampipes.extensions.api.connect.StreamPipesAdapter;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterGuessSchemaContext;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterRuntimeContext;
-import
org.apache.streampipes.extensions.api.extractor.IAdapterParameterExtractor;
-import org.apache.streampipes.model.AdapterType;
-import org.apache.streampipes.model.connect.guess.GuessSchema;
-import org.apache.streampipes.sdk.builder.adapter.AdapterConfigurationBuilder;
-import org.apache.streampipes.sdk.builder.adapter.GuessSchemaBuilder;
-import org.apache.streampipes.sdk.helpers.Labels;
-import org.apache.streampipes.sdk.helpers.Locales;
-import org.apache.streampipes.sdk.utils.Assets;
-import org.apache.streampipes.vocabulary.SO;
-
-import static org.apache.streampipes.sdk.helpers.EpProperties.stringEp;
-import static
org.apache.streampipes.sdk.helpers.EpProperties.timestampProperty;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class SlackAdapter implements StreamPipesAdapter {
-
- public static final String ID =
"org.apache.streampipes.connect.adapters.slack";
-
- private static final String SlackToken = "slack-token";
- private static final String Timestamp = "timestamp";
- private static final String Message = "message";
- private static final String Author = "author";
- private static final String Channel = "channel";
-
- private Thread thread;
- private SlackConsumer consumer;
-
- @Override
- public IAdapterConfiguration declareConfig() {
- return AdapterConfigurationBuilder.create(ID, SlackAdapter::new)
- .withAssets(Assets.DOCUMENTATION, Assets.ICON)
- .withLocales(Locales.EN)
- .withCategory(AdapterType.SocialMedia)
- .requiredTextParameter(Labels.withId(SlackToken))
- .buildConfiguration();
- }
-
- @Override
- public void onAdapterStarted(IAdapterParameterExtractor extractor,
- IEventCollector collector,
- IAdapterRuntimeContext adapterRuntimeContext) {
- String slackApiToken =
extractor.getStaticPropertyExtractor().singleValueParameter(SlackToken,
String.class);
- this.consumer = new SlackConsumer(collector, slackApiToken);
- this.thread = new Thread(consumer);
- this.thread.start();
- }
-
- @Override
- public void onAdapterStopped(IAdapterParameterExtractor extractor,
- IAdapterRuntimeContext adapterRuntimeContext) {
- this.consumer.stop();
- this.thread.stop();
- }
-
- @Override
- public GuessSchema onSchemaRequested(IAdapterParameterExtractor extractor,
- IAdapterGuessSchemaContext
adapterGuessSchemaContext) {
- return GuessSchemaBuilder.create()
- .property(timestampProperty(Timestamp))
- .property(stringEp(Labels.from(Author, "Author", "The username of the
sender of the "
- + "Slack message"),
- Author, SO.TEXT))
- .property(stringEp(Labels.from(Channel, "Channel", "The Slack
channel"), Channel,
- SO.TEXT))
- .property(stringEp(Labels.from(Message, "Message", "The Slack
message"),
- Message, SO.TEXT))
- .build();
- }
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/slack/SlackConsumer.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/slack/SlackConsumer.java
deleted file mode 100644
index b553eca4d3..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/slack/SlackConsumer.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.connect.adapters.slack;
-
-import org.apache.streampipes.extensions.api.connect.IEventCollector;
-
-import com.ullink.slack.simpleslackapi.SlackSession;
-import com.ullink.slack.simpleslackapi.SlackUser;
-import com.ullink.slack.simpleslackapi.impl.SlackSessionFactory;
-import com.ullink.slack.simpleslackapi.listeners.SlackMessagePostedListener;
-
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class SlackConsumer implements Runnable {
-
- private final IEventCollector collector;
- private final String apiToken;
- private SlackSession session;
-
- public SlackConsumer(IEventCollector collector,
- String slackApiToken) {
- this.collector = collector;
- this.apiToken = slackApiToken;
- }
-
- public void run() {
- SlackMessagePostedListener messagePostedListener = (event, session) -> {
- String botName = session.sessionPersona().getUserName();
- String channelOnWhichMessageWasPosted = event.getChannel().getName();
- String messageContent = event.getMessageContent();
- SlackUser messageSender = event.getSender();
-
- if (!messageSender.getUserName().equals(botName)) {
- Map<String, Object> outEvent = new HashMap<>();
- outEvent.put("timestamp", System.currentTimeMillis());
- outEvent.put("channel", channelOnWhichMessageWasPosted);
- outEvent.put("author", messageSender.getUserName());
- outEvent.put("message", messageContent);
-
- collector.collect(outEvent);
- }
- };
-
- this.session = SlackSessionFactory.createWebSocketSlackSession(apiToken);
- try {
- this.session.connect();
- } catch (IOException e) {
- e.printStackTrace();
- }
- this.session.addMessagePostedListener(messagePostedListener);
- }
-
- public void stop() {
- try {
- this.session.disconnect();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
-}
-
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/ti/TISensorTag.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/ti/TISensorTag.java
deleted file mode 100644
index 8cc6002fca..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/ti/TISensorTag.java
+++ /dev/null
@@ -1,180 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.connect.adapters.ti;
-
-import org.apache.streampipes.extensions.api.connect.IAdapterConfiguration;
-import org.apache.streampipes.extensions.api.connect.IEventCollector;
-import org.apache.streampipes.extensions.api.connect.StreamPipesAdapter;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterGuessSchemaContext;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterRuntimeContext;
-import
org.apache.streampipes.extensions.api.extractor.IAdapterParameterExtractor;
-import org.apache.streampipes.extensions.connectors.mqtt.shared.MqttConfig;
-import
org.apache.streampipes.extensions.connectors.mqtt.shared.MqttConnectUtils;
-import org.apache.streampipes.extensions.connectors.mqtt.shared.MqttConsumer;
-import org.apache.streampipes.messaging.InternalEventProcessor;
-import org.apache.streampipes.model.AdapterType;
-import org.apache.streampipes.model.connect.guess.GuessSchema;
-import org.apache.streampipes.sdk.builder.adapter.AdapterConfigurationBuilder;
-import org.apache.streampipes.sdk.builder.adapter.GuessSchemaBuilder;
-import org.apache.streampipes.sdk.helpers.Labels;
-import org.apache.streampipes.sdk.helpers.Locales;
-import org.apache.streampipes.sdk.utils.Assets;
-import org.apache.streampipes.vocabulary.SO;
-import org.apache.streampipes.vocabulary.SPSensor;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import static org.apache.streampipes.sdk.helpers.EpProperties.booleanEp;
-import static org.apache.streampipes.sdk.helpers.EpProperties.doubleEp;
-import static
org.apache.streampipes.sdk.helpers.EpProperties.timestampProperty;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class TISensorTag implements StreamPipesAdapter {
-
- public static final String ID = "org.apache.streampipes.connect.adapters.ti";
-
- private static final String TIMESTAMP = "timestamp";
- private static final String AMBIENT_TEMP = "ambientTemp";
- private static final String OBJECT_TEMP = "objectTemp";
- private static final String HUMIDITY = "humidity";
- private static final String ACCELERATION_X = "accelX";
- private static final String ACCELERATION_Y = "accelY";
- private static final String ACCELERATION_Z = "accelZ";
- private static final String GYROSCOPE_X = "gyroX";
- private static final String GYROSCOPE_Y = "gyroY";
- private static final String GYROSCOPE_Z = "gyroZ";
- private static final String MAGNETOMETER_X = "magX";
- private static final String MAGNETOMETER_Y = "magY";
- private static final String MAGNETOMETER_Z = "magZ";
- private static final String LIGHT = "light";
- private static final String KEY_1 = "key1";
- private static final String KEY_2 = "key2";
- private MqttConsumer mqttConsumer;
-
- @Override
- public IAdapterConfiguration declareConfig() {
- return AdapterConfigurationBuilder.create(ID, TISensorTag::new)
- .withLocales(Locales.EN)
- .withAssets(Assets.DOCUMENTATION, Assets.ICON)
- .withCategory(AdapterType.Environment, AdapterType.OpenData)
- .requiredTextParameter(MqttConnectUtils.getBrokerUrlLabel())
- .requiredAlternatives(MqttConnectUtils.getAccessModeLabel(),
MqttConnectUtils.getAlternativesOne(),
- MqttConnectUtils.getAlternativesTwo())
- .requiredTextParameter(MqttConnectUtils.getTopicLabel())
- .buildConfiguration();
- }
-
- @Override
- public void onAdapterStarted(IAdapterParameterExtractor extractor,
- IEventCollector collector,
- IAdapterRuntimeContext adapterRuntimeContext) {
- MqttConfig mqttConfig =
MqttConnectUtils.getMqttConfig(extractor.getStaticPropertyExtractor());
-
- this.mqttConsumer = new MqttConsumer(mqttConfig, new
EventProcessor(collector));
-
- Thread thread = new Thread(this.mqttConsumer);
- thread.start();
- }
-
- @Override
- public void onAdapterStopped(IAdapterParameterExtractor extractor,
- IAdapterRuntimeContext adapterRuntimeContext) {
- this.mqttConsumer.close();
- }
-
- @Override
- public GuessSchema onSchemaRequested(IAdapterParameterExtractor extractor,
- IAdapterGuessSchemaContext
adapterGuessSchemaContext) {
- return GuessSchemaBuilder.create()
- .property(timestampProperty(TIMESTAMP))
- .property(doubleEp(Labels.from(AMBIENT_TEMP, "Ambient Temperature",
""),
- AMBIENT_TEMP, SO.NUMBER))
- .property(doubleEp(Labels.from(OBJECT_TEMP, "Object Temperature", ""),
- OBJECT_TEMP, SO.NUMBER))
- .property(doubleEp(Labels.from(HUMIDITY, "Humidity", ""),
- HUMIDITY, SO.NUMBER))
- .property(doubleEp(Labels.from(ACCELERATION_X, "Acceleration X", ""),
- ACCELERATION_X, SPSensor.ACCELERATION_X))
- .property(doubleEp(Labels.from(ACCELERATION_Y, "Acceleration Y", ""),
- ACCELERATION_Y, SPSensor.ACCELERATION_Y))
- .property(doubleEp(Labels.from(ACCELERATION_Z, "Acceleration Z", ""),
- ACCELERATION_Z, SPSensor.ACCELERATION_Z))
- .property(doubleEp(Labels.from(GYROSCOPE_X, "Gyroscope X", ""),
- GYROSCOPE_X, SO.NUMBER))
- .property(doubleEp(Labels.from(GYROSCOPE_Y, "Gyroscope Y", ""),
- GYROSCOPE_Y, SO.NUMBER))
- .property(doubleEp(Labels.from(GYROSCOPE_Z, "Gyroscope Z", ""),
- GYROSCOPE_Z, SO.NUMBER))
- .property(doubleEp(Labels.from(MAGNETOMETER_X, "Magnetometer X", ""),
- MAGNETOMETER_X, SO.NUMBER))
- .property(doubleEp(Labels.from(MAGNETOMETER_Y, "Magnetometer Y", ""),
- MAGNETOMETER_Y, SO.NUMBER))
- .property(doubleEp(Labels.from(MAGNETOMETER_Z, "Magnetometer Z", ""),
- MAGNETOMETER_Z, SO.NUMBER))
- .property(doubleEp(Labels.from(LIGHT, "Light", ""),
- LIGHT, SO.NUMBER))
- .property(booleanEp(Labels.from(KEY_1, "Key 1", ""),
- KEY_1, SO.BOOLEAN))
- .property(booleanEp(Labels.from(KEY_2, "Key 2", ""),
- KEY_2, SO.BOOLEAN))
- .build();
- }
-
- private record EventProcessor(IEventCollector collector) implements
InternalEventProcessor<byte[]> {
- @Override
- public void onEvent(byte[] payload) {
- Map<String, Object> result = parseEvent(new String(payload));
- collector.collect(result);
- }
- }
-
- /**
- * This specific parser is required since the messages on mqtt produced by
the app is not always valid JSON
- *
- * @param s raw event from the sensor
- * @return Map representing an event
- */
- public static Map<String, Object> parseEvent(String s) {
- Map<String, Object> result = new HashMap<>();
- String[] lines = s.split("\n");
- for (String line : lines) {
- if (line.startsWith("\"")) {
- line = line.replaceAll(",", "").replaceAll("\"", "");
- String[] keyValue = line.split(":");
-
- // convert keys to boolean, other sensor values are doubles
- if (keyValue[0].startsWith("key")) {
- result.put(keyValue[0], Double.parseDouble(keyValue[1]) == 1.0);
- } else {
- result.put(keyValue[0], Double.parseDouble(keyValue[1]));
- }
- }
- }
-
- if (!result.containsKey("key1") || !result.containsKey("key2")) {
- result.put("key1", false);
- result.put("key2", false);
- }
-
- result.put(TIMESTAMP, System.currentTimeMillis());
-
- return result;
- }
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaAdapter.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaAdapter.java
deleted file mode 100644
index c1d158b72a..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaAdapter.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.connect.adapters.wikipedia;
-
-import org.apache.streampipes.connect.adapters.wikipedia.model.WikipediaModel;
-import org.apache.streampipes.extensions.api.connect.IEventCollector;
-import org.apache.streampipes.extensions.api.connect.StreamPipesAdapter;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterGuessSchemaContext;
-import
org.apache.streampipes.extensions.api.connect.context.IAdapterRuntimeContext;
-import
org.apache.streampipes.extensions.api.extractor.IAdapterParameterExtractor;
-import org.apache.streampipes.model.connect.guess.GuessSchema;
-import org.apache.streampipes.sdk.builder.adapter.GuessSchemaBuilder;
-import org.apache.streampipes.sdk.helpers.Labels;
-
-import com.google.gson.Gson;
-
-import static org.apache.streampipes.sdk.helpers.EpProperties.booleanEp;
-import static org.apache.streampipes.sdk.helpers.EpProperties.integerEp;
-import static org.apache.streampipes.sdk.helpers.EpProperties.longEp;
-import static org.apache.streampipes.sdk.helpers.EpProperties.stringEp;
-import static
org.apache.streampipes.sdk.helpers.EpProperties.timestampProperty;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public abstract class WikipediaAdapter implements StreamPipesAdapter {
-
- public static final String TIMESTAMP = "timestamp";
- public static final String TYPE = "type";
- public static final String EVENT_ID = "id";
- public static final String NAMESPACE = "namespace";
- public static final String TITLE = "title";
- public static final String USER = "user";
- public static final String BOT = "bot";
- public static final String MINOR = "minor";
- public static final String OLDLENGTH = "oldlength";
- public static final String NEWLENGTH = "newlength";
- public static final String OLDREVISION = "oldrevision";
- public static final String NEWREVISION = "newrevision";
- public static final String SERVERURL = "serverurl";
- public static final String SERVERNAME = "servername";
- public static final String WIKI = "wiki";
- public static final String URI = "uri";
- public static final String COMMENT = "comment";
- public static final String DOMAIN = "domain";
-
- private static final String VocabPrefix = "http://wikipedia.org/";
- private static final String WikipediaApiUrl = "https://stream.wikimedia"
- + ".org/v2/stream/recentchange";
-
- private final String type;
- private WikipediaSseConsumer consumer;
-
- public WikipediaAdapter(String type) {
- this.type = type;
- }
-
- public String dp(String domainPropertyName) {
- return VocabPrefix + domainPropertyName;
- }
-
- @Override
- public void onAdapterStarted(IAdapterParameterExtractor extractor,
- IEventCollector collector,
- IAdapterRuntimeContext adapterRuntimeContext) {
- Gson gson = new Gson();
- Runnable runnable = () -> {
- this.consumer = new WikipediaSseConsumer();
- try {
- this.consumer.consumeEventStream(WikipediaApiUrl,
- event -> {
- WikipediaModel wikipediaModel = gson.fromJson(event,
WikipediaModel.class);
- if (wikipediaModel != null && wikipediaModel.getType() != null) {
- if (wikipediaModel.getType().equals(type)) {
- collector.collect(new
WikipediaModelConverter(wikipediaModel).makeMap());
- }
- }
- });
- } catch (Exception e) {
- e.printStackTrace();
- }
- };
-
- Thread thread = new Thread(runnable);
- thread.start();
- }
-
- @Override
- public void onAdapterStopped(IAdapterParameterExtractor extractor,
- IAdapterRuntimeContext adapterRuntimeContext) {
-
- }
-
- @Override
- public GuessSchema onSchemaRequested(IAdapterParameterExtractor extractor,
- IAdapterGuessSchemaContext
adapterGuessSchemaContext) {
- return GuessSchemaBuilder.create()
- .property(timestampProperty(TIMESTAMP))
- .property(stringEp(Labels.from(EVENT_ID, "ID", ""), EVENT_ID,
dp(EVENT_ID)))
- .property(stringEp(Labels.from(TYPE, "Type", "The change type
(edit|new)"),
- TYPE, dp(TYPE)))
- .property(integerEp(Labels.from(NAMESPACE, "Namespace",
- "The Wikipedia namespace"), NAMESPACE, dp(NAMESPACE)))
- .property(stringEp(Labels.from(TITLE, "Title", "The article title"),
- TITLE, dp(TITLE)))
- .property(stringEp(Labels.from(USER, "User", "The user ID"),
- USER, dp(USER)))
- .property(booleanEp(Labels.from(BOT, "Bot", "Edited by a bot"),
- BOT, dp(BOT)))
- .property(booleanEp(Labels.from(MINOR, "Minor", "Minor edit"),
- MINOR, dp(MINOR)))
- .property(integerEp(Labels.from(OLDLENGTH, "Old length", ""),
- OLDLENGTH, dp(OLDLENGTH)))
- .property(integerEp(Labels.from(NEWLENGTH, "New length", ""),
- NEWLENGTH, dp(NEWLENGTH)))
- .property(longEp(Labels.from(OLDREVISION, "Old revision ID", ""),
- OLDREVISION, dp(OLDREVISION)))
- .property(longEp(Labels.from(NEWREVISION, "New revision ID", ""),
- NEWREVISION, dp(NEWREVISION)))
- .property(stringEp(Labels.from(SERVERURL, "Server URL", ""),
- SERVERURL, dp(SERVERURL)))
- .property(stringEp(Labels.from(SERVERNAME, "Server Name", ""),
- SERVERNAME, dp(SERVERNAME)))
- .property(stringEp(Labels.from(WIKI, "Wiki Name", ""),
- WIKI, dp(WIKI)))
- .property(stringEp(Labels.from(URI, "Internal URI", ""),
- URI, dp(URI)))
- .property(stringEp(Labels.from(COMMENT, "Comment", "Comment field"),
- COMMENT, dp(COMMENT)))
- .property(stringEp(Labels.from(DOMAIN, "Domain", "Wiki Domain"),
- DOMAIN, dp(DOMAIN)))
- .build();
- }
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaEditedArticlesAdapter.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaEditedArticlesAdapter.java
deleted file mode 100644
index eedfebca44..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaEditedArticlesAdapter.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.connect.adapters.wikipedia;
-
-import org.apache.streampipes.extensions.api.connect.IAdapterConfiguration;
-import org.apache.streampipes.model.AdapterType;
-import org.apache.streampipes.sdk.builder.adapter.AdapterConfigurationBuilder;
-import org.apache.streampipes.sdk.helpers.Locales;
-import org.apache.streampipes.sdk.utils.Assets;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class WikipediaEditedArticlesAdapter extends WikipediaAdapter {
-
- public static final String ID =
"org.apache.streampipes.connect.adapters.wikipedia.edit";
-
- private static final String Type = "edit";
-
- public WikipediaEditedArticlesAdapter() {
- super(Type);
- }
-
- @Override
- public IAdapterConfiguration declareConfig() {
- return AdapterConfigurationBuilder.create(ID,
WikipediaEditedArticlesAdapter::new)
- .withLocales(Locales.EN)
- .withAssets(Assets.DOCUMENTATION, Assets.ICON)
- .withCategory(AdapterType.SocialMedia, AdapterType.OpenData)
- .buildConfiguration();
- }
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaModelConverter.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaModelConverter.java
deleted file mode 100644
index 1ddcfd617c..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaModelConverter.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.connect.adapters.wikipedia;
-
-import org.apache.streampipes.connect.adapters.wikipedia.model.WikipediaModel;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.BOT;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.EVENT_ID;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.MINOR;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.NAMESPACE;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.NEWLENGTH;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.NEWREVISION;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.OLDLENGTH;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.OLDREVISION;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.SERVERNAME;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.SERVERURL;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.TIMESTAMP;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.TITLE;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.TYPE;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.URI;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.USER;
-import static
org.apache.streampipes.connect.adapters.wikipedia.WikipediaAdapter.WIKI;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class WikipediaModelConverter {
-
- private final WikipediaModel wikipediaModel;
-
- public WikipediaModelConverter(WikipediaModel wikipediaModel) {
- this.wikipediaModel = wikipediaModel;
- }
-
- public Map<String, Object> makeMap() {
- Map<String, Object> event = new HashMap<>();
- event.put(TIMESTAMP, wikipediaModel.getTimestamp());
- event.put(TYPE, wikipediaModel.getType());
- event.put(EVENT_ID, wikipediaModel.getId());
- event.put(NAMESPACE, wikipediaModel.getNamespace());
- event.put(TITLE, wikipediaModel.getTitle());
- event.put(USER, wikipediaModel.getUser());
- event.put(BOT, wikipediaModel.getBot());
- event.put(MINOR, wikipediaModel.getMinor());
- event.put(OLDLENGTH, wikipediaModel.getLength().getOld());
- event.put(NEWLENGTH, wikipediaModel.getLength().getNew());
- event.put(OLDREVISION, wikipediaModel.getRevision().getOld());
- event.put(NEWREVISION, wikipediaModel.getRevision().getNew());
- event.put(SERVERURL, wikipediaModel.getServerUrl());
- event.put(SERVERNAME, wikipediaModel.getServerName());
- event.put(WIKI, wikipediaModel.getWiki());
- event.put(URI, wikipediaModel.getMeta().getUri());
-
- return event;
- }
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaNewArticlesAdapter.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaNewArticlesAdapter.java
deleted file mode 100644
index 99d40fe307..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaNewArticlesAdapter.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.connect.adapters.wikipedia;
-
-import org.apache.streampipes.extensions.api.connect.IAdapterConfiguration;
-import org.apache.streampipes.model.AdapterType;
-import org.apache.streampipes.sdk.builder.adapter.AdapterConfigurationBuilder;
-import org.apache.streampipes.sdk.helpers.Locales;
-import org.apache.streampipes.sdk.utils.Assets;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class WikipediaNewArticlesAdapter extends WikipediaAdapter {
-
- public static final String ID =
"org.apache.streampipes.connect.adapters.wikipedia.new";
-
- private static final String Type = "new";
-
- public WikipediaNewArticlesAdapter() {
- super(Type);
- }
-
- @Override
- public IAdapterConfiguration declareConfig() {
- return AdapterConfigurationBuilder.create(ID,
WikipediaNewArticlesAdapter::new)
- .withAssets(Assets.DOCUMENTATION, Assets.ICON)
- .withLocales(Locales.EN)
- .withCategory(AdapterType.SocialMedia, AdapterType.OpenData)
- .buildConfiguration();
- }
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaSseConsumer.java
b/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaSseConsumer.java
deleted file mode 100644
index 75ecf4cc67..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/wikipedia/WikipediaSseConsumer.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.connect.adapters.wikipedia;
-
-import org.apache.streampipes.extensions.api.connect.AdapterOutputCollector;
-
-import org.glassfish.jersey.media.sse.EventInput;
-import org.glassfish.jersey.media.sse.InboundEvent;
-import org.glassfish.jersey.media.sse.SseFeature;
-
-import jakarta.ws.rs.client.Client;
-import jakarta.ws.rs.client.ClientBuilder;
-import jakarta.ws.rs.client.WebTarget;
-
-@Deprecated(since = "0.93.0", forRemoval = true)
-public class WikipediaSseConsumer {
-
- private Boolean running = true;
-
- public void consumeEventStream(String url, AdapterOutputCollector consumer)
throws Exception {
- Client client = ClientBuilder.newBuilder().register(new
SseFeature()).build();
- WebTarget target = client.target(url);
- EventInput e = null;
- while (running) {
- Thread.sleep(100);
- if (e == null || e.isClosed()) {
- // (re)connect
- e = target.request().get(EventInput.class);
- e.setChunkType("text/event-stream");
- }
-
- final InboundEvent inboundEvent = e.read();
- if (inboundEvent == null) {
- break;
- } else {
- String data = inboundEvent.readData();
- consumer.onEvent(data);
- }
- }
- }
-
- public void stop() {
- this.running = false;
- }
-
-}
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/documentation.md
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/documentation.md
deleted file mode 100644
index 986577bd10..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/documentation.md
+++ /dev/null
@@ -1,38 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- ~
- -->
-
-## Coindesk Bitcoin Price
-
-<p align="center">
- <img src="icon.png" width="150px;" class="pe-image-documentation"/>
-</p>
-
-***
-
-## Description
-This adapter continuously provides the current bitcoin price from the Coindesk
API.
-
-## Configuration
-
-### Currency
-
-The current in which the price should be provided.
-
-
-***
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/icon.png
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/icon.png
deleted file mode 100644
index 420be616d5..0000000000
Binary files
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/icon.png
and /dev/null differ
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/strings.en
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/strings.en
deleted file mode 100644
index 607c18bdd1..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.coindesk/strings.en
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-org.apache.streampipes.connect.adapters.coindesk.title=Coindesk Bitcoin Price
-org.apache.streampipes.connect.adapters.coindesk.description=The current
bitcoin price from the Coindesk API.
-
-currency.title=Currency
-currency.description=The currency of the bitcoin rate
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/documentation.md
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/documentation.md
deleted file mode 100644
index 3f58fde0eb..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/documentation.md
+++ /dev/null
@@ -1,53 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- ~
- -->
-
-## Flic MQTT Adapter
-
-<p align="center">
- <img src="icon.png" width="150px;" class="pe-image-documentation"/>
-</p>
-
-***
-
-## Description
-
-Connect Flic Smart Button over MQTT
-
-***
-
-## Required input
-
-This adapter uses the MQTT protocol and requires the data in following
exemplary JSON format:
-{ "timestamp": 1584973344615, "click_type": SINGLE, "button_id": button1 }.
-***
-
-## Configuration
-
-### Broker URL
-
-Example: tcp://test-server.com:1883 (Protocol required. Port required)
-
-### Access Mode
-
-The user can choose between unauthenticated or authenticated access.
-
-### TOPIC
-The topic the MQTT broker publishes to.
-
-## Output
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/icon.png
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/icon.png
deleted file mode 100644
index 416bfb8639..0000000000
Binary files
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/icon.png
and /dev/null differ
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/strings.en
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/strings.en
deleted file mode 100644
index 50e044f189..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.flic.mqtt/strings.en
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-org.apache.streampipes.connect.adapters.flic.mqtt.title= Flic MQTT
-org.apache.streampipes.connect.adapters.flic.mqtt.description= Connect a Flic
Smart Button over MQTT
-
-access-mode.title=Access Mode
-access-mode.description=
-
-anonymous-alternative.title=Unauthenticated
-anonymous-alternative.description=
-
-username-alternative.title=Username/Password
-username-alternative.description=
-
-username-group.title=User Group
-username-group.description=
-
-username.title=Username
-username.description=
-
-password.title=Password
-password.description=
-
-broker_url.title=Broker URL
-broker_url.description=Example: tcp://test-server.com:1883 (Protocol required.
Port required)"
-
-topic.title=Topic
-topic.description=Example: test/topic
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/documentation.md
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/documentation.md
deleted file mode 100644
index 0220bae671..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/documentation.md
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- ~
- -->
-
-## Random Data Simulator (Stream)
-
-<p align="center">
- <img src="icon.png" width="150px;" class="pe-image-documentation"/>
-</p>
-
-***
-
-## Description
-
-Publishes a continuous stream of random events
-
-
-***
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/icon.png
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/icon.png
deleted file mode 100644
index 05cc7c3a9b..0000000000
Binary files
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/icon.png
and /dev/null differ
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/strings.en
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/strings.en
deleted file mode 100644
index f472c08345..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.simulator.randomdatastream/strings.en
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-
-org.apache.streampipes.connect.adapters.simulator.randomdatastream.title=Random
Data Simulator (Stream)
-org.apache.streampipes.connect.adapters.simulator.randomdatastream.description=Publishes
a continuous stream of random events
-
-
-wait-time-ms.title=Wait Time (MS)
-wait-time-ms.description=The time to wait between two events in milliseconds"
\ No newline at end of file
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/documentation.md
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/documentation.md
deleted file mode 100644
index b9b33c587c..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/documentation.md
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- ~
- -->
-
-## Slack
-
-<p align="center">
- <img src="icon.png" width="150px;" class="pe-image-documentation"/>
-</p>
-
-***
-
-## Description
-
-Subscribes to a Slack channel
-
-
-***
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/icon.png
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/icon.png
deleted file mode 100644
index 4a862730ea..0000000000
Binary files
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/icon.png
and /dev/null differ
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/strings.en
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/strings.en
deleted file mode 100644
index f4b730420e..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.slack/strings.en
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-
-org.apache.streampipes.connect.adapters.slack.title=Slack
-org.apache.streampipes.connect.adapters.slack.description=Subscribes to a
Slack channel
-
-
-slack-token.title=Slack API Token
-slack-token.description=The API token of your Slack workspace
\ No newline at end of file
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/documentation.md
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/documentation.md
deleted file mode 100644
index a25a03a8bd..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/documentation.md
+++ /dev/null
@@ -1,51 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- ~
- -->
-
-## TI Sensor Tag
-
-<p align="center">
- <img src="icon.png" width="150px;" class="pe-image-documentation"/>
-</p>
-
-***
-
-## Description
-
-Consumes messages from a broker using the MQTT protocol
-
-
-***
-
-## Configuration
-
-Describe the configuration parameters here
-
-### Broker Url
-
-Example: tcp://test-server.com:1883 (Protocol required. Port required)"
-
-### Topic
-
-Example: test/topic
-
-### Access Mode
-
-Unauthenticated or Authenticated (Username/Password)
-
-## Output
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/icon.png
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/icon.png
deleted file mode 100644
index 06c06f9272..0000000000
Binary files
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/icon.png
and /dev/null differ
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/strings.en
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/strings.en
deleted file mode 100644
index 5eeedf6cd5..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.ti/strings.en
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-
-org.apache.streampipes.connect.adapters.ti.title=TI Sensor Tag
-org.apache.streampipes.connect.adapters.ti.mqttdescription=
-
-access-mode.title=Access Mode
-access-mode.description=
-
-anonymous-alternative.title=Unauthenticated
-anonymous-alternative.description=
-
-username-alternative.title=Username/Password
-username-alternative.description=
-
-username-group.title=User Group
-username-group.description=
-
-username.title=Username
-username.description=
-
-password.title=Password
-password.description=
-
-broker_url.title=Broker URL
-broker_url.description=Example: tcp://test-server.com:1883 (Protocol required.
Port required)"
-
-topic.title=Topic
-topic.description=Example: test/topic
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/documentation.md
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/documentation.md
deleted file mode 100644
index 26353e49a7..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/documentation.md
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- ~
- -->
-
-## Wikipedia Edits
-
-<p align="center">
- <img src="icon.png" width="150px;" class="pe-image-documentation"/>
-</p>
-
-***
-
-## Description
-
-Continuously publishes recent Wikipedia edits
-
-
-***
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/icon.png
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/icon.png
deleted file mode 100644
index 46112dc66d..0000000000
Binary files
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/icon.png
and /dev/null differ
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/strings.en
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/strings.en
deleted file mode 100644
index 7285eeaf70..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.edit/strings.en
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-org.apache.streampipes.connect.adapters.wikipedia.edit.title=Wikipedia Edits
-org.apache.streampipes.connect.adapters.wikipedia.edit.description=Continuously
publishes recent Wikipedia edits
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/documentation.md
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/documentation.md
deleted file mode 100644
index 948d3cd17b..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/documentation.md
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one or more
- ~ contributor license agreements. See the NOTICE file distributed with
- ~ this work for additional information regarding copyright ownership.
- ~ The ASF licenses this file to You under the Apache License, Version 2.0
- ~ (the "License"); you may not use this file except in compliance with
- ~ the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
- ~
- -->
-
-## Wikipedia New Articles
-
-<p align="center">
- <img src="icon.png" width="150px;" class="pe-image-documentation"/>
-</p>
-
-***
-
-## Description
-
-Continuously publishes articles created on Wikipedia
-
-
-***
-
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/icon.png
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/icon.png
deleted file mode 100644
index 46112dc66d..0000000000
Binary files
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/icon.png
and /dev/null differ
diff --git
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/strings.en
b/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/strings.en
deleted file mode 100644
index 8d995bfa49..0000000000
---
a/streampipes-extensions/streampipes-connect-adapters/src/main/resources/org.apache.streampipes.connect.adapters.wikipedia.new/strings.en
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-
-org.apache.streampipes.connect.adapters.wikipedia.new.title=Wikipedia New
Articles
-org.apache.streampipes.connect.adapters.wikipedia.new.description=Continuously
publishes articles created on Wikipedia
-