Hi Stefan,

if you use sh:equals, which is defined here:

https://www.w3.org/TR/shacl/#EqualsConstraintComponent

it means that the sets of values of two properties must be identical, at the same subject.

In your data it seems that instance_b doesn't have the same values for a has results and b has results.

You probably want to express something else?

Holger

PS: it took me a while to "parse" your example. For future postings, maybe consider sending the RDF/Turtle source code exported from EDG to avoid ambiguities.

On 18/09/2019 23:46, Stefan Verweij wrote:
Hi,

I am working with ontologies of the TopBraid EDG package. My ontology has three classes "a", " b" and "results". Both the classes "a" and "b" have a relationship property that links to "results" called "a has results" and "b has results". The class "results" itself has multiple attribute properties all being a certain type of result (that has to be a decimal).

Now the relationship "b has results" has a Relationship to Other Properties constraint that states it has to be /equal /to the relationship property "a has results".
When I make an instance for "results" which is something like:

    test_result:
    *Other Properties*
    *result1:*       0.09
    *result2:*       0.94
    *result3:*       0.62
    *label:*          test_result
    *type:* _result_
    ----------------------------------
    *Incoming References*
    *a has results*      a
    (inverse)
    *b has results *     b
    (inverse)



and an instance for both "a" and "b" which links to the _same_ instance for result: /test_result/, which//looks something like this:

instance_a:

    *Other Properties*
    *a has results *_test_result_
    *label:*               instance_a
    *type:* _a_

and instance_b:

    *Other Properties*
    *b has results *_test_result_
    *label:*               instance_b
    *type:* _b_


Now when I try to test this with the Problems and Suggestions option I get this error that says:

    *Must have same values as a has result*
    *Resource:* _b_
    *Property:* _b has result_
    *Value:* _test_result_


But it links to the same instance (value), so why does this error appear?
Hope someone can help me out!

All the best,
Stefan
--
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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/cae52abd-1dc0-4e44-b78e-5ae3e0f0176c%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/cae52abd-1dc0-4e44-b78e-5ae3e0f0176c%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/45d6550b-74d0-9eb5-0bae-29058f20a787%40topquadrant.com.

Reply via email to