<commit_before>SensorThingsClient
==================

This is a client library to connect java applications to servers providing a [SensorThingsAPI](https://github.com/opengeospatial/sensorthings) service.

## Features

* CRUD operations
* Queries on entity sets
* Loading of referenced entities

## Unsupported

* Batch requests
* *$select*
* MultiDatastream
* dataArray
* MQTT

## Build

SensorThingsClient is built with maven.

```bash
mvn install
```

## Installation

At the moment, there is no centralized maven repository which serves SensorThingsClient, therefore you need a copy a local copy of the library. Put this into your pom.xml:

```xml
<dependency>
	<groupId>de.fraunhofer.iosb.ilt</groupId>
	<artifactId>SensorThingsClient</artifactId>
	<version>0.0.1-SNAPSHOT</version>
</dependency>
```

## API

The `SensorThingsService` class is central to the library. An instantiation of it represents a SensorThings service and is identified by an URI.

### CRUD operations

The source code below demonstrates the CRUD operations for Thing objects. Operations for other entities work similarily.

```java
URI serviceEndpoint = URI.create("http://example.org/v1.0/");
SensorThingsService service = new SensorThingsService(serviceEndpoint);
```

```java
Thing thing = new Thing();
thing.setDescription("I'm a thing!");
service.things().create(thing);
<commit_msg>Fix typo in README.md<commit_after>SensorThingsClient
==================

This is a client library to connect java applications to servers providing a [SensorThingsAPI](https://github.com/opengeospatial/sensorthings) service.

## Features

* CRUD operations
* Queries on entity sets
* Loading of referenced entities

## Unsupported

* Batch requests
* *$select*
* MultiDatastream
* dataArray
* MQTT

## Build

SensorThingsClient is built with maven.

```bash
mvn install
```

## Installation

At the moment, there is no centralized maven repository which serves SensorThingsClient, therefore you need a copy a local copy of the library. Put this into your pom.xml:

```xml
<dependency>
	<groupId>de.fraunhofer.iosb.ilt</groupId>
	<artifactId>SensorThingsClient</artifactId>
	<version>0.0.1-SNAPSHOT</version>
</dependency>
```

## API

The `SensorThingsService` class is central to the library. An instantiation of it represents a SensorThings service and is identified by an URI.

### CRUD operations

The source code below demonstrates the CRUD operations for Thing objects. Operations for other entities work similarly.

```java
URI serviceEndpoint = URI.create("http://example.org/v1.0/");
SensorThingsService service = new SensorThingsService(serviceEndpoint);
```

```java
Thing thing = new Thing();
thing.setDescription("I'm a thing!");
service.things().create(thing);

{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.0036429872495446266, 'mean_word_length': 5.430913348946135, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5460953', 'n_tokens_mistral': 837, 'n_tokens_neox': 776, 'n_words': 277}