Skip to content

Commit

Permalink
Updated version information
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Jun 24, 2024
1 parent 419914a commit 53b314d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ Java Class Model API for Predictive Model Markup Language (PMML).

JPMML-Model library JAR files (together with accompanying Java source and Javadocs JAR files) are released via [Maven Central Repository](https://repo1.maven.org/maven2/org/jpmml/).

The current version is **1.6.4** (1 August, 2022).
The current version is **1.6.5** (24 June, 2024).

```xml
<dependency>
<groupId>org.jpmml</groupId>
<artifactId>pmml-model</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</dependency>
```

Expand Down Expand Up @@ -96,37 +96,37 @@ This module can be built using [Apache Maven](https://maven.apache.org/):
mvn clean install
```

The resulting uber-JAR file `target/pmml-model-example-executable-1.6-SNAPSHOT.jar` contains the following command-line applications:
The resulting uber-JAR file `target/pmml-model-example-executable-1.7-SNAPSHOT.jar` contains the following command-line applications:
* `org.jpmml.model.example.CopyExample` [(source)](https://github.com/jpmml/jpmml-model/blob/master/pmml-model-example/src/main/java/org/jpmml/model/example/CopyExample.java). Copies and transforms a PMML schema version 3.X or 4.X document to a PMML schema version 4.4 document.
* `org.jpmml.model.example.ObfuscationExample` [(source)](https://github.com/jpmml/jpmml-model/blob/master/pmml-model-example/src/main/java/org/jpmml/model/example/ObfuscationExample.java). Obfuscates a PMML document by replacing field names with their MD5 hashes.
* `org.jpmml.model.example.TranslationExample` [(source)](https://github.com/jpmml/jpmml-model/blob/master/pmml-model-example/src/main/java/org/jpmml/model/example/TranslationExample.java). Translates a PMML document to a JSON or YAML document.
* `org.jpmml.model.example.ValidationExample` [(source)](https://github.com/jpmml/jpmml-model/blob/master/pmml-model-example/src/main/java/org/jpmml/model/example/ValidationExample.java). Validates a PMML document against the built-in XML Schema Definition (XSD) resource.

Copying `input.pmml` to `output.pmml`; the size of the class model is estimated using the Java agent technology:
```
java -javaagent:../pmml-agent/target/pmml-agent-1.6-SNAPSHOT.jar -cp target/pmml-model-example-executable-1.6-SNAPSHOT.jar org.jpmml.model.example.CopyExample --summary true --input input.pmml --output output.pmml
java -javaagent:../pmml-agent/target/pmml-agent-1.7-SNAPSHOT.jar -cp target/pmml-model-example-executable-1.7-SNAPSHOT.jar org.jpmml.model.example.CopyExample --summary true --input input.pmml --output output.pmml
```

Translating a PMML XML document `input.pmml` to PMML JSON document `output.json`:
```
java -cp target/pmml-model-example-executable-1.6-SNAPSHOT.jar org.jpmml.model.example.TranslationExample --input input.pmml --output output.json --indent "\\t"
java -cp target/pmml-model-example-executable-1.7-SNAPSHOT.jar org.jpmml.model.example.TranslationExample --input input.pmml --output output.json --indent "\\t"
```

Checking the validity of `model.pmml`:
```
java -cp target/pmml-model-example-executable-1.6-SNAPSHOT.jar org.jpmml.model.example.ValidationExample --input model.pmml
java -cp target/pmml-model-example-executable-1.7-SNAPSHOT.jar org.jpmml.model.example.ValidationExample --input model.pmml
```

Getting help:
```
java -cp target/pmml-model-example-executable-1.6-SNAPSHOT.jar <application class name> --help
java -cp target/pmml-model-example-executable-1.7-SNAPSHOT.jar <application class name> --help
```

It is possible to activate a specific Java XML Binding (JAXB) runtime by setting the value of the `jakarta.xml.bind.JAXBContextFactory` system property. Use `org.glassfish.jaxb.runtime.v2.ContextFactory` for activating a GlassFish Metro runtime, and `org.eclipse.persistence.jaxb.JAXBContextFactory` for activating an EclipseLink MOXy runtime.

For example:
```
java -Djakarta.xml.bind.JAXBContextFactoryy=org.eclipse.persistence.jaxb.JAXBContextFactory -cp target/pmml-model-example-executable-1.6-SNAPSHOT.jar ...
java -Djakarta.xml.bind.JAXBContextFactoryy=org.eclipse.persistence.jaxb.JAXBContextFactory -cp target/pmml-model-example-executable-1.7-SNAPSHOT.jar ...
```

# Documentation #
Expand Down

0 comments on commit 53b314d

Please sign in to comment.