Thank you Karen, thank you Eric.
I added 2 new requirements:
R-202-CONTEXT-SPECIFIC-INCLUSIVE-OR-OF-PROPERTIES
R-203-CONTEXT-SPECIFIC-EXCLUSIVE-OR-OF-PROPERTIES
Maybe you have a better name for them...
Context may be a class or a data shape.
Thomas
--
Thomas Bosch, M.Sc. (TUM)
PhD Student
GESIS - Leibniz Institute for the Social Sciences
Social Science Metadata Standards
Visitors Address: B2,1, D-68159 Mannheim
Postal Address: P.O.Box 12 21 55, D-68072 Mannheim
Tel: + 49 (0) 621 / 1246-271
Fax: + 49 (0) 621 / 1246-100
Web: http://www.gesis.org
Website: http://boschthomas.blogspot.com/
GitHub: https://github.com/boschthomas/PhD
________________________________________
Von: DCMI Architecture Forum [[log in to unmask]]" im Auftrag von "Karen Coyle [[log in to unmask]]
Gesendet: Samstag, 4. Oktober 2014 21:51
An: [log in to unmask]
Betreff: Re: [RDF AP] ShEx expressing inclusive and exclusive OR?
Just as a FYI, it looks to me like the DSP also does not have either
exclusive or inclusive or. I've added that as an issue on the DSP page.
http://wiki.dublincore.org/index.php/RDF_Application_Profiles/DSPanalysis
kc
On 10/4/14, 10:54 AM, Eric Prud'hommeaux wrote:
> * Bosch, Thomas <[log in to unmask]> [2014-10-03 14:52+0000]
>> Hi Eric,
>>
>> I'm wondering if ShEx can be used for both expressing inclusive and exclusive OR.
>
> That was a bug. There's still a related bug, but at least this one is
> fixed. Tx.
>
> The intent was to use XOR 'cause all of the schema/grammar languages I
> know follow that pattern (which makes inclusive OR tedious to write,
> but at least that's survivable).
>
>
>> I thought I can express it exclusively but when I used the ShEx demo the OR is interpreted inclusivly.
>>
>> Here an example:
>>
>> A <UserShape> has either a FOAF name OR one or more givenNames and one familyName.
>>
>> constraint
>> -----
>> <UserShape> {
>> (
>> foaf:name xsd:string
>> |
>> foaf:givenName xsd:string+,
>> foaf:familyName xsd:string)
>> }
>>
>> data
>> -----
>> <User2>
>> foaf:givenName "Bob" ;
>> foaf:familyName "Smith" ;
>> foaf:name "Bob" .
>>
>> --> <User2> matches the <UserShape> data shape.
>> --> so the OR is interpreted inclusively.
>>
>> Is it possible when using ShEx to express inclusive and exclusive OR?
>>
>> Thank you very much Eric.
>>
>>
>> Best,
>> Thomas
>>
>> --
>> Thomas Bosch, M.Sc. (TUM)
>> PhD Student
>> GESIS - Leibniz Institute for the Social Sciences
>> Social Science Metadata Standards
>> Visitors Address: B2,1, D-68159 Mannheim
>> Postal Address: P.O.Box 12 21 55, D-68072 Mannheim
>> Tel: + 49 (0) 621 / 1246-271
>> Fax: + 49 (0) 621 / 1246-100
>> Web: http://www.gesis.org
>> Website: http://boschthomas.blogspot.com/
>> GitHub: https://github.com/boschthomas/PhD
>>
>
--
Karen Coyle
[log in to unmask] http://kcoyle.net
m: 1-510-435-8234
skype: kcoylenet/+1-510-984-3600
|