sszuev commented on issue #3556:
URL: https://github.com/apache/jena/issues/3556#issuecomment-3468618005
I can't reproduce this issue even on kotlin 1.9.23:
```kotlin
fun main() {
val c = OntModelFactory.createModel().createOntClass("x")
val m = c.model
println(m.id)
m.write(System.out, "ttl")
}
```
as a workaround we could copy-paste the content of the class into
`OntObject` & `OntResource`.
or, indeed, make `OntResource` public and create corresponding factory (to
allow `.as(OntResource.class)` syntax).
or maybe just make public and document that it is a "special resource" with
no support of jena-polymorphism, because there is already `OntObject` with the
same functionality.
These ways are not perfect to me.
--
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]