jduchateau opened a new issue, #3597: URL: https://github.com/apache/jena/issues/3597
### Version 5.5.0 ### What happened? Using schemagen on CSVW, it fails to generate the java code, due to [VersionInfo](https://github.com/w3c/csvw/blob/2bc84f937be11d313766ae0892c08c923a5a3799/ns/csvw.ttl#L44C1-L52C4) being an URI: ```ttl # CSVM Ontology definition csvw: a owl:Ontology; dc:title "CSVW Namespace Vocabulary Terms"@en; dc:description """This document describes the RDFS vocabulary description used in the Metadata Vocabulary for Tabular Data [[tabular-metadata]] along with the default JSON-LD Context."""@en; dc:date "2017-06-06"^^xsd:date; owl:imports <http://www.w3.org/ns/prov>; owl:versionInfo <https://github.com/w3c/csvw/commit/fcc9db20ba4de10e41e964eee1b5d01defa4c664>; rdfs:seeAlso <http://www.w3.org/TR/tabular-metadata>; . ``` <details><summary>Maven config</summary> <p> ```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>https://w3c.github.io/csvw/ns/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 org.apache.jena.rdf.model.LiteralRequiredException: https://github.com/w3c/csvw/commit/fcc9db20ba4de10e41e964eee1b5d01defa4c664 at org.apache.jena.rdf.model.impl.ResourceImpl.asLiteral (ResourceImpl.java:125) at jena.schemagen.getOntologyElementVersionInfo (schemagen.java:770) at jena.schemagen.writeOntologyVersionInfo (schemagen.java:691) at jena.schemagen.writeInitialDeclarations (schemagen.java:625) at jena.schemagen.processInput (schemagen.java:230) at jena.schemagen.go (schemagen.java:216) at jena.schemagen.go (schemagen.java:201) at jena.schemagen.main (schemagen.java:181) at org.codehaus.mojo.exec.ExecJavaMojo.doMain (ExecJavaMojo.java:375) at org.codehaus.mojo.exec.ExecJavaMojo.doExec (ExecJavaMojo.java:364) at org.codehaus.mojo.exec.ExecJavaMojo.lambda$execute$0 (ExecJavaMojo.java:286) at java.lang.Thread.run (Thread.java:840) ``` ### 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]
