Using rdf:list types

18 views
Skip to first unread message

Gary Murphy

unread,
Aug 8, 2019, 9:00:30 AM8/8/19
to TopBraid Suite Users

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 <ga...@schemaapp.com> - Hunch Manifest, 15 Wyndham N 'C', Guelph

Holger Knublauch

unread,
Aug 8, 2019, 6:27:40 PM8/8/19
to topbrai...@googlegroups.com

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

--
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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CADnyxpuaRMFCLPWcfJ_TBFrnzvJRSHeo3ttx4DZ0fdW80TpcyQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages