Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed Nov 10, 2022
2 parents c0a5b1d + 3e891ae commit 78eaba9
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 25 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# JOPA - Release Notes

## 0.19.2 - 2022-11-10
- Fix issues in working with `LocalTime` values.

## 0.19.1 - 2022-11-08
- Fix issues in working with `BigInteger` and `BigDecimal` values.
- Fix a warning about illegal reflective operations on newer JDKs.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ This means that when you add an instance of some class during a transaction and
transaction), you'll see the newly added instance as well. This is a feature not usually seen even in large triple stores.

There are some limitations to this approach. Currently, pending changes are not taken into account when doing inference.
Also, the current version of Sesame OntoDriver is not able to include pending changes into results of SPARQL queries.
Also, the current version of RDF4J OntoDriver is not able to include pending changes into results of SPARQL queries.

#### Separate storage access layer

Expand Down Expand Up @@ -110,7 +110,7 @@ The whole framework consists of several modules:
* _OntoDriver RDF4J_ - OntoDriver implementation for RDF4J-accessed storages.
* _OntoDriver OWLAPI_ - OntoDriver implementation for OWLAPI-accessed files.
* _Ontodriver Jena_ - OntoDriver implementation for Jena-based storages.
* _OWL2Java_ - generates JOPA entities based on integrity constraints in input ontology (see [Example01](https://github.com/kbss-cvut/jopa-examples/tree/master/example01-jopa-sesame-owl2java)).
* _OWL2Java_ - generates JOPA entities based on integrity constraints in input ontology (see [Example01](https://github.com/kbss-cvut/jopa-examples/tree/master/example01-jopa-rdf4j-owl2java)).
* _JOPA Maven plugin_ - Maven plugin for object model generation (using OWL2Java).

Other modules represent integration tests and various utilities.
Expand Down
2 changes: 1 addition & 1 deletion datatype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>jopa-all</artifactId>
<groupId>cz.cvut.kbss.jopa</groupId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion jopa-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion jopa-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion jopa-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ private static Set<Class<?>> getImmutableTypes() {
URI.class,
URL.class,
LocalDate.class,
LocalTime.class,
LocalDateTime.class,
ZonedDateTime.class,
OffsetDateTime.class,
Expand Down
2 changes: 1 addition & 1 deletion jopa-integration-tests-jena/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion jopa-integration-tests-owlapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion jopa-integration-tests-rdf4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>jopa-integration-tests-rdf4j</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jopa-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.time.OffsetTime;
import java.time.temporal.ChronoUnit;
import java.util.*;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -132,7 +134,7 @@ public static Map<URI, Set<Object>> createTypedProperties(int size) {
}

private static Object generateRandomPropertyValue(int valueIndex, int propertyIndex) {
final int random = randomInt(8);
final int random = randomInt(10);
switch (random) {
case 0: // boolean
return valueIndex % 2 == 0;
Expand All @@ -142,14 +144,18 @@ private static Object generateRandomPropertyValue(int valueIndex, int propertyIn
return System.currentTimeMillis();
case 3: //double
return ((double) propertyIndex + 1) / (valueIndex + 1);
case 4: // date
// Generate date rounded to seconds to prevent issues with time rounding
case 4: // datetime
// Generate date rounded to milliseconds to prevent issues with time rounding
return OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS);
case 5: // String
return "TypedProperty_" + propertyIndex + "Value_" + valueIndex;
case 5:
return OffsetTime.now().truncatedTo(ChronoUnit.MILLIS);
case 6:
return LocalDate.now();
case 7: // String
return "TypedProperty_" + propertyIndex + "Value_" + valueIndex;
case 8:
return BigInteger.valueOf(valueIndex);
case 7:
case 9:
return BigDecimal.valueOf(Math.PI);
default:
throw new IllegalArgumentException();
Expand Down
2 changes: 1 addition & 1 deletion jopa-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>jopa-all</artifactId>
<groupId>cz.cvut.kbss.jopa</groupId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion jopa-owl2java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion jopa-owlapi-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion ontodriver-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>jopa-all</artifactId>
<groupId>cz.cvut.kbss.jopa</groupId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion ontodriver-jena/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion ontodriver-owlapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion ontodriver-rdf4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<artifactId>jopa-all</artifactId>
<groupId>cz.cvut.kbss.jopa</groupId>
<version>0.19.1</version>
<version>0.19.2</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion ontodriver-sesame/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>cz.cvut.kbss.jopa</groupId>
<artifactId>jopa-all</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>cz.cvut.kbss.jopa</groupId>
<version>0.19.1</version>
<version>0.19.2</version>
<artifactId>jopa-all</artifactId>
<packaging>pom</packaging>
<name>JOPA</name>
Expand Down

0 comments on commit 78eaba9

Please sign in to comment.