I have a spin:UpdateTemplate with a DELETE WHERE clause:
DELETE {
?this sc:hasMediaPath ?mp .
}
WHERE {
?this sc:hasMediaPath ?mp .
?mp bonding:mediaSourceSO ?mediaSource .
?mp bonding:mediaOriginator ?device2 .
FILTER NOT EXISTS {
?this sc:connectedTo ?device2 .
} .
}
I created the template by subclassing spin:UpdateTemplates and filling
in spin:body with the above, and spin:labelTemplate with a human-
readable string.
This seems to work fine in TBC FE. When using it with SPIN 1.2.0, I
get the following error:
Exception in thread "main" java.lang.NullPointerException
at org.topbraid.spin.util.UpdateUtil.addUpdatedGraphs(UpdateUtil.java:
58)
at org.topbraid.spin.util.UpdateUtil.addUpdatedGraphs(UpdateUtil.java:
50)
at org.topbraid.spin.util.UpdateUtil.getUpdatedGraphs(UpdateUtil.java:
31)
at
org.topbraid.spin.inference.SPINInferences.runCommandOnClass(SPINInferences.java:
315)
at org.topbraid.spin.inference.SPINInferences.run(SPINInferences.java:
230)
at org.topbraid.spin.examples.OWLRLExample.main(OWLRLExample.java:94)
UpdateUtil.java line 31 indicates that the SPIN API seems to think it
is an UpdateModify instead of an UpdateDeleteWhere. Could this be the
cause of the problem? Or could it be related to the triple that is to
be deleted is inferred and not asserted?
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en