You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a Class annotated with the OWLClass annotation. This class has a field properties annotated with the @Properties JOPA annotation. Following javadoc, my properties field has tipe Map<String, Set<Object>>. Infact, I need to specify an object unmapped property here. Thus, for analogy with @OWLObjectProperty, I put in this map a singleton with an object of type URI. I would expect that, when serializing, this URI is used to construct the property target as an individual with this URI as @Id. However, instead the property is interpreted as a datatype property and the URI as a string literal.
I tried also with using an object of another class annotated as @OWLClass instead of a URI. In this case the string literal produced in serialization is the class name. I suppose that in both cases just the toString method of the object is used to generate the literal.
With debugging, I saw that fields annotated with @Property annotation are processed by the cmethod cz.cvut.kbss.jsonld.serialization.PropertyFieldSerializer.serializePropertyValues which I assume works only for literals.
The text was updated successfully, but these errors were encountered:
I created a Class annotated with the OWLClass annotation. This class has a field
properties
annotated with the@Properties
JOPA annotation. Following javadoc, my properties field has tipeMap<String, Set<Object>>
. Infact, I need to specify an object unmapped property here. Thus, for analogy with@OWLObjectProperty
, I put in this map a singleton with an object of typeURI
. I would expect that, when serializing, this URI is used to construct the property target as an individual with this URI as@Id
. However, instead the property is interpreted as a datatype property and the URI as a string literal.I tried also with using an object of another class annotated as
@OWLClass
instead of aURI
. In this case the string literal produced in serialization is the class name. I suppose that in both cases just thetoString
method of the object is used to generate the literal.With debugging, I saw that fields annotated with
@Property
annotation are processed by the cmethodcz.cvut.kbss.jsonld.serialization.PropertyFieldSerializer.serializePropertyValues
which I assume works only for literals.The text was updated successfully, but these errors were encountered: