Hello,
I am currently trying to use a count in a magic properties, however I am
getting errors. I was wondering if someone would be able to assist me.
Thank you kindly,
Tanya
*Errors*:
- SELECT with expressions not supported in magic properties
- Function definition does not contain a valid body
*Magic Properties Function*:
SELECT COUNT(DISTINCT ?e) COUNT(DISTINCT ?e2)
WHERE {
( ?d1 ) :getFnc ( ?e ) .
( ?d2 ) :getFnc ( ?e2 ) .}
Contraints: ?d1, ?d2
Error message: Failed to execute operation
*Exception Stack Trace*:
java.lang.reflect.InvocationTargetException
at
org.topbraid.core.change.AbstractChangeEngine.execute(AbstractChangeEngine.java:286)
at
org.topbraidcomposer.core.change.TBCChangeEngine.access$0(TBCChangeEngine.java:1)
at
org.topbraidcomposer.core.change.TBCChangeEngine$2.run(TBCChangeEngine.java:163)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.commands.ExecutionException: While executing
the operation, an exception occurred
at
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:521)
at
org.topbraid.core.change.AbstractChangeEngine.execute(AbstractChangeEngine.java:272)
... 3 more
Caused by: java.lang.IllegalStateException: we failed to create the object:
java.lang.NullPointerException: Failed to identify source graph (statement
found but not identified)
at
org.topbraidcomposer.change.lib.ReplaceObjectChange.execute(ReplaceObjectChange.java:53)
at
org.topbraid.core.change.ChangeOperation.execute(ChangeOperation.java:105)
at
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:513)
... 4 more
Caused by: java.lang.NullPointerException: Failed to identify source graph
(statement found but not identified)
at
org.topbraidcomposer.change.lib.AbstractReplaceObjectChange.replaceObject(AbstractReplaceObjectChange.java:116)
at
org.topbraidcomposer.change.lib.AbstractReplaceObjectChange.replaceObject(AbstractReplaceObjectChange.java:100)
at
org.topbraidcomposer.change.lib.ReplaceObjectChange.execute(ReplaceObjectChange.java:49)
... 6 more
*Session data*:
eclipse.buildId=I20110613-1736
java.version=1.6.0_45
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product
org.eclipse.epp.package.rcp.product
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight,
SPARQLMotion, SPARQL Web Pages 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
---
You received this message because you are subscribed to the Google Groups
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.