Closed twalmsley closed 8 months ago
A very common mistake in code with MagmaCore is to forget to call getId() on a Thing when it is the target of a predicate. E.g.:
getId()
Thing
thing.addValue(HQDM.PART_OF_POSSIBLE_WORLD, possibleWorld);
when the third argument should be possibleWorld.getId() because the target needs to be an IRI.
possibleWorld.getId()
I propose to overload the addValue() method with more type-specific versions that will prevent this error.
addValue()
Relates to #185
A very common mistake in code with MagmaCore is to forget to call
getId()
on aThing
when it is the target of a predicate. E.g.:when the third argument should be
possibleWorld.getId()
because the target needs to be an IRI.I propose to overload the
addValue()
method with more type-specific versions that will prevent this error.Relates to #185