You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "jduchateau (via GitHub)" <gi...@apache.org> on 2025/11/17 11:41:36 UTC
[I] Schemagen: generate memeber named null [jena]
jduchateau opened a new issue, #3598:
URL: https://github.com/apache/jena/issues/3598
### Version
5.5.0
### What happened?
Using schemagen on CSVW, the generated java code cannot be compiled due to a member being named `null`.
<details><summary>Maven config</summary>
<p>
The only change to the [vocabulary](https://w3c.github.io/csvw/ns/csvw.ttl) is the version info converted to a string for #3597.
```xml
<!-- Generate CSVW vocabulary -->
<execution>
<id>generate-csvw-vocabulary</id>
<phase>generate-sources</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>jena.schemagen</mainClass>
<includePluginDependencies>true</includePluginDependencies>
<arguments>
<argument>-i</argument>
<argument>src/main/resources/vocabularies/csvw.ttl</argument>
<argument>-e</argument>
<argument>TURTLE</argument>
<argument>-o</argument>
<argument>src/main/java</argument>
<argument>--package</argument>
<argument>vocabularies</argument>
<argument>-n</argument>
<argument>CSVW</argument>
<argument>--ontology</argument>
<argument>--inference</argument>
<argument>-a</argument>
<argument>http://www.w3.org/ns/csvw#</argument>
</arguments>
</configuration>
</execution>
```
</p>
</details>
### Relevant output and stacktrace
```shell
/** <p>An atomic property giving the string or strings used for null values within
* the data. If the string value of the cell is equal to any one of these values,
* the cell value is `null`.</p>
*/
public static final Property null = M_MODEL.createProperty( "http://www.w3.org/ns/csvw#null" );
```
### Are you interested in making a pull request?
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Schemagen: generate member named null [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs closed issue #3598: Schemagen: generate member named null
URL: https://github.com/apache/jena/issues/3598
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org