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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to