Re: sh:in vs. sh:value

* Holger Knublauch <holger@topquadrant.com> [2016-10-26 21:38+1000]
> 
> 
> On 26/10/2016 19:54, Eric Prud'hommeaux wrote:
> >is
> >   S sh:property [ sh:predicate P ; sh:in (
> >       I1
> >       I2
> >       In
> >     ) ].
> >always equal to
> >   S sh:property [ sh:predicate P ; sh:or (
> >       [ sh:value I1 ]
> >       [ sh:value I2 ]
> >       [ sh:value In ]
> >     ) ].
> >?
> 
> Yes, I think so.
> 
> BTW sh:value does not exist. I assume you mean sh:hasValue?

Yes, tx.


> >
> >is
> >   S sh:property [ sh:predicate P ; sh:in (I1) ]. # single element
> >always equal to
> >   S sh:property [ sh:predicate P ; sh:value I1 ].
> 
> No, because sh:in means "all values from" while sh:hasValue means "some
> values from".

Oh right. forgot about that. I guess that means that a value set of 1
is better experssed as sh:in with one value.


> Is there anything stopping you from finding the answers to these questions
> in the spec?

Justed wanted to verify with the WG.


> Holger
> 
> 

-- 
-ericP

office: +1.617.599.3509
mobile: +33.6.80.80.35.59

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

There are subtle nuances encoded in font variation and clever layout
which can only be seen by printing this message on high-clay paper.

Received on Wednesday, 26 October 2016 12:59:57 UTC