Hi Gary,
the default editor in TBC for such fields is in fact a text editor with
[ ... ] notation, but the pattern with URIs as shown below is perfectly
fine. In fact we also use rdf:Lists with a URI in the dash namespace,
e.g. dash:HTMLOrStringOrLangString. To enter such values you need to
switch to the Source Code tab at the moment.
Holger
On 8/08/2019 23:00, Gary Murphy wrote:
I am using TBCME 6.2.1 and hoping to add rdf:List types for sh:in
rules for shacl constraints but found the editor would not let me
enter these values -- the error given is that rdf:List types must be
contained within square brackets.
I have my lists defined to this sort of pattern:
hmshape:EnumerationDayOfWeek
a rdf:List ;
rdf:first schema:Monday ;
rdf:rest (
schema:Friday
schema:PublicHolidays
schema:Saturday
schema:Sunday
schema:Thursday
schema:Tuesday
schema:Wednesday
) ;
.
and if I hand-edit my ttl file to insert this in directly
hmapp:TestShape
a sh:NodeShape ;
sh:property [
sh:path schema:dayOfWeek ;
hmapp:formGroup hmapp:FieldSetRecommended ;
sh:group hmapp:FieldSetRecommended ;
sh:in schema:EnumerationListDayOfWeek ;
] ;
.
the editor will load this and displays the sh:in without errors or
cautions, however if I edit the field, for example, backspace over the
tail, press Ctrl-space and click the completion, the box turns red and
an error is thrown.
Is this a valid way to use sh:in with enumeration lists?
--
Gary Lawrence Murphy <[email protected] <mailto:[email protected]>>
- Hunch Manifest, 15 Wyndham N 'C', Guelph
--
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/CADnyxpuaRMFCLPWcfJ_TBFrnzvJRSHeo3ttx4DZ0fdW80TpcyQ%40mail.gmail.com
<https://groups.google.com/d/msgid/topbraid-users/CADnyxpuaRMFCLPWcfJ_TBFrnzvJRSHeo3ttx4DZ0fdW80TpcyQ%40mail.gmail.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/667bac20-c58a-9429-ae77-f51f7b394541%40topquadrant.com.